sourcegit/build/scripts/package.windows-portable.sh
Maciej Barć 6461765cf7
build: minor tweaks
* call bash through env progrem
* add more strict defaults
* [ -> [[

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
2024-09-22 16:16:12 +02:00

22 lines
355 B
Bash
Executable file

#!/usr/bin/env bash
set -e
set -o
set -u
set pipefail
if [[ -z "$VERSION" ]]; then
echo "Provide the version as environment variable VERSION"
exit 1
fi
if [[ -z "$RUNTIME" ]]; then
echo "Provide the runtime as environment variable RUNTIME"
exit 1
fi
cd build
rm -rf SourceGit/*.pdb
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit