diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-09-28 10:33:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-09-28 10:38:08 -0700 |
commit | 63cc2d864fe8e5c776f3675067100a907a45b2f3 (patch) | |
tree | 06909a30521c7c8c83091f2a7206367d54d31bf4 /packaging/windows/create-win-installer.sh | |
parent | 6835f03bae324d45fb5f6970beb26b781bfb8c24 (diff) | |
download | subsurface-63cc2d864fe8e5c776f3675067100a907a45b2f3.tar.gz |
build-system: document how to create a Windows installer
These are the instructions that I use at this point.
Removed a long obsolete script - it's been many, many years since that last was
useful (it was still using qmake to try to build Subsurface)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/windows/create-win-installer.sh')
-rw-r--r-- | packaging/windows/create-win-installer.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packaging/windows/create-win-installer.sh b/packaging/windows/create-win-installer.sh new file mode 100644 index 000000000..e5e5c946e --- /dev/null +++ b/packaging/windows/create-win-installer.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# this is run inside the docker container +cd /__w + +[ ! -d mxe ] || ln -s /win/mxe . + +# prep the container +bash subsurface/.github/workflows/scripts/windows-container-prep.sh + +# remove artifact from prior builds +rm mdbtools/include/mdbver.h + +# build the installer +rm -rf win32 +mkdir win32 +cd win32 + +# build Subsurface and then smtk2ssrf +export MXEBUILDTYPE=i686-w64-mingw32.shared +bash -ex ../subsurface/packaging/windows/mxe-based-build.sh installer +mv subsurface/subsurface-*.exe /__w + +bash -ex ../subsurface/packaging/windows/smtk2ssrf-mxe-build.sh -a -i + +mv smtk-import/smtk2ssrf*.exe /__w + |