Skip to content

Commit 3a0a878

Browse files
committed
Add the converter and game versions to CONVERTER_FOLDER_NAME
1 parent d3b8688 commit 3a0a878

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Python/shared_globals.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# TODO: Move these to cfg.py
2-
CONVERTER_VERSION = "1.0"
3-
GAME_VERSION = "Pre4.0"
2+
CONVERTER_VERSION = "1.1"
3+
GAME_VERSION = "pre4.0"
44
NO_PATH_SET_COLOR = "#b35858"
5-
CONVERTER_FOLDER_NAME = "LegacyModConverter"
5+
VERSION_STRING = f"-v{CONVERTER_VERSION}-{GAME_VERSION}"
6+
CONVERTER_FOLDER_NAME = "LegacyModConverter" + VERSION_STRING
67
WARNINGS_MOD_NAME_SEPARATOR = "-" * 50
78

8-
NOT_RELEASE = False # This enables tests when set to True, as the release version shouldn't run tests.
9+
NOT_RELEASE = True # This enables tests when set to True, as the release version shouldn't run tests.
910

1011
sg = None
1112
progress_bar = None

Python/zips.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ def create_zips(input_folder_path, output_folder):
2727
def create_single_zip(mod_name, output_folder):
2828
print("Zipping '{}'".format(mod_name))
2929
mod_path = os.path.join(output_folder, mod_name)
30-
shutil.make_archive(mod_path.replace(".rte", f"-{cfg.GAME_VERSION.lower().replace(' ', '-')}-v1.0.rte"), "zip", root_dir=output_folder, base_dir=mod_name)
30+
shutil.make_archive(mod_path.replace(".rte", f"-v1.0-{cfg.GAME_VERSION}" + ".rte"), "zip", root_dir=output_folder, base_dir=mod_name)
3131
shutil.rmtree(mod_path)

0 commit comments

Comments
 (0)