41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
name: Windows build & release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: 'ubuntu-latest'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Wine
|
|
run: |
|
|
dpkg --add-architecture i386
|
|
apt-get update
|
|
apt-get install -y wine wine64 wget
|
|
|
|
- name: Install Windows Python
|
|
run: |
|
|
wget -nv https://www.python.org/ftp/python/3.13.0/python-3.13.0-amd64.exe
|
|
wine python-3.13.0-amd64.exe /quiet InstallAllUsers=1 PrependPath=1
|
|
wine pip install pyinstaller
|
|
|
|
- name: Build executable
|
|
run: |
|
|
wine pip install .
|
|
wine pyinstaller mobbing_notification.spec
|
|
|
|
# - name: Create ZIP archive
|
|
# run: Compress-Archive -Path ./dist/wunderland-generator.exe -Destination ./dist/wunderland-generator.zip
|
|
|
|
# - name: Release ZIP archive
|
|
# uses: softprops/action-gh-release@v1
|
|
# with:
|
|
# files: ./dist/wunderland-generator.zip
|
|
# env:
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |