From 489c493fce0e251d0586369207b00f37c3ec0528 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Fri, 12 Mar 2021 15:41:42 +0100 Subject: [PATCH] misc: removed new_release.sh script --- new_release.sh | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 new_release.sh diff --git a/new_release.sh b/new_release.sh deleted file mode 100755 index cb1858e..0000000 --- a/new_release.sh +++ /dev/null @@ -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 ^_^"