1
0
forked from boos/BoosAPI

feat: add macOS ad-hoc signing support

- Implemented afterPack script to ensure ad-hoc signature for macOS builds.
- Created macosSignUtils module to handle app path retrieval, signature inspection, and ad-hoc signing.
- Added functions to check if the app is signed and apply ad-hoc signing if necessary.
This commit is contained in:
cita
2026-03-06 19:58:38 +08:00
parent 19125d686e
commit 6c51801e50
8 changed files with 142 additions and 55 deletions
+4 -2
View File
@@ -8,7 +8,7 @@ import {
shell,
} from 'electron';
import log from 'electron-log';
import { autoUpdater } from 'electron-updater';
import electronUpdater from 'electron-updater';
import getPort, { portNumbers } from 'get-port';
import { spawn, type ChildProcess } from 'node:child_process';
import { existsSync, mkdirSync } from 'node:fs';
@@ -21,6 +21,8 @@ import {
waitForServerReady,
} from './runtime.js';
const { autoUpdater } = electronUpdater;
let mainWindow: BrowserWindow | null = null;
let tray: Tray | null = null;
let serverProcess: ChildProcess | null = null;
@@ -48,7 +50,7 @@ function getServerEntryPath() {
}
function getTrayIconPath() {
return join(app.getAppPath(), 'dist', 'web', 'favicon.png');
return join(app.getAppPath(), 'dist', 'web', 'logo.png');
}
function getWindowIconPath() {