Fix: 修复和补充打包的部分功能和问题

This commit is contained in:
2025-09-03 19:44:46 +08:00
parent 4eff008fd9
commit 656c276f1e
3 changed files with 22 additions and 1 deletions

View File

@ -3,6 +3,8 @@ const path = require("path");
const { spawn } = require('child_process')
const fs = require("fs");
app.disableHardwareAcceleration(); // 高 DPI 缩放修复
// 音效播放器
function playAudioFile(filePath) {
if (process.platform === 'win32') {
@ -78,6 +80,8 @@ function createWindow() {
transparent: true, // 开启透明窗口
frame: false, // 无边框窗口
resizable: false, // 禁止调整大小
title: "说的道理桌宠",
icon: path.join(__dirname, '../build/icon.png'),
webPreferences: {
preload: path.join(__dirname, "preload.js"),
contextIsolation: true,