-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 2.26 KB
/
release.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
name: Build Release
on:
push:
branches:
- "master"
tags:
- "v*"
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Setup Go 1.23
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
## Install Dependencies
sudo apt update -y
sudo apt install -y docker git zip gzip tar
go install github.com/fyne-io/fyne-cross@latest
## Check out the macos SDK from git
git clone https://github.com/alexey-lysiuk/macos-sdk.git
## Build the App
~/go/bin/fyne-cross linux -arch=amd64,arm64 -app-id="OnionSoup"
~/go/bin/fyne-cross windows -arch=amd64,arm64 -app-id="Onion.Soup"
~/go/bin/fyne-cross darwin -arch=amd64,arm64 -app-id="Onion.Soup" --macosx-sdk-path $(pwd)/macos-sdk/MacOSX12.3.sdk
## Pack Up Each Release
mv fyne-cross/dist/linux-amd64/onionsoup.tar.xz fyne-cross/onionsoup_linux_amd64.tar.xz
mv fyne-cross/dist/linux-arm64/onionsoup.tar.xz fyne-cross/onionsoup_linux_arm64.tar.xz
mv fyne-cross/dist/windows-amd64/onionsoup.exe.zip fyne-cross/onionsoup_windows_amd64.exe.zip
mv fyne-cross/dist/windows-arm64/onionsoup.exe.zip fyne-cross/onionsoup_windows_arm64.exe.zip
tar -czf onionsoup_mac_amd64.tar.gz -C fyne-cross/dist/darwin-amd64/onionsoup.app onionsoup.app
tar -czf onionsoup_mac_arm64.tar.gz -C fyne-cross/dist/darwin-arm64/onionsoup.app onionsoup.app
mv onionsoup_mac_amd64.tar.gz fyne-cross/onionsoup_mac_amd64.tar.gz
mv onionsoup_mac_arm64.tar.gz fyne-cross/onionsoup_mac_arm64.tar.gz
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
LICENSE
fyne-cross/onionsoup_linux_amd64.tar.xz
fyne-cross/onionsoup_linux_arm64.tar.xz
fyne-cross/onionsoup_windows_amd64.exe.zip
fyne-cross/onionsoup_windows_arm64.exe.zip
fyne-cross/onionsoup_mac_amd64.tar.gz
fyne-cross/onionsoup_mac_arm64.tar.gz
token: ${{ secrets.GH_TOKEN }}