Add a couple things required to support snap packges.

This commit is contained in:
casey langen 2020-04-06 23:35:58 -07:00
parent 36ede66603
commit 821b4de874
3 changed files with 25 additions and 0 deletions

View File

@ -261,6 +261,25 @@ install(
GROUP_EXECUTE GROUP_READ GROUP_WRITE
WORLD_EXECUTE WORLD_READ)
# snap wrapper scripts, if applicable
if (${SNAP_ENABLED} MATCHES "true")
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}src/musikcube/musikcube.snap"
DESTINATION share/musikcube.snap
PERMISSIONS
OWNER_EXECUTE OWNER_READ OWNER_WRITE
GROUP_EXECUTE GROUP_READ GROUP_WRITE
WORLD_EXECUTE WORLD_READ)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/src/musikcubed/musikcubed.snap"
DESTINATION share/musikcubed.snap
PERMISSIONS
OWNER_EXECUTE OWNER_READ OWNER_WRITE
GROUP_EXECUTE GROUP_READ GROUP_WRITE
WORLD_EXECUTE WORLD_READ)
endif()
# executable and shell script for daemon
install(
FILES bin/musikcubed

3
src/musikcube/musikcube.snap Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
set -eu
LANG=C.UTF-8 ./musikcube

3
src/musikcubed/musikcubed.snap Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
set -eu
LANG=C.UTF-8 ./musikcubed