From 774f3043708194cd244b339bc167df7613b5bfdd Mon Sep 17 00:00:00 2001 From: Ayideyia <150233177+Ayideyia@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:08:23 +0800 Subject: [PATCH] ci: Hide the Dock icon on macOS. --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d38bce4b..0b4546ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,6 +68,13 @@ jobs: sudo apt-get update sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev + # Hide dock bar icon: macOS + - name: Update system and dependencies + if: runner.os == 'macOS' + run: | + go mod vendor + sed -i "" "s/\[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular\]/[NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory]/g" vendor/github.com/wailsapp/wails/v2/internal/frontend/desktop/darwin/AppDelegate.m + - name: Build Frontend run: cd frontend && pnpm build