-
-
Notifications
You must be signed in to change notification settings - Fork 48
74 lines (61 loc) · 1.83 KB
/
build-windows.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build Windows
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
path-type: inherit
update: true
install: >-
make
wget
zip
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install Dependencies
run: >
pacman -Syu &&
pacman --noconfirm -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-mpv
- name: Build
run: go build
- name: Install Fyne tool
run: go install fyne.io/fyne/v2/cmd/fyne@latest
- name: Package
run: make package_windows
- name: Download mpv dll
run: >
wget https://github.com/dweymouth/supersonic/releases/download/v0.8.0/Supersonic-0.8.0-windows-x64.zip &&
mv Supersonic.exe Supersonic-newbuild.exe &&
unzip Supersonic-0.8.0-windows-x64.zip &&
rm Supersonic.exe &&
mv Supersonic-newbuild.exe Supersonic.exe
- name: Generate zip bundle
run: zip Supersonic-windows.zip Supersonic.exe libmpv-2.dll
- name: Generate installer
uses: Minionguyjpro/[email protected]
with:
path: win_inno_installscript.iss
- name: Upload zip
uses: actions/upload-artifact@v3
with:
name: Supersonic_windows_x64.zip
path: Supersonic-windows.zip
- name: Upload installer
uses: actions/upload-artifact@v3
with:
name: Supersonic_windows_x64_installer.exe
path: Output/supersonic-installer.exe