Skip to content

Commit

Permalink
#21: trim v from version
Browse files Browse the repository at this point in the history
  • Loading branch information
artemy committed Dec 4, 2024
1 parent d0ea8e3 commit a46d443
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import re
import sys

APPS = [
Expand All @@ -18,6 +19,7 @@
def prepare_workflow(app):
app_name, keyword, bundle = app
version = sys.argv[1] if len(sys.argv) > 1 else "unknown"
version = re.sub(r'v(.*)', r'\1', version)
print(f"Building {app_name} v{version}")
os.system(f'mkdir -p out/{keyword}')
os.system(f'cp icons/{keyword}.png ./out/{keyword}/icon.png')
Expand Down

0 comments on commit a46d443

Please sign in to comment.