Skip to content

Build macOS installer #7

Build macOS installer

Build macOS installer #7

Workflow file for this run

name: Build macOS installer
on:
push:
tags:
- 'v*'
jobs:
build-macos:
name: Build macOS installer (Fyne)
runs-on: macos-latest
strategy:
matrix:
go-version: [1.26]
arch: [amd64, arm64]
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: 'go.mod'
cache: true
- name: build pkg
run: |
go install fyne.io/tools/cmd/fyne@latest
export PATH="$(go env GOPATH)/bin:$PATH"
fyne package -os darwin -release
zip -r krab-${{ matrix.arch }}.zip *.app
- name: Upload
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
with:
name: krab-macos-${{ matrix.arch }}
path: |
krab-${{ matrix.arch }}.zip