sourcegit/build/scripts/package.windows-portable.sh

23 lines
355 B
Bash
Raw Normal View History

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