mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-08 09:36:16 +00:00
d92777a3ff
Do some housekeeping and cleanup on the build scripts for Windows: - remove Windows 32bit builds as support for this has been removed from the mxe container; - fix some warnings in the smtk2ssrf installer configuration; - sanitise the output colour of the smtk2ssrf build script; - add a docker based build script for the Windows installers; - remove outdated and deprecated documentation and scripts. Signed-off-by: Michael Keller <mikeller@042.ch>
32 lines
1.2 KiB
Bash
32 lines
1.2 KiB
Bash
#!/bin/bash
|
|
# this gets executed inside the container when building a Windows
|
|
# installer as GitHub Action
|
|
#
|
|
# working directory is assumed to be the directory including all the
|
|
# source directories (subsurface, googlemaps, grantlee, etc)
|
|
# in order to be compatible with the assumed layout in the MXE script, we
|
|
# need to create the secondary build directory
|
|
|
|
set -x
|
|
set -e
|
|
|
|
mkdir -p win32
|
|
cd win32
|
|
|
|
# build Subsurface and then smtk2ssrf
|
|
export MXEBUILDTYPE=x86_64-w64-mingw32.shared
|
|
bash -ex ../subsurface/packaging/windows/mxe-based-build.sh installer
|
|
|
|
# the strange two step move is in order to get predictable names to use
|
|
# in the publish step of the GitHub Action
|
|
mv subsurface/subsurface.exe* ${OUTPUT_DIR}/
|
|
fullname=$(cd subsurface ; ls subsurface-*.exe)
|
|
mv subsurface/"$fullname" ${OUTPUT_DIR}/"${fullname%.exe}-installer.exe"
|
|
|
|
bash -ex ../subsurface/packaging/windows/smtk2ssrf-mxe-build.sh -a -i
|
|
|
|
# the strange two step move is in order to get predictable names to use
|
|
# in the publish step of the GitHub Action
|
|
mv smtk-import/smtk2ssrf.exe ${OUTPUT_DIR}/
|
|
fullname=$(cd smtk-import ; ls smtk2ssrf*.exe)
|
|
mv smtk-import/smtk2ssrf*.exe ${OUTPUT_DIR}/"${fullname%.exe}-installer.exe"
|