Skip to content

Commit

Permalink
using cx_freeze instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntist committed Nov 19, 2024
1 parent e53c135 commit 642813b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,24 @@ jobs:
- name: Install Nuitka
run: |
python -m pip install --upgrade pip
python -m pip install nuitka requests tqdm
python -m pip install cx_freeze requests tqdm
- name: Build Standalone Installer
env:
NUITKA_DOWNLOADS: yes
run: |
python -m nuitka installer.py --standalone --onefile --assume-yes-for-downloads
cxfreeze --script installer.py --target-dir dist
- name: Zip the output
run: |
powershell Compress-Archive -Path "dist\*" -DestinationPath "installer-win.zip"
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ./installer.exe
asset_name: installer.exe
asset_path: ./installer-win.zip
asset_name: installer-win.zip
asset_content_type: application/octet-stream
3 changes: 0 additions & 3 deletions installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
tag_name = response.json()["tag_name"]

def check_for_electron_app():
"""Check if any files match the pattern and return their paths."""
files = glob.glob("maestro*")
return files

Expand Down Expand Up @@ -117,8 +116,6 @@ def main():
file = download_file("https://github.com/pcdslab/ProteoRift/archive/refs/heads/main.zip", electron_app_dir)
extract_zip(file, electron_app_dir)

print(file)

if(platform.system() == "Windows"):
run_command(f"del {file}")
else:
Expand Down

0 comments on commit 642813b

Please sign in to comment.