mirror of
https://github.com/zadam/trilium.git
synced 2025-01-18 21:22:56 +08:00
create app icon only for electron build
This commit is contained in:
parent
08e062ab34
commit
6cd8a2203e
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@ const log = require("./log");
|
|||
const os = require('os');
|
||||
const fs = require('fs');
|
||||
const config = require('./config');
|
||||
const utils = require('./utils');
|
||||
|
||||
const template = `[Desktop Entry]
|
||||
Type=Application
|
||||
|
@ -21,7 +22,9 @@ Terminal=false
|
|||
* We overwrite this file during every run as it might have been updated.
|
||||
*/
|
||||
function installLocalAppIcon() {
|
||||
if (["win32", "darwin"].includes(os.platform()) || (config.General && config.General.noDesktopIcon)) {
|
||||
if (!utils.isElectron()
|
||||
|| ["win32", "darwin"].includes(os.platform())
|
||||
|| (config.General && config.General.noDesktopIcon)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue