Former-commit-id: 47e214f8fa7e6b6b873e5651f95cfc14f14fd796
This commit is contained in:
troyeguo
2021-07-17 17:28:52 +08:00
parent a9f9a07858
commit 97008c4c4a
3 changed files with 11 additions and 5 deletions

View File

@@ -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.

12
main.js
View File

@@ -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(

View File

@@ -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",