You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
首次打包后可以正常运行,关闭终端,第二次启动:
这是defaults.ts
import { PakeCliOptions } from './types.js';
export const DEFAULT_PAKE_OPTIONS: PakeCliOptions = {
icon: './local/favicon.ico',
height: 1080,
width: 1920,
fullscreen: false,
resizable: true,
hideTitleBar: false,
alwaysOnTop: false,
darkMode: false,
disabledWebShortcuts: false,
activationShortcut: '',
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36',
showSystemTray: false,
multiArch: false,
targets: 'deb',
useLocalFile: true,
systemTrayIcon: '',
debug: false,
inject: [],
safeDomain: ['127.0.0.1'],
installerLanguage: 'zh-CN',
};
// Just for cli development
export const DEFAULT_DEV_PAKE_OPTIONS: PakeCliOptions & { url: string } = {
...DEFAULT_PAKE_OPTIONS,
url: './local/index.html',
name: 'Local',
safeDomain: ['127.0.0.1'],
hideTitleBar: true,
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36',
};
console.log('Updated DEFAULT_DEV_PAKE_OPTIONS:', DEFAULT_DEV_PAKE_OPTIONS);
Beta Was this translation helpful? Give feedback.
All reactions