mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
6461765cf7
* call bash through env progrem * add more strict defaults * [ -> [[ Signed-off-by: Maciej Barć <xgqt@gentoo.org>
26 lines
637 B
Bash
Executable file
26 lines
637 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
|
|
|
|
mkdir -p SourceGit.app/Contents/Resources
|
|
mv SourceGit SourceGit.app/Contents/MacOS
|
|
cp resources/app/App.icns SourceGit.app/Contents/Resources/App.icns
|
|
sed "s/SOURCE_GIT_VERSION/$VERSION/g" resources/app/App.plist > SourceGit.app/Contents/Info.plist
|
|
rm -rf SourceGit.app/Contents/MacOS/SourceGit.dsym
|
|
|
|
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit.app
|