Switch Windows build to cross-compile with Wine
This commit is contained in:
@@ -32,23 +32,19 @@ jobs:
|
||||
path: dist/vhs-decode-gui-linux
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
runs-on: ubuntu-latest
|
||||
container: tobix/pywine:3.11
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
wine python -m pip install -r requirements.txt
|
||||
|
||||
- name: Build with PyInstaller
|
||||
run: |
|
||||
pyinstaller --onefile --windowed --name vhs-decode-gui-windows.exe vhs_decode_gui.py
|
||||
wine pyinstaller --onefile --windowed --name vhs-decode-gui-windows.exe vhs_decode_gui.py
|
||||
|
||||
- name: Upload Windows Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user