Skip to content

Commit

Permalink
Improve unix (wine) compatibility (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin authored May 12, 2024
1 parent 3283ad9 commit 3b9f9c2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Written in Python (3.12.2) and PyQt5.
To build locally:

```powershell
# Create virtual env
python -m venv venv
# Create virtual env using Python 3.11.9 64-bit
py -3.11 -m venv venv
# Activate virtual env with the appropriate script for your platform in venv/Scripts, eg. for PowerShell:
.\venv\Scripts\Activate.ps1
Expand All @@ -30,7 +30,7 @@ python app.py
pyinstaller --noconsole --noconfirm --clean --add-data 'third-party;third-party' --add-data 'icon.png;.' --name "turbowarp-packager-extras" --version-file file_version_info.txt --icon icon.ico app.py
# Create zip
Compress-Archive -Path "dist/turbowarp-packager-extras" -DestinationPath "dist/turbowarp-packager-extras.zip" -Force
python generate-zip.py
```

For each release:
Expand Down
7 changes: 7 additions & 0 deletions generate-zip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# PowerShell's Compress-Archive creates zips that unix tools have a lot of trouble
# understanding, so we use this small script instead. This makes it easier for people
# to extract and run the program using Wine.

import shutil
name = shutil.make_archive('dist/turbowarp-packager-extras', 'zip', 'dist', 'turbowarp-packager-extras')
print(f'Generated {name}')
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pillow==10.3.0
pyinstaller==6.6.0
pyinstaller-hooks-contrib==2024.6
PyQt5==5.15.10
PyQt5-Qt5==5.15.13
PyQt5-Qt5==5.15.2
PyQt5-sip==12.13.0
pywin32-ctypes==0.2.2
setuptools==69.3.0
pywin32-ctypes==0.2.2

0 comments on commit 3b9f9c2

Please sign in to comment.