Fixed the macOS packaging process.

This commit is contained in:
Casey Langen 2018-02-02 10:30:25 -08:00
parent ed037e8639
commit bc565f31b3
2 changed files with 7 additions and 1 deletions

View File

@ -21,12 +21,16 @@ rm -rf "$OUTPATH"
mkdir -p "$OUTPATH/plugins"
mkdir -p "$OUTPATH/locales"
mkdir -p "$OUTPATH/themes"
cp bin/musikcube "$OUTPATH"
cp bin/musikcube "$OUTPATH"
cp bin/musikcubed "$OUTPATH"
cp bin/libmusikcore.dylib "$OUTPATH"
cp bin/plugins/*.dylib "$OUTPATH/plugins"
cp bin/locales/*.json "$OUTPATH/locales"
cp bin/themes/*.json "$OUTPATH/themes"
strip bin/musikcube
strip bin/musikcubed
strip bin/libmusikcore.dylib
strip bin/plugins/*.dylib
pushd bin/dist

View File

@ -10,6 +10,8 @@ endif()
configure_file("musikcubed.in" "musikcubed" @ONLY)
add_executable(musikcubed ${DAEMON_SRCS})
set_target_properties(musikcubed PROPERTIES LINK_FLAGS "-Wl,-rpath,./")
if (${LINK_STATICALLY} MATCHES "true")
find_library(EVLIB NAMES libev.a ev)
target_link_libraries(musikcubed ${musikcube_LINK_LIBS} ${EVLIB} musikcore)