Skip to content

Commit

Permalink
[U] Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Apr 2, 2023
1 parent 8ffb806 commit 617227d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/deploy-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))


Expand All @@ -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))

Expand Down

0 comments on commit 617227d

Please sign in to comment.