Update auto updater config (#514)
* update autoupdater config * update deps * update window size
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user