You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
617 B
27 lines
617 B
11 months ago
|
#!/bin/sh
|
||
|
|
||
|
while getopts v: flag
|
||
|
do
|
||
|
case "${flag}" in
|
||
|
v) version=${OPTARG};;
|
||
|
*) echo "Invalid option";;
|
||
|
esac
|
||
|
done
|
||
|
|
||
|
dotnet \
|
||
|
msbuild \
|
||
|
StabilityMatrix.Avalonia \
|
||
|
-t:BundleApp \
|
||
|
-p:RuntimeIdentifier=osx-arm64 \
|
||
|
-p:UseAppHost=true \
|
||
|
-p:Configuration=Release \
|
||
|
-p:CFBundleShortVersionString="$version" \
|
||
|
-p:SelfContained=true \
|
||
|
-p:CFBundleName="Stability Matrix" \
|
||
|
-p:CFBundleDisplayName="Stability Matrix" \
|
||
|
-p:CFBundleVersion="$version" \
|
||
|
-p:PublishDir="$(pwd)/out/osx-arm64/bin" \
|
||
|
|
||
|
# Copy the app out of bin
|
||
|
cp -r ./out/osx-arm64/bin/Stability\ Matrix.app ./out/osx-arm64/Stability\ Matrix.app
|