diff options
| author | OmniTroid <davidskoland@gmail.com> | 2024-07-31 13:40:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-31 13:40:43 +0200 |
| commit | 0e45f3c0ee556d4dee3bc81a577e4998232f491a (patch) | |
| tree | e920f9706466f3ea8bc0d1fc82f29b0d6527bb2a /scripts | |
| parent | 4d1b0517e3d5704b26df7d8a9a492d182d36ea4b (diff) | |
Universal configure script (#1022)
* Init configure.sh
* echo detected platform
* Implement check_command
* Implement install_bass_macos, plus checks
* Ignore tmp
* Add configure main function and bass installs
* Less functions
* Reformat file, add some stuff
* Start adding automatic qt detection
* Curl is more portable it seems
* Try finding Qt's bundled cmake
* fix cmake command checking
* Reorder to windows first
* do not download deps if already present
* Add configure clean
* Fix basic command checks
* cmd fixes
* thank you bash, very cool!
* fix file shenanigans
* unneccessary comment
* Use qt_path instead of qt_cmake
* Ignore apng folder
* Rework with QT_PATH
* Move find_qt to the top
* move check_command near the top
* Tidy up command checking
* Rename QT_PATH to QT_ROOT and call the qt installation path QT_PATH instead
* only clone qtapng if no dir
* Cmake shenanigans
* Fix build with ninja
* Fix apng cp cmd
* Fix apng check
* Just call it cmake
* Run cmake in configure.sh
* Ignore generated files
* Comment out mega cmake command
* Fix apng check
* more cmake stuff
* make the cmake command we use very clear
* ignore cmake_cmd.txt
* Note that linux and macos is not supported
* Update README
* Add some stuff to windeployqt
* Clone themes
* macos fixes
* Only call windeployqt on windows
* Linux fixes
* Remove linux todo comment
* Remove git stuff from themes checkout
* Note about vanilla content..
* Add note about formatting in readme
* Remove e flag so script doesn't stop with no error messages
* Note about toolchains on unix-likes
* Fix cmake path on linux
* Rework get_zip for better error handling and less unzipping unnecessary files
* Adjust get_zip calls
* Hopefully make error handling more robust
* Fix bassopus on linux
* linux bassopus pathing fix
* Fix discord rpc linux
* Add note about opengl
* Ignore test_aopacket
* Tidy up readme a bit again
* Remove old configure scripts
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/configure_macos.sh | 47 | ||||
| -rwxr-xr-x | scripts/configure_ubuntu.sh | 57 | ||||
| -rwxr-xr-x | scripts/macos_build.sh | 37 |
3 files changed, 0 insertions, 141 deletions
diff --git a/scripts/configure_macos.sh b/scripts/configure_macos.sh deleted file mode 100755 index ebf4ab98..00000000 --- a/scripts/configure_macos.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh - -# This script fetches all build dependencies for MacOS -# Tested on MacOS 10.14 (Mojave), Qt 5.13 and XCode 10.2 - -# Exit on errors and unset variables -set -eu - -ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" - -cd ${ROOT_DIR} - -LIB_TARGET="../../lib" -BASS_LINK="http://uk.un4seen.com/files/bass24-osx.zip" -BASSOPUS_LINK="http://www.un4seen.com/files/bassopus24-osx.zip" -BASSMIDI_LINK="https://www.un4seen.com/files/bassmidi24.zip" -DISCORD_RPC_LINK="https://github.com/discordapp/discord-rpc/releases/download/v3.4.0/discord-rpc-osx.zip" -APNG_LINK="https://github.com/Skycoder42/QtApng/releases/download/1.1.2-2/qtapng_clang_64_5.13.0.tar.xz" - -# Easier if we don't need to worry about an existing tmp folder tbh smh -# v Add a slash here for free tmp folder cleanup in true javascript community style -rm -rf tmp -mkdir tmp -cd tmp - -curl -Ls ${BASS_LINK} -o bass.zip -unzip -qq bass.zip -cp libbass.dylib ${LIB_TARGET} - -curl -Ls ${BASSOPUS_LINK} -o bassopus.zip -unzip -qq bassopus.zip -cp libbassopus.dylib ${LIB_TARGET} - -curl -Ls ${BASSMIDI_LINK} -o bassmidi.zip -unzip -qq bassmidi.zip -cp libbassmidi.dylib ${LIB_TARGET} - -curl -Ls ${DISCORD_RPC_LINK} -o discord_rpc.zip -unzip -qq discord_rpc.zip -cp discord-rpc/osx-dynamic/lib/libdiscord-rpc.dylib ${LIB_TARGET} - -curl -Ls ${APNG_LINK} -o apng.tar.xz -tar -xf apng.tar.xz -cp clang_64/plugins/imageformats/libqapng.dylib ../../lib - -cd .. -rm -rf tmp diff --git a/scripts/configure_ubuntu.sh b/scripts/configure_ubuntu.sh deleted file mode 100755 index 6338b601..00000000 --- a/scripts/configure_ubuntu.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# Assumes a somewhat recent 64-bit ubuntu - -# Exit on errors and unset variables -set -eu - -ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" - -cd "${ROOT_DIR}" - - -#need some openGL stuff -sudo apt install libgl1-mesa-dev -#install curl incase of fresh vm -sudo apt install curl - -rm -rf tmp -mkdir tmp -cd tmp - -#get the bass prebuilt -curl http://www.un4seen.com/files/bass24-linux.zip -o bass_linux.zip -curl http://www.un4seen.com/files/bassmidi24-linux.zip -o bassmidi_linux.zip -curl http://www.un4seen.com/files/bassopus24-linux.zip -o bassopus_linux.zip - -mkdir -p bass_linux -unzip bass_linux.zip -d ./bass_linux -mkdir -p bassmidi_linux -unzip bassmidi_linux.zip -d ./bassmidi_linux -mkdir -p bassopus_linux -unzip bassopus_linux.zip -d ./bassopus_linux - -cp ./bass_linux/libs/x86_64/libbass.so ../../lib -cp ./bassmidi_linux/libs/x86_64/libbassmidi.so ../../lib -cp ./bassopus_linux/libs/x86_64/libbassopus.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/ - -#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 - -#during runtime, the program expects the libraries to exist in the root folder -cp ../lib/* .. diff --git a/scripts/macos_build.sh b/scripts/macos_build.sh deleted file mode 100755 index 533aaf1b..00000000 --- a/scripts/macos_build.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -set -Eexo pipefail - -export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig -export PATH=$PATH:/usr/local/opt/qt5/bin:/usr/local/bin - -mkdir bass -cd bass -curl http://www.un4seen.com/files/bass24-osx.zip -o bass.zip -unzip bass.zip -cp libbass.dylib ../lib - -curl http://www.un4seen.com/files/bassmidi24-osx.zip -o bassmidi.zip -unzip bassmidi.zip -cp libbassmidi.dylib ../lib - -curl http://www.un4seen.com/files/bassopus24-osx.zip -o bassopus.zip -unzip bassopus.zip -cp libbassopus.dylib ../lib -cd .. - -mkdir discord-rpc -cd discord-rpc -curl -L https://github.com/discordapp/discord-rpc/releases/download/v3.4.0/discord-rpc-osx.zip -o discord_rpc_osx.zip -unzip discord_rpc_osx.zip -cp discord-rpc/osx-static/lib/libdiscord-rpc.a ../lib -cd .. - -mkdir qtapng -cd qtapng -curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.0-5/build_clang_64_5.12.0.tar.xz -o apng.tar.xz -tar -xvf apng.tar.xz -cp clang_64/plugins/imageformats/libqapng.dylib ../lib -cd .. - -/usr/local/opt/qt/bin/qmake "DEFINES += DISCORD QTAUDIO" && make -j2 |
