2019-10-16 18:31:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# this gets executed inside the container when building a Windows
|
2023-12-06 21:20:20 +00:00
|
|
|
# installer as GitHub Action
|
2019-10-16 18:31:29 +00:00
|
|
|
#
|
|
|
|
# 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
|
2020-10-29 20:03:56 +00:00
|
|
|
export MXEBUILDTYPE=x86_64-w64-mingw32.shared
|
2019-10-16 18:31:29 +00:00
|
|
|
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* ${GITHUB_WORKSPACE}/
|
|
|
|
mv subsurface/subsurface-*.exe ${GITHUB_WORKSPACE}/subsurface-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 ${GITHUB_WORKSPACE}/
|
|
|
|
mv smtk-import/smtk2ssrf*.exe ${GITHUB_WORKSPACE}/smtk2ssrf-installer.exe
|