-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (42 loc) · 1.3 KB
/
windows_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build and Release
permissions: write-all
on:
workflow_dispatch: {}
push:
paths:
- '.github/workflows/windows_build.yml'
- 'guiunstable.py'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Download Heimdall
run: |
Invoke-WebRequest https://bitbucket.org/benjamin_dobell/heimdall/downloads/heimdall-suite-1.4.0-win32.zip -OutFile heimdall.zip
expand-archive -path heimdall.zip -DestinationPath heimdall
Move-Item -Path "heimdall/Heimdall Suite/" -Destination heimdalll
rmdir -r heimdall
mv heimdalll heimdall
rm heimdall/Qt*
- name: Build
run: |
pyinstaller --add-data ./heimdall:heimdall --add-data "./devices.json:." --add-data "./python-logo-only.svg:." --onefile -w guiunstable.py
mv dist/* dist/SamsungFlashGUI.exe
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: windows
files: |
dist/SamsungFlashGUI.exe
env:
tag_name: windows