File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626
2727 - name : Run build step (example)
2828 run : |
29- pyinstaller --onefile installer.py ${{ github.event.release.tag_name }}
29+ python setup.py ${{ github.event.release.tag_name }}
30+ pyinstaller --onefile installer.py
3031
3132 - name : Upload Asset to Release
3233 uses : softprops/action-gh-release@v1
Original file line number Diff line number Diff line change 99
1010# === CONFIGURATION ===
1111TARGET_DIR = os .path .expanduser ("~/Documents/mc" )
12- TAG = sys . argv [ 1 ] if len ( sys . argv ) > 1 else "1.1.0 "
12+ TAG = "!$!TAG!$! "
1313ZIP_URL = "https://github.com/StoppedwummPython/minecraft-launcher/archive/refs/tags/" + TAG + ".zip"
1414
1515def download_zip (url , dest_path ):
Original file line number Diff line number Diff line change 1+ import sys
2+ content = ""
3+ with open ("installer.py" , "r" ) as f :
4+ content = f .read ()
5+
6+ content = content .replace ("!$!TAG!$!" , sys .argv [1 ])
7+
8+ with open ("installer.py" , "w" ) as f :
9+ f .write (content )
You can’t perform that action at this time.
0 commit comments