aboutsummaryrefslogtreecommitdiff
path: root/scripts/configure_ubuntu.sh
diff options
context:
space:
mode:
authorOmniTroid <davidskoland@gmail.com>2024-07-31 13:40:43 +0200
committerGitHub <noreply@github.com>2024-07-31 13:40:43 +0200
commit0e45f3c0ee556d4dee3bc81a577e4998232f491a (patch)
treee920f9706466f3ea8bc0d1fc82f29b0d6527bb2a /scripts/configure_ubuntu.sh
parent4d1b0517e3d5704b26df7d8a9a492d182d36ea4b (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/configure_ubuntu.sh')
-rwxr-xr-xscripts/configure_ubuntu.sh57
1 files changed, 0 insertions, 57 deletions
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/* ..