Update auto updater config (#514)

* update autoupdater config

* update deps

* update window size
This commit is contained in:
an-lee
2024-04-12 09:29:40 +08:00
committed by GitHub
parent 39c55b5f3f
commit 1c3b148e9a
11 changed files with 769 additions and 541 deletions

View File

@@ -23,7 +23,6 @@ import { Waveform } from "./waveform";
import url from "url";
import echogarden from "./echogarden";
import camdict from "./camdict";
import { updateElectronApp, UpdateSourceType } from "update-electron-app";
const __filename = url.fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
@@ -387,15 +386,6 @@ ${log}
);
});
ipcMain.handle("app-update", () => {
return updateElectronApp({
updateSource: {
type: UpdateSourceType.StaticStorage,
baseUrl: `https://dl.enjoy.bot/enjoy-updates/${process.platform}/${process.arch}`,
},
});
});
ipcMain.handle(
"system-preferences-media-access",
async (_event, mediaType: "microphone" | "camera") => {
@@ -456,8 +446,8 @@ ${log}
icon: "./assets/icon.png",
width: 1280,
height: 720,
minWidth: 720,
minHeight: 576,
minWidth: 800,
minHeight: 600,
webPreferences: {
preload: path.join(__dirname, "preload.js"),
spellcheck: false,