优化斗地主

This commit is contained in:
李琦
2026-08-18 12:29:50 +08:00
parent 2e995a09dc
commit bc73abbd64
11 changed files with 1587 additions and 367 deletions

View File

@@ -12,6 +12,8 @@ contextBridge.exposeInMainWorld('desktop', {
setServerBase: (url) => ipcRenderer.invoke('nlg:set-server-base', url),
// 检查桌面端新版本silent=true 时已是最新版不弹窗,用于启动自动检查)
checkUpdate: (silent = false) => ipcRenderer.invoke('nlg:check-update', silent),
// 取消正在进行的更新下载
cancelUpdateDownload: () => ipcRenderer.invoke('nlg:cancel-update-download'),
// 运行环境版本信息
versions: {
electron: process.versions.electron,