From 85c79e2a070ae0142366d71ee302505df2f719e4 Mon Sep 17 00:00:00 2001 From: David Birks Date: Tue, 8 Jul 2025 01:21:50 -0400 Subject: [PATCH] Add a patch to hide the electron menu by default Pressing `Alt` will still reveal it --- .SRCINFO | 4 +++- PKGBUILD | 17 ++++++++++++++--- auto-hide-menu-bar.patch | 6 ++++++ 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 auto-hide-menu-bar.patch diff --git a/.SRCINFO b/.SRCINFO index 0be6fde6fd5a..29b5201941e9 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -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 diff --git a/PKGBUILD b/PKGBUILD index be59f3b99378..4fd33e946281 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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 diff --git a/auto-hide-menu-bar.patch b/auto-hide-menu-bar.patch new file mode 100644 index 000000000000..3b229e6e68ac --- /dev/null +++ b/auto-hide-menu-bar.patch @@ -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,