diff --git a/README.md b/README.md index 7a24e234..749deca5 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ - Platform support: **Windows** , **macOS**, **Linux** and **Web** -- ave your data to **Dropbox** or **Webdav** +- Save your data to **Dropbox** or **Webdav** - Customize the source folder and synchronize among multiple devices using OneDrive, iCloud, Dropbox, etc. diff --git a/main.js b/main.js index f71ebdda..8bf03fba 100644 --- a/main.js +++ b/main.js @@ -20,7 +20,7 @@ if (!singleInstance) { }); } app.on("ready", () => { - mainWin = new BrowserWindow({ + let option = { width: 1050, height: 660, webPreferences: { @@ -31,8 +31,11 @@ app.on("ready", () => { nodeIntegrationInSubFrames: true, allowRunningInsecureContent: true, }, - // icon: path.join(__dirname, "/assets/icons/256x256.png"), - }); + }; + if (process.platform === "linux") { + option.icon = path.join(__dirname, "/assets/icons/256x256.png"); + } + mainWin = new BrowserWindow(option); const isDev = require("electron-is-dev"); if (!isDev) { const { Menu } = require("electron"); @@ -64,6 +67,9 @@ app.on("ready", () => { allowRunningInsecureContent: true, }, }; + if (process.platform === "linux") { + options.icon = path.join(__dirname, "/assets/icons/256x256.png"); + } let pdfLocation = isDev ? "http://localhost:3000/" + url : `file://${path.join( diff --git a/package.json b/package.json index fdb4ad46..7813479e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "email": "guo362429@gmail.com" }, "engines": { - "node": ">=10.0.0", + "node": ">=14.0.0", "npm": ">=6.0.0" }, "repository": "https://github.com/troyeguo/koodo-reader",