mirror of
https://github.com/lone-cloud/gerbil
synced 2026-06-03 19:54:44 -07:00
better app name matching for GNOME resources on linux, better app name display in OSX, auto hide menu bar for new html windows
This commit is contained in:
parent
f117c14869
commit
a21857dfb6
4 changed files with 128 additions and 128 deletions
7
.github/workflows/aur-release.yml
vendored
7
.github/workflows/aur-release.yml
vendored
|
|
@ -206,6 +206,11 @@ jobs:
|
|||
install -dm755 "${pkgdir}/opt/gerbil"
|
||||
cp -r squashfs-root/* "${pkgdir}/opt/gerbil/"
|
||||
|
||||
# Rename main binary to lowercase for consistency
|
||||
if [ -f "${pkgdir}/opt/gerbil/Gerbil" ]; then
|
||||
mv "${pkgdir}/opt/gerbil/Gerbil" "${pkgdir}/opt/gerbil/gerbil"
|
||||
fi
|
||||
|
||||
# Fix permissions on extracted files
|
||||
chmod -R 755 "${pkgdir}/opt/gerbil/"
|
||||
|
||||
|
|
@ -213,7 +218,7 @@ jobs:
|
|||
install -dm755 "${pkgdir}/usr/bin"
|
||||
cat > "${pkgdir}/usr/bin/gerbil" << 'WRAPPER'
|
||||
#!/bin/bash
|
||||
exec "/opt/gerbil/Gerbil" "$@"
|
||||
exec "/opt/gerbil/gerbil" "$@"
|
||||
WRAPPER
|
||||
chmod +x "${pkgdir}/usr/bin/gerbil"
|
||||
|
||||
|
|
|
|||
10
package.json
10
package.json
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "gerbil",
|
||||
"productName": "Gerbil",
|
||||
"version": "1.5.3",
|
||||
"version": "1.5.4",
|
||||
"description": "Run Large Language Models locally",
|
||||
"main": "out/main/index.js",
|
||||
"homepage": "./",
|
||||
|
|
@ -165,14 +165,6 @@
|
|||
"compression": "store",
|
||||
"category": "Utility",
|
||||
"icon": "src/assets/icon.png",
|
||||
"desktop": {
|
||||
"entry": {
|
||||
"Name": "Gerbil",
|
||||
"Comment": "Run Large Language Models locally",
|
||||
"Categories": "Utility;",
|
||||
"StartupWMClass": "Gerbil"
|
||||
}
|
||||
},
|
||||
"extraFiles": [
|
||||
{
|
||||
"from": "assets/gerbil.desktop",
|
||||
|
|
|
|||
|
|
@ -16,11 +16,13 @@ import { stopFrontend as stopOpenWebUI } from '@/main/modules/openwebui';
|
|||
import { stopFrontend as stopComfyUI } from '@/main/modules/comfyui';
|
||||
import { setupIPCHandlers } from '@/main/ipc';
|
||||
import { ensureDir } from '@/utils/node/fs';
|
||||
import { PRODUCT_NAME } from '@/constants';
|
||||
|
||||
export async function initializeApp() {
|
||||
const installDir = getInstallDir();
|
||||
|
||||
await app.whenReady();
|
||||
app.setName(PRODUCT_NAME);
|
||||
await initializeConfig();
|
||||
await ensureDir(installDir);
|
||||
|
||||
|
|
|
|||
|
|
@ -142,6 +142,7 @@ export function createMainWindow() {
|
|||
: join(__dirname, '../../assets/icon.png'),
|
||||
title: PRODUCT_NAME,
|
||||
backgroundColor: getBackgroundColor(),
|
||||
autoHideMenuBar: true,
|
||||
},
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue