From 617227da75ff7996053428ae273e1af80a44848b Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Sat, 1 Apr 2023 21:12:03 -0400 Subject: [PATCH] [U] Update release script --- tools/deploy-release.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/deploy-release.py b/tools/deploy-release.py index d0f462b1..7486c9ed 100755 --- a/tools/deploy-release.py +++ b/tools/deploy-release.py @@ -25,6 +25,7 @@ def pre_check(): assert os.path.islink('./hyfetch/scripts/neowofetch'), 'neowofetch is not a symbolic link' # subprocess.check_call(shlex.split('git diff-index --quiet HEAD --')) # 'Please commit all changes before release' + print('Running shellcheck... (This may take a while)') subprocess.check_call(shlex.split('shellcheck neofetch')) @@ -46,8 +47,8 @@ def edit_versions(version: str): path.write_text(json.dumps(content, ensure_ascii=False, indent=2)) # 2. hyfetch/constants.py - print('Editing hyfetch/constants.py...') - path = Path('hyfetch/constants.py') + print('Editing hyfetch/__version__.py...') + path = Path('hyfetch/__version__.py') content = [f"VERSION = '{version}'" if l.startswith('VERSION = ') else l for l in path.read_text().split('\n')] path.write_text('\n'.join(content))