mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-12 00:35:34 +00:00
21 lines
575 B
Bash
Executable File
21 lines
575 B
Bash
Executable File
#! /bin/bash
|
|
|
|
outdir=$(realpath $1) # output directory for the installer binaries
|
|
srcdir=$(realpath $(dirname $0)/..) # source directory
|
|
|
|
# for each supported windows architecture
|
|
for arch in x86_64 arm64; do
|
|
cd $(mktemp -d)
|
|
unzip $srcdir/dist/backrest_Windows_${arch}.zip
|
|
|
|
cp -rl $srcdir/build/windows/* .
|
|
|
|
if [ "$arch" == "x86_64" ]; then
|
|
docker run --rm -v $(pwd):/build binfalse/nsis install.nsi
|
|
else
|
|
docker run --rm -e TARGET_ARCH=arm64 -v $(pwd):/build binfalse/nsis install.nsi
|
|
fi
|
|
|
|
cp Backrest-setup.exe $outdir/Backrest-setup-${arch}.exe
|
|
done
|