mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Split building Unix tarballs and Win installer
This commit is contained in:
parent
bedb6129f2
commit
5826074374
3 changed files with 32 additions and 19 deletions
|
|
@ -137,9 +137,9 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
stage('Create Windows Installer & Tarballs') {
|
||||
stage('Create Unix Tarballs') {
|
||||
steps {
|
||||
sh "BUNDLE_VERSION=${params.BUNDLE_VERSION} DO_GZIP=${params.DO_GZIP} source/tools/dist/build-unix-win32.sh"
|
||||
sh "BUNDLE_VERSION=${params.BUNDLE_VERSION} DO_GZIP=${params.DO_GZIP} source/tools/dist/build-unix-tarballs.sh"
|
||||
stash(name: 'unix-sources', includes: '*.tar.gz')
|
||||
}
|
||||
}
|
||||
|
|
@ -185,6 +185,12 @@ pipeline {
|
|||
}
|
||||
}
|
||||
|
||||
stage('Create Windows Installer') {
|
||||
steps {
|
||||
sh "BUNDLE_VERSION=${params.BUNDLE_VERSION} source/tools/dist/build-win-installer.sh"
|
||||
}
|
||||
}
|
||||
|
||||
stage('Generate Signatures and Checksums') {
|
||||
steps {
|
||||
unstash('appimage')
|
||||
|
|
|
|||
|
|
@ -37,26 +37,9 @@ if [ "$DO_GZIP" = true ]; then
|
|||
7zz a ${GZIP7ZOPTS} "$PREFIX"-unix-data.tar.gz "$PREFIX"-unix-data.tar
|
||||
fi
|
||||
|
||||
# Create Windows installer
|
||||
# This needs nsisbi for files > 2GB
|
||||
# nsisbi 3.09 and above fail to build on macOS, nsisbi 3.08.1 is used on the CD
|
||||
# To build and install on macOS:
|
||||
# - install mingw-w64 and scons with Homebrew
|
||||
# - download the latest source at https://sourceforge.net/projects/nsisbi/files/
|
||||
# - build with `scons SKIPUTILS="Makensisw","NSIS Menu","zip2exe"`
|
||||
# - install with `sudo scons install SKIPUTILS="Makensisw","NSIS Menu","zip2exe"`
|
||||
# Running makensis also needs a LANG workaround for https://sourceforge.net/p/nsis/bugs/1165/
|
||||
LANG="en_GB.UTF-8" makensis -V4 -nocd \
|
||||
-dcheckoutpath="." \
|
||||
-dversion="${BUNDLE_VERSION}" \
|
||||
-dprefix="${PREFIX}" \
|
||||
-darchive_path="archives/" \
|
||||
source/tools/dist/0ad.nsi
|
||||
|
||||
# Fix permissions
|
||||
chmod -f 644 "${PREFIX}-unix-build.tar.xz"
|
||||
chmod -f 644 "${PREFIX}-unix-data.tar.xz"
|
||||
chmod -f 644 "${PREFIX}-win32.exe"
|
||||
if [ "$DO_GZIP" = true ]; then
|
||||
chmod -f 644 "${PREFIX}-unix-build.tar.gz"
|
||||
chmod -f 644 "${PREFIX}-unix-data.tar.gz"
|
||||
24
source/tools/dist/build-win-installer.sh
vendored
Executable file
24
source/tools/dist/build-win-installer.sh
vendored
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
set -ev
|
||||
|
||||
BUNDLE_VERSION=${BUNDLE_VERSION:="0.28.0dev"}
|
||||
PREFIX="0ad-${BUNDLE_VERSION}"
|
||||
|
||||
# Create Windows installer
|
||||
# This needs nsisbi for files > 2GB
|
||||
# nsisbi 3.10.3 is used on the CD
|
||||
# To build and install on macOS:
|
||||
# - install mingw-w64 and scons with Homebrew
|
||||
# - download the latest source at https://sourceforge.net/projects/nsisbi/files/
|
||||
# - build with `scons SKIPUTILS="Makensisw","NSIS Menu","zip2exe"`
|
||||
# - install with `sudo scons install SKIPUTILS="Makensisw","NSIS Menu","zip2exe"`
|
||||
# Running makensis also needs a LANG workaround for https://sourceforge.net/p/nsis/bugs/1165/
|
||||
LANG="en_GB.UTF-8" makensis -V4 -nocd \
|
||||
-dcheckoutpath="." \
|
||||
-dversion="${BUNDLE_VERSION}" \
|
||||
-dprefix="${PREFIX}" \
|
||||
-darchive_path="archives/" \
|
||||
source/tools/dist/0ad.nsi
|
||||
|
||||
# Fix permissions
|
||||
chmod -f 644 "${PREFIX}-win32.exe"
|
||||
Loading…
Reference in a new issue