Create workflow

This commit is contained in:
oldnapalm
2022-12-29 18:10:42 -03:00
parent 0a5b359870
commit 2cfad25c4c
2 changed files with 33 additions and 1 deletions

32
.github/workflows/pyinstaller.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
on:
push:
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- run: pip install flask flask_sqlalchemy flask-login pyjwt gevent protobuf pycryptodome stravalib git+https://github.com/oldnapalm/garmin-uploader.git dnspython pyinstaller
- run: pyinstaller standalone.spec
- uses: vimtor/action-zip@v1
with:
files: dist
dest: zoffline-nightly.zip
- uses: WebFreak001/deploy-nightly@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # automatically provided by github actions
with:
upload_url: https://uploads.github.com/repos/zoffline/zwift-offline/releases/87551648/assets{?name,label}
release_id: 87551648
asset_path: zoffline-nightly.zip
asset_name: zoffline-nightly.zip
asset_content_type: application/zip

View File

@@ -38,6 +38,6 @@ exe = EXE(pyz,
import subprocess
subprocess.call(['C:\\Program Files (x86)\\Windows Kits\\10\\App Certification Kit\\signtool.exe', 'sign',
'/f', 'ssl\\cert-zwift-com.p12',
'/f', 'ssl\\cert-zwift-com.p12', '/fd', 'sha1',
'/t', 'http://timestamp.digicert.com',
'dist\\zoffline_%s.exe' % version])