-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathmakerelease.sh
More file actions
executable file
·28 lines (24 loc) · 921 Bytes
/
Copy pathmakerelease.sh
File metadata and controls
executable file
·28 lines (24 loc) · 921 Bytes
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
#!/bin/bash
VERSION=$1
tmp="$(mktemp -u)"
if [ -z "$VERSION" ]; then
echo "Usage: $0 <version>"
exit 1
fi
jq '.version = "'$VERSION'"' smods.json > $tmp && mv $tmp smods.json
./dev/makezip.sh DebugPlus.zip
echo "Zip made for v$VERSION!"
echo
echo "If your releasing remeber to:"
echo "- Update changelog"
echo "- git add ."
echo "- git commit -m \"chore: bump to v$VERSION\""
echo "- git tag -a v$VERSION -m \"Release v$VERSION\""
echo "- git push"
echo "- git push origin master:stable"
echo "- git push origin v$VERSION"
echo "- Make a release with title 'DebugPlus v$VERSION' and desc as the changelog'"
echo " - https://github.com/WilsontheWolf/DebugPlus/releases/new?tag=v$VERSION&title=DebugPlus%20v$VERSION"
echo " - Don't forget to upload zip"
echo "- Change version after release so you don't have dev versions with the same build version!"
echo "- Thunderstore the bad boy (makethunderstore.sh)."