mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
create app icon only for electron build
This commit is contained in:
parent
08e062ab34
commit
6cd8a2203e
@ -6,6 +6,7 @@ const log = require("./log");
|
|||||||
const os = require('os');
|
const os = require('os');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const config = require('./config');
|
const config = require('./config');
|
||||||
|
const utils = require('./utils');
|
||||||
|
|
||||||
const template = `[Desktop Entry]
|
const template = `[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
@ -21,7 +22,9 @@ Terminal=false
|
|||||||
* We overwrite this file during every run as it might have been updated.
|
* We overwrite this file during every run as it might have been updated.
|
||||||
*/
|
*/
|
||||||
function installLocalAppIcon() {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user