Skip to content

Commit

Permalink
Revert "Give all release files the same name"
Browse files Browse the repository at this point in the history
This reverts commit ee88cf0.

Giving all files different names enables users to downgrade / upgrade at
will, I like that.
  • Loading branch information
walles committed Aug 14, 2021
1 parent ecb65b4 commit 26727f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/env/
__pycache__/
/releases/*/find_bad_tracks.py
/find_bad_tracks-*.py
9 changes: 4 additions & 5 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ echo
echo "The tag description will be on the releases page on Github, write something nice!"
git tag --annotate "$VERSION"

RELEASE_DIR="releases/$VERSION"
mkdir "$RELEASE_DIR"

# If we name it with 1.2.3 at the end Blender fails to load it, so the .py file
# name version number must be underscore separated.
UNDERSCORE_VERSION=$(echo "$VERSION" | tr . _)
COMMAS_VERSION="${UNDERSCORE_VERSION//_/, }"
sed "s/ \"version\": .*/ \"version\": ($COMMAS_VERSION),/" <"__init__.py" >"$RELEASE_DIR/find_bad_tracks.py"
sed "s/ \"version\": .*/ \"version\": ($COMMAS_VERSION),/" <"__init__.py" >"find_bad_tracks-${UNDERSCORE_VERSION}.py"

git push --tags

echo "Please upload $RELEASE_DIR/find_bad_tracks.py at https://github.com/walles/find_bad_motion_tracks/releases/tag/$VERSION"
echo "Please upload find_bad_tracks-${UNDERSCORE_VERSION}.py at https://github.com/walles/find_bad_motion_tracks/releases/tag/$VERSION"
read -r -p "Press RETURN when done > "

0 comments on commit 26727f8

Please sign in to comment.