From 45eae604451d2a05e13e9cdb163319c4a0dab7aa Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 26 Dec 2018 17:14:10 +0100 Subject: added ubuntu config script --- scripts/configure_ubuntu.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 scripts/configure_ubuntu.sh (limited to 'scripts') diff --git a/scripts/configure_ubuntu.sh b/scripts/configure_ubuntu.sh new file mode 100755 index 0000000..a85f09b --- /dev/null +++ b/scripts/configure_ubuntu.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +#assumes a somewhat recent 64-bit ubuntu + +#need some openGL stuff +sudo apt install libgl1-mesa-dev + +mkdir tmp +cd tmp + +#get the bass prebuilt +curl http://www.un4seen.com/files/bass24-linux.zip -o bass_linux.zip + +unzip bass_linux.zip + +cp x64/libbass.so ../../lib + +#get the discord-rpc prebuilt +curl -L https://github.com/discordapp/discord-rpc/releases/download/v3.4.0/discord-rpc-linux.zip -o discord_rpc_linux.zip + +unzip discord_rpc_linux.zip + +cp discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ../../lib/ + +cd .. + +rm -rf tmp/ -- cgit From 1f754776b43d7ae8f317d480b6366d8b8f0ce2d0 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 26 Dec 2018 17:31:43 +0100 Subject: finished ubuntu build script and made default plugin mode dynamic linking --- scripts/configure_ubuntu.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/configure_ubuntu.sh b/scripts/configure_ubuntu.sh index a85f09b..5e587ad 100755 --- a/scripts/configure_ubuntu.sh +++ b/scripts/configure_ubuntu.sh @@ -22,6 +22,16 @@ unzip discord_rpc_linux.zip cp discord-rpc/linux-dynamic/lib/libdiscord-rpc.so ../../lib/ +#get libqtapng plugin prebuilt +curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.0-5/build_gcc_64_5.12.0.tar.xz -o apng.tar.xz + +tar -xvf apng.tar.xz + +cp gcc_64/plugins/imageformats/libqapng.so ../../lib + cd .. -rm -rf tmp/ +rm -rf tmp + +#during runtime, the program expects the libraries to exist in the root folder +cp ../lib/* .. -- cgit From 73a13d9d88ac3a5bed69e781c47ece8a465872ea Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 26 Dec 2018 18:02:15 +0100 Subject: added lib folder to ubuntu configure script --- scripts/configure_ubuntu.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/configure_ubuntu.sh b/scripts/configure_ubuntu.sh index 5e587ad..98586a6 100755 --- a/scripts/configure_ubuntu.sh +++ b/scripts/configure_ubuntu.sh @@ -6,6 +6,8 @@ sudo apt install libgl1-mesa-dev mkdir tmp +mkdir ../lib + cd tmp #get the bass prebuilt -- cgit From 68145616f597c4cfc65313fc2973d9480f98be89 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 26 Dec 2018 19:34:38 +0100 Subject: removed redundant statement from ubuntu config script --- scripts/configure_ubuntu.sh | 1 - 1 file changed, 1 deletion(-) (limited to 'scripts') diff --git a/scripts/configure_ubuntu.sh b/scripts/configure_ubuntu.sh index 98586a6..3817997 100755 --- a/scripts/configure_ubuntu.sh +++ b/scripts/configure_ubuntu.sh @@ -6,7 +6,6 @@ sudo apt install libgl1-mesa-dev mkdir tmp -mkdir ../lib cd tmp -- cgit From ec1057b5d7e1d39963275bc2cbd79a53cf6f3f5c Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 26 Dec 2018 22:48:44 +0100 Subject: added dynamic linking fix script for macos --- scripts/fix_dynamic_linking_macos.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/fix_dynamic_linking_macos.sh (limited to 'scripts') diff --git a/scripts/fix_dynamic_linking_macos.sh b/scripts/fix_dynamic_linking_macos.sh new file mode 100644 index 0000000..a786a55 --- /dev/null +++ b/scripts/fix_dynamic_linking_macos.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +#this script relinks dynamic libraries so the .app file can be distributed as standalone + +install_name_tool -id @executable_path/../Frameworks/libbass.dylib ../bin/Attorney_Online.app/Contents/Frameworks/libbass.dylib + +install_name_tool -id @executable_path/../Frameworks/libbassopus.dylib ../bin/Attorney_Online.app/Contents/Frameworks/libbassopus.dylib + +install_name_tool -id @executable_path/../Frameworks/libdiscord-rpc.dylib ../bin/Attorney_Online.app/Contents/Frameworks/libdiscord-rpc.dylib + +install_name_tool -id @executable_path/../Frameworks/libqapng.dylib ../bin/Attorney_Online.app/Contents/Frameworks/libqapng.dylib + +install_name_tool -change @loader_path/libbass.dylib @executable_path/../Frameworks/libbass.dylib ../bin/Attorney_Online.app/Contents/MacOS/Attorney_Online + +install_name_tool -change @rpath/libdiscord-rpc.dylib @executable_path/../Frameworks/libdiscord-rpc.dylib ../bin/Attorney_Online.app/Contents/MacOS/Attorney_Online + -- cgit