-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathrelease.sh
33 lines (27 loc) · 920 Bytes
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
if [ -z $1 ]; then
echo "Do one of these:"
echo "./releash.sh build"
echo "./releash.sh update"
echo "./releash.sh minor"
echo "./releash.sh major"
exit
fi
version=`python -m bump $1`
git commit -a -m "version bump"
git tag v$version
rm -r artifacts/HexManiac.WPF/bin
dotnet build -c Debug -p:Platform=x64
dotnet build -c Release -p:Platform=x64
cd artifacts/HexManiac.WPF/bin/Debug/net6.0-windows
zip ../../../../../HexManiacAdvance_x64.$version.debug.zip -r .
cd ../../Release/net6.0-windows
zip ../../../../../HexManiacAdvance_x64.$version.zip -r .
cd ../../../../..
rm -r artifacts/HexManiac.WPF/bin
dotnet build -c Release -p:Platform=x86
cd artifacts/HexManiac.WPF/bin/Release/net6.0-windows
zip ../../../../../HexManiacAdvance_x86.$version.zip -r .
cd ../../../../..
cp *.zip sampleFiles/in_flight/old_zips
echo $version
echo "use 'git push origin v$version' to publish this release to GitHub."