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:
+4
-2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user