mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
This is barely scratching the surface (no put intended), and of course the container needs to be updated, first, to have a 64bit version of MXE installed, but this seems to help make libmtp build correctly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
28 lines
647 B
Bash
28 lines
647 B
Bash
#!/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 -f mdbtools/include/mdbver.h
|
|
|
|
# build the installer
|
|
rm -rf win64
|
|
mkdir win64
|
|
cd win64
|
|
|
|
# build Subsurface and then smtk2ssrf
|
|
export MXEBUILDTYPE=x86_64-w64-mingw32.shared
|
|
export PATH=/win/mxe/usr/bin:$PATH
|
|
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
|
|
|