离线网页打包问题 #794
Unanswered
AzureXuanVerse
asked this question in
Q&A
离线网页打包问题
#794
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
首次打包后可以正常运行,关闭终端,第二次启动:
这是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