Add a patch to hide the electron menu by default

Pressing `Alt` will still reveal it
This commit is contained in:
David Birks 2025-07-08 01:21:50 -04:00
parent cf2afa6192
commit 85c79e2a07
No known key found for this signature in database
3 changed files with 23 additions and 4 deletions

View file

@ -1,7 +1,7 @@
pkgbase = goose-desktop
pkgdesc = An open-source, extensible AI agent that goes beyond code suggestions (with UI)
pkgver = 1.0.35
pkgrel = 1
pkgrel = 2
url = https://github.com/block/goose
arch = x86_64
license = Apache-2.0
@ -16,6 +16,8 @@ pkgbase = goose-desktop
options = !lto
options = !debug
source = https://github.com/block/goose/archive/refs/tags/v1.0.35.tar.gz
source = auto-hide-menu-bar.patch
b2sums = 4a65ce80da087ffcf23c236677c1385ab688375ae2204459f362c560114a76366dd63ab26c04db87376517b7479d3e515367affbf382696bb7dd5da6c46bc16e
b2sums = 94d5a2add73bcde850f5c0555039d71b63611e54dc896ab8b5c12165884ad4126e3298c6542a10d82ef9b84f6b191468c6ba4a7843a854c560facd3591b5bdc5
pkgname = goose-desktop

View file

@ -2,7 +2,7 @@
pkgname=goose-desktop
pkgver=1.0.35
pkgrel=1
pkgrel=2
pkgdesc="An open-source, extensible AI agent that goes beyond code suggestions (with UI)"
arch=("x86_64")
url="https://github.com/block/goose"
@ -20,13 +20,24 @@ makedepends=(
)
# LTO is broken for dependency ring https://github.com/briansmith/ring/issues/1444
options=("!lto" "!debug")
source=("https://github.com/block/goose/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('4a65ce80da087ffcf23c236677c1385ab688375ae2204459f362c560114a76366dd63ab26c04db87376517b7479d3e515367affbf382696bb7dd5da6c46bc16e')
source=(
"https://github.com/block/goose/archive/refs/tags/v${pkgver}.tar.gz"
"auto-hide-menu-bar.patch"
)
b2sums=('4a65ce80da087ffcf23c236677c1385ab688375ae2204459f362c560114a76366dd63ab26c04db87376517b7479d3e515367affbf382696bb7dd5da6c46bc16e'
'94d5a2add73bcde850f5c0555039d71b63611e54dc896ab8b5c12165884ad4126e3298c6542a10d82ef9b84f6b191468c6ba4a7843a854c560facd3591b5bdc5')
conflicts=(
"codename-goose"
"codename-goose-bin"
)
prepare() {
cd goose-$pkgver
# Apply patches
patch -Np1 -i "$srcdir/auto-hide-menu-bar.patch"
}
build() {
cd goose-$pkgver

6
auto-hide-menu-bar.patch Normal file
View file

@ -0,0 +1,6 @@
diff --git a/ui/desktop/src/main.ts b/ui/desktop/src/main.ts
index b86e34d3aa..c2075a3883 100644
--- a/ui/desktop/src/main.ts
+++ b/ui/desktop/src/main.ts
@@ -541,0 +542 @@ const createChat = async (
+ autoHideMenuBar: process.platform === 'linux' ? true : false,