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
4bed3789aa
commit
198b38ae63
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"
|
install -dm755 "${pkgdir}/opt/gerbil"
|
||||||
cp -r squashfs-root/* "${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
|
# Fix permissions on extracted files
|
||||||
chmod -R 755 "${pkgdir}/opt/gerbil/"
|
chmod -R 755 "${pkgdir}/opt/gerbil/"
|
||||||
|
|
||||||
|
|
@ -213,7 +218,7 @@ jobs:
|
||||||
install -dm755 "${pkgdir}/usr/bin"
|
install -dm755 "${pkgdir}/usr/bin"
|
||||||
cat > "${pkgdir}/usr/bin/gerbil" << 'WRAPPER'
|
cat > "${pkgdir}/usr/bin/gerbil" << 'WRAPPER'
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exec "/opt/gerbil/Gerbil" "$@"
|
exec "/opt/gerbil/gerbil" "$@"
|
||||||
WRAPPER
|
WRAPPER
|
||||||
chmod +x "${pkgdir}/usr/bin/gerbil"
|
chmod +x "${pkgdir}/usr/bin/gerbil"
|
||||||
|
|
||||||
|
|
|
||||||
10
package.json
10
package.json
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "gerbil",
|
"name": "gerbil",
|
||||||
"productName": "Gerbil",
|
"productName": "Gerbil",
|
||||||
"version": "1.5.3",
|
"version": "1.5.4",
|
||||||
"description": "Run Large Language Models locally",
|
"description": "Run Large Language Models locally",
|
||||||
"main": "out/main/index.js",
|
"main": "out/main/index.js",
|
||||||
"homepage": "./",
|
"homepage": "./",
|
||||||
|
|
@ -165,14 +165,6 @@
|
||||||
"compression": "store",
|
"compression": "store",
|
||||||
"category": "Utility",
|
"category": "Utility",
|
||||||
"icon": "src/assets/icon.png",
|
"icon": "src/assets/icon.png",
|
||||||
"desktop": {
|
|
||||||
"entry": {
|
|
||||||
"Name": "Gerbil",
|
|
||||||
"Comment": "Run Large Language Models locally",
|
|
||||||
"Categories": "Utility;",
|
|
||||||
"StartupWMClass": "Gerbil"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"extraFiles": [
|
"extraFiles": [
|
||||||
{
|
{
|
||||||
"from": "assets/gerbil.desktop",
|
"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 { stopFrontend as stopComfyUI } from '@/main/modules/comfyui';
|
||||||
import { setupIPCHandlers } from '@/main/ipc';
|
import { setupIPCHandlers } from '@/main/ipc';
|
||||||
import { ensureDir } from '@/utils/node/fs';
|
import { ensureDir } from '@/utils/node/fs';
|
||||||
|
import { PRODUCT_NAME } from '@/constants';
|
||||||
|
|
||||||
export async function initializeApp() {
|
export async function initializeApp() {
|
||||||
const installDir = getInstallDir();
|
const installDir = getInstallDir();
|
||||||
|
|
||||||
await app.whenReady();
|
await app.whenReady();
|
||||||
|
app.setName(PRODUCT_NAME);
|
||||||
await initializeConfig();
|
await initializeConfig();
|
||||||
await ensureDir(installDir);
|
await ensureDir(installDir);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ export function createMainWindow() {
|
||||||
: join(__dirname, '../../assets/icon.png'),
|
: join(__dirname, '../../assets/icon.png'),
|
||||||
title: PRODUCT_NAME,
|
title: PRODUCT_NAME,
|
||||||
backgroundColor: getBackgroundColor(),
|
backgroundColor: getBackgroundColor(),
|
||||||
|
autoHideMenuBar: true,
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue