Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve unix (wine) compatibility #139

Merged
merged 2 commits into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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