From 6cd8a2203e4c0070001162380648b311ba422a66 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 22 Nov 2018 00:24:33 +0100 Subject: [PATCH] create app icon only for electron build --- src/services/app_icon.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/app_icon.js b/src/services/app_icon.js index 3e0794667..8b6c6e747 100644 --- a/src/services/app_icon.js +++ b/src/services/app_icon.js @@ -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; }