diff --git a/README.md b/README.md index b6fce17..941ac75 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: diff --git a/generate-zip.py b/generate-zip.py new file mode 100644 index 0000000..3aa6c95 --- /dev/null +++ b/generate-zip.py @@ -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}') diff --git a/requirements.txt b/requirements.txt index a4f86ed..e2c2695 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 \ No newline at end of file +pywin32-ctypes==0.2.2 \ No newline at end of file