Skip to content

Commit

Permalink
ci(linux): fix deb package file permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Palakis authored and tt2468 committed Dec 20, 2020
1 parent a93c4df commit ffeca0a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,23 @@ if(UNIX AND NOT APPLE)

file(GLOB locale_files data/locale/*.ini)

set(CMAKE_INSTALL_DEFAULT_DIRECTORY_PERMISSIONS
OWNER_READ \
OWNER_WRITE \
GROUP_READ \
WORLD_READ)

if(${USE_UBUNTU_FIX})
install(TARGETS obs-websocket
LIBRARY DESTINATION "/usr/lib/obs-plugins")
install(TARGETS obs-websocket LIBRARY
DESTINATION "/usr/lib/obs-plugins"
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
endif()
install(TARGETS obs-websocket
LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/obs-plugins")

install(FILES ${locale_files}
DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/obs/obs-plugins/obs-websocket/locale")
DESTINATION "${CMAKE_INSTALL_FULL_DATAROOTDIR}/obs/obs-plugins/obs-websocket/locale"
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ GROUP_WRITE WORLD_READ)
endif()
# --- End of section ---

Expand Down

0 comments on commit ffeca0a

Please sign in to comment.