aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2020-08-19 23:07:45 -0500
committeroldmud0 <oldmud0@users.noreply.github.com>2020-08-19 23:07:45 -0500
commit5e1474fefc6837d3eb1a2449950d4be1371f5be1 (patch)
tree7c645b67d95e53e2f5cf15875dfd40e839f41d0c
parent7cd0fa0c6e9875c0f199c6d7448e0a031dd8e631 (diff)
parenta9ca555ec532f46a5e5b29404434ae7295814163 (diff)
Merge some various CI changes
Most importantly, Linux now targets Qt 5.9.5 with a self-built version of QtApng, which should fix the Qt version issues.
-rw-r--r--.gitlab-ci.yml29
-rwxr-xr-xscripts/update_manifest.js4
-rw-r--r--scripts/windows/Dockerfile5
3 files changed, 26 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 72f7903a..0230d401 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,8 +5,6 @@ stages:
cache:
key: ${CI_COMMIT_REF_SLUG}
- paths:
- - lib/
variables:
DEBIAN_FRONTEND: noninteractive
@@ -15,7 +13,7 @@ before_script:
- echo Current working directory is $(pwd)
build linux x86_64:
- image: ubuntu
+ image: ubuntu:18.04
stage: build
tags:
- docker
@@ -53,11 +51,21 @@ build linux x86_64:
- cd ..
# Extract QtApng
- - mkdir qtapng
- - cd qtapng
- - 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
+ #- mkdir qtapng
+ #- cd qtapng
+ #- 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 ..
+
+ # Build QtApng
+ - git clone https://github.com/Skycoder42/QtApng
+ - cd QtApng
+ - qmake -spec linux-clang
+ # Don't make examples - they're not compatible with Qt 5.9
+ - make -j4 sub-src
+ #- make sub-src-install_subtargets
+ - cp plugins/imageformats/libqapng.so ../lib
- cd ..
# Build
@@ -68,6 +76,7 @@ build linux x86_64:
- upx --lzma -9 --force bin/Attorney_Online
artifacts:
paths:
+ - lib/
- bin/
build windows i686:
@@ -116,12 +125,14 @@ build windows i686:
- upx --lzma -9 --force bin/Attorney_Online.exe
artifacts:
paths:
+ - lib/
- bin/
# Base folder
.deploy_base: &deploy_base |
- mkdir base
cp -a ../base/ base/
+ rm -rf base/themes/_Unadapted/
+ rm base/themes/.gitattributes base/themes/.git
# Miscellaneous files
.deploy_misc: &deploy_misc |
diff --git a/scripts/update_manifest.js b/scripts/update_manifest.js
index 1a06a2d7..bbd2a5f4 100755
--- a/scripts/update_manifest.js
+++ b/scripts/update_manifest.js
@@ -101,9 +101,7 @@ const specialActions = changesFile ?
// higher-level directories will succeed.
.concat(Array.from(dirsDeleted.values())
.sort((a, b) => b.split("/").length - a.split("/").length)
- .map(dir => {
- return { action: "deleteDir", target: dir };
- }))
+ .map(dir => ({ action: "deleteDir", target: dir })))
: [];
const urlBase = "https://s3.wasabisys.com/ao-downloads/";
diff --git a/scripts/windows/Dockerfile b/scripts/windows/Dockerfile
index b9a12d66..9d3cca06 100644
--- a/scripts/windows/Dockerfile
+++ b/scripts/windows/Dockerfile
@@ -3,6 +3,11 @@ FROM oldmud0/mxe-qt:5.13.0-win32-static-posix
ENV TARGET_SPEC i686-w64-mingw32.static.posix
+# Build libarchive statically
+WORKDIR /opt/mxe
+RUN make -j4 MXE_TARGETS=${TARGET_SPEC} libarchive bzip2 xz lz4 zstd nettle expat libxml2
+WORKDIR /
+
# Build Discord RPC statically
RUN git clone https://github.com/discordapp/discord-rpc
WORKDIR discord-rpc/build