mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-04-26 08:18:18 -05:00
making a release is less tedious with these new utilities. * bump can bump the patch, minor, or major version, and returns the new version. * release can commit the files changed by bump, then tag, build, and zip.
25 lines
748 B
Bash
25 lines
748 B
Bash
|
|
version=`python -m bump`
|
|
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."
|