55
66cache :
77 key : ${CI_COMMIT_REF_SLUG}
8- paths :
9- - lib/
108
119variables :
1210 DEBIAN_FRONTEND : noninteractive
@@ -15,7 +13,7 @@ before_script:
1513 - echo Current working directory is $(pwd)
1614
1715build linux x86_64 :
18- image : ubuntu
16+ image : ubuntu:18.04
1917 stage : build
2018 tags :
2119 - docker
@@ -34,15 +32,15 @@ build linux x86_64:
3432 - clang --version
3533
3634 # Extract BASS
37- # - mkdir bass
38- # - cd bass
39- # - curl http://www.un4seen.com/files/bass24-linux.zip -o bass.zip
40- # - unzip bass.zip
41- # - cp x64/libbass.so ../lib
42- # - curl http://www.un4seen.com/files/bassopus24-linux.zip -o bassopus.zip
43- # - unzip bassopus.zip
44- # - cp x64/libbassopus.so ../lib
45- # - cd ..
35+ - mkdir bass
36+ - cd bass
37+ - curl http://www.un4seen.com/files/bass24-linux.zip -o bass.zip
38+ - unzip bass.zip
39+ - cp x64/libbass.so ../lib
40+ - curl http://www.un4seen.com/files/bassopus24-linux.zip -o bassopus.zip
41+ - unzip bassopus.zip
42+ - cp x64/libbassopus.so ../lib
43+ - cd ..
4644
4745 # Extract Discord RPC
4846 - mkdir discord-rpc
@@ -53,21 +51,32 @@ build linux x86_64:
5351 - cd ..
5452
5553 # Extract QtApng
56- - mkdir qtapng
57- - cd qtapng
58- - 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
59- - tar -xvf apng.tar.xz
60- - cp gcc_64/plugins/imageformats/libqapng.so ../lib
54+ # - mkdir qtapng
55+ # - cd qtapng
56+ # - 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
57+ # - tar -xvf apng.tar.xz
58+ # - cp gcc_64/plugins/imageformats/libqapng.so ../lib
59+ # - cd ..
60+
61+ # Build QtApng
62+ - git clone https://github.com/Skycoder42/QtApng
63+ - cd QtApng
64+ - qmake -spec linux-clang
65+ # Don't make examples - they're not compatible with Qt 5.9
66+ - make -j4 sub-src
67+ # - make sub-src-install_subtargets
68+ - cp plugins/imageformats/libqapng.so ../lib
6169 - cd ..
6270
6371 # Build
64- - qmake -spec linux-clang "DEFINES += DISCORD QTAUDIO "
72+ - qmake -spec linux-clang "DEFINES += DISCORD"
6573 - make -j4
6674
6775 # Post-processing
6876 - upx --lzma -9 --force bin/Attorney_Online
6977 artifacts :
7078 paths :
79+ - lib/
7180 - bin/
7281
7382build windows i686 :
@@ -109,19 +118,21 @@ build windows i686:
109118 - ls lib
110119
111120 # Build
112- - /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake "DEFINES += DISCORD BASSAUDIO "
121+ - /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake "DEFINES += DISCORD"
113122 - make -j4
114123
115124 # Post-processing
116125 - upx --lzma -9 --force bin/Attorney_Online.exe
117126 artifacts :
118127 paths :
128+ - lib/
119129 - bin/
120130
121131# Base folder
122132.deploy_base : &deploy_base |
123- mkdir base
124133 cp -a ../base/ base/
134+ rm -rf base/themes/_Unadapted/
135+ rm base/themes/.gitattributes base/themes/.git
125136
126137# Miscellaneous files
127138.deploy_misc : &deploy_misc |
0 commit comments