aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <3421260-oldmud0@users.noreply.gitlab.com>2019-02-09 04:42:26 +0000
committeroldmud0 <3421260-oldmud0@users.noreply.gitlab.com>2019-02-09 04:42:26 +0000
commit3b718808b76f1970eb029f2c48bd4f33ae233052 (patch)
tree83def186f48041f978e0c811e4c088e9c8a256bf
parent830dba62a16c748761c4cb498e58a336f4d288ff (diff)
Move Ubuntu configure script to .gitlab-ci.yml
Sorry, Omni. I'll probably move everything back to shell scripts in the future.
-rw-r--r--.gitlab-ci.yml38
1 files changed, 33 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bf3a9bf7..a94d28cb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,17 +13,45 @@ build linux x86_64:
- docker
- linux
script:
+ # Install dependencies
- apt-get update
- - apt-get install --no-install-recommends -y qt5-default qtmultimedia5-dev clang make git sudo curl ca-certificates pkg-config upx unzip
+ - >
+ apt-get install --no-install-recommends -y qt5-default qtmultimedia5-dev
+ clang make git sudo curl ca-certificates pkg-config upx unzip
+
+ # Print versions
- qmake --version
- clang --version
- - cd scripts
- - ./configure_ubuntu.sh
+ # Extract BASS
+ - mkdir bass
+ - cd bass
+ - curl http://www.un4seen.com/files/bass24-linux.zip -o bass.zip
+ - unzip bass.zip
+ - cp x64/libbass.so ../lib
+ - cd ..
+
+ # Extract Discord RPC
+ - mkdir discord-rpc
+ - cd discord-rpc
+ - 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 ..
+
+ # Extract QtApng
+ - 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.so ../lib
- cd ..
+ # Build
- qmake -spec linux-clang
- make -j4
+
+ # Post-processing
- upx --lzma -9 --force bin/Attorney_Online
artifacts:
paths:
@@ -61,7 +89,7 @@ build windows i686:
cp -a ../base/themes/default base/themes/
cp -a ../base/config.ini base/config.sample.ini
cp -a ../base/serverlist.txt base/serverlist.sample.txt
-
+
# Miscellaneous files
.deploy_misc: &deploy_misc |
cp -a ../README.md README.md.txt
@@ -84,7 +112,7 @@ deploy linux:
- cp -a ../lib/*.so .
- cp -a ../bin/Attorney_Online .
- echo "#!/bin/sh" >> ./run.sh
- - echo "LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH ./Attorney_Online" >> ./run.sh
+ - echo "LD_LIBRARY_PATH=.:\$LD_LIBRARY_PATH ./Attorney_Online" >> ./run.sh
- chmod +x ./run.sh
# Zipping