mirror of
https://github.com/evilsocket/arc.git
synced 2024-05-26 22:37:37 +03:00
misc: removed new_release.sh script
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# nothing to see here, just a utility i use to create new releases ^_^
|
|
||||||
|
|
||||||
VERSION_FILE=$(dirname "${BASH_SOURCE[0]}")/config/version.go
|
|
||||||
echo "version file is $VERSION_FILE"
|
|
||||||
CURRENT_VERSION=$(cat $VERSION_FILE | grep APP_VERSION | cut -d '"' -f 2)
|
|
||||||
TO_UPDATE=(
|
|
||||||
"$VERSION_FILE"
|
|
||||||
webui/js/version.js
|
|
||||||
)
|
|
||||||
|
|
||||||
echo -n "current version is $CURRENT_VERSION, select new version: "
|
|
||||||
read NEW_VERSION
|
|
||||||
echo "creating version $NEW_VERSION ...\n"
|
|
||||||
|
|
||||||
for file in "${TO_UPDATE[@]}"; do
|
|
||||||
echo "patching $file ..."
|
|
||||||
sed -i.bak "s/$CURRENT_VERSION/$NEW_VERSION/g" "$file"
|
|
||||||
rm -rf "$file.bak"
|
|
||||||
git add $file
|
|
||||||
done
|
|
||||||
|
|
||||||
make assets
|
|
||||||
git add webui
|
|
||||||
|
|
||||||
git commit -m "releasing v$NEW_VERSION"
|
|
||||||
git push
|
|
||||||
git tag -a v$NEW_VERSION -m "release v$NEW_VERSION"
|
|
||||||
git push origin v$NEW_VERSION
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "All done, v$NEW_VERSION released ^_^"
|
|
||||||
Reference in New Issue
Block a user