diff --git a/release.stork b/release.stork new file mode 100755 index 000000000..023c4ecf1 --- /dev/null +++ b/release.stork @@ -0,0 +1,7 @@ +#!/usr/bin/env stork -f + +version:parser "__version__\\s*=\\s*['\"]([\\d\\.ab]+)[\"']" +version:file "pwnagotchi/_version.py" +version:from_user + +git:create_tag $VERSION \ No newline at end of file diff --git a/scripts/changelog.sh b/scripts/changelog.sh deleted file mode 100755 index 1c2f28a67..000000000 --- a/scripts/changelog.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -NEW=() -FIXES=() -MISC=() - -echo "@ Fetching remote tags ..." -git fetch --tags >/dev/null -printf "\n\n" - -CURTAG=$(git describe --tags --abbrev=0) -OUTPUT=$(git log $CURTAG..HEAD --oneline) -IFS=$'\n' LINES=($OUTPUT) - -for LINE in "${LINES[@]}"; do - LINE=$(echo "$LINE" | sed -E "s/^[[:xdigit:]]+\s+//") - if [[ $LINE == *"new:"* ]]; then - LINE=$(echo "$LINE" | sed -E "s/^new: //") - NEW+=("$LINE") - elif [[ $LINE == *"fix:"* ]]; then - LINE=$(echo "$LINE" | sed -E "s/^fix: //") - FIXES+=("$LINE") - elif [[ $LINE != *"i did not bother commenting"* ]] && [[ $LINE != *"Merge "* ]]; then - echo " MISC LINE =$LINE" - LINE=$(echo "$LINE" | sed -E "s/^[a-z]+: //") - MISC+=("$LINE") - fi -done - -if [ -n "$NEW" ]; then - echo - echo "**New Features**" - echo - for l in "${NEW[@]}"; do - echo "* $l" - done -fi - -if [ -n "$FIXES" ]; then - echo - echo "**Fixes**" - echo - for l in "${FIXES[@]}"; do - echo "* $l" - done -fi - -if [ -n "$MISC" ]; then - echo - echo "**Misc**" - echo - for l in "${MISC[@]}"; do - echo "* $l" - done -fi - -echo diff --git a/scripts/release.sh b/scripts/release.sh deleted file mode 100755 index abe406d21..000000000 --- a/scripts/release.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# nothing to see here, just a utility i use to create new releases ^_^ - -VERSION_FILE=$(dirname "${BASH_SOURCE[0]}")/../pwnagotchi/_version.py -echo "version file is $VERSION_FILE" -CURRENT_VERSION=$(cat $VERSION_FILE | grep version | cut -d"'" -f2) -TO_UPDATE=( - $VERSION_FILE -) - -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 - -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 ^_^"