Skip to content

Commit

Permalink
Don't include commit in release zip name
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Sep 2, 2018
1 parent 662e9e8 commit a19058b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

from zipfile import ZipFile

from randomizer import VERSION
from randomizer import VERSION_WITHOUT_COMMIT

base_name = "Wind Waker Randomizer"
base_name_with_version = base_name + " " + VERSION
base_name_with_version = base_name + " " + VERSION_WITHOUT_COMMIT
zip_name = base_name_with_version.replace(" ", "_") + ".zip"

with ZipFile("./dist/" + zip_name, "w") as zip:
Expand Down
2 changes: 2 additions & 0 deletions randomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
with open(os.path.join(RANDO_ROOT_PATH, "version.txt"), "r") as f:
VERSION = f.read().strip()

VERSION_WITHOUT_COMMIT = VERSION

# Try to add the git commit hash to the version number if running from source.
try:
from sys import _MEIPASS
Expand Down

0 comments on commit a19058b

Please sign in to comment.