From 0b3a3a425418ef20b7ca23ea3d788d8f97a839c8 Mon Sep 17 00:00:00 2001 From: Nikolas Spiridakis <30593419+1nikolas@users.noreply.github.com> Date: Wed, 16 Sep 2020 20:51:45 +0300 Subject: [PATCH] Fix icons in MacOS --- package.json | 9 ++++++--- src/images/icon.icns | Bin 0 -> 17346 bytes icon.ico => src/images/icon.ico | Bin src/index.js | 21 +++++++++++++++++---- 4 files changed, 23 insertions(+), 7 deletions(-) create mode 100644 src/images/icon.icns rename icon.ico => src/images/icon.ico (100%) diff --git a/package.json b/package.json index 414d33c..679bc93 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,10 @@ "description": " Get the lyrics of what you're listening on Tidal", "main": "src/index.js", "win": { - "icon": "./icon.ico" + "icon": "./src/images/icon.ico" + }, + "mac": { + "icon": "./src/images/icon.icns" }, "scripts": { "start": "electron-forge start", @@ -24,14 +27,14 @@ "config": { "forge": { "packagerConfig": { - "icon": "icon.ico" + "icon": "./src/images/icon.icns" }, "makers": [ { "name": "@electron-forge/maker-squirrel", "config": { "name": "tidal_lyrics", - "iconUrl": "https://raw.githubusercontent.com/1nikolas/tidal-lyrics/master/icon.ico" + "iconUrl": "https://raw.githubusercontent.com/1nikolas/tidal-lyrics/master/src/images/icon.ico" } }, { diff --git a/src/images/icon.icns b/src/images/icon.icns new file mode 100644 index 0000000000000000000000000000000000000000..f4b01ad0fe049dbab677837db4a7e67baa2590fe GIT binary patch literal 17346 zcmb@t18`+s(=d8s+qP{@Y)ouBlSw9aCbn(cwrz7_Ym$l0b2HEL{@?%Bf9u|=TXnm7 z@9wo%pM||wW8qku*f;_JqWzX8%sij89RL8pe^(?XMt}{0{p8Wjo!srd+p!XV@__$P zg-`nJGl^;W&C~$^0R3b?FK{TRzcK(M6I*KskbhX@&pWA!shK$d{GT)k01WUq=kEpj z&+ouKs}%h#&IG6cR06R6mHJO{f7yTF|44&Ffq?uE0+j*qpF$u22yk!!2v8S*CL|;! zrTE_nGzCxqKtvtPjGW9&iH+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1Pje)Ve;r^lLiLTi>Na@mg9hk3&gol^lm?Vg{6=~p z&8t0Z=ckZ;OT9~550HELV|&4pB2D#G)}KxFYYk)RITS?YBZX?0atD5k%wIAal%6vV_X@c^84Vz0r5RX? z)^4xN{MphQ`%~r=fpj^KH?ch{OYB&n6tFY1=PBm}ZeI<3uCxyw)mz$|^%y(RGKQnC zj?jf~5Y9xL1{ZoLauG7`>G)#s2?fD5kZ)W*FtGI8Pb~+igXwFUBRxaV!l7G!x+XKf z(ieZ-Aj=@9mkw6Du>xSAG#Jqf3%kDD$~RtM^pxNfXkG~$4P$W#{tf+mMroY_E=fH9 zo4*)>Bf2m_(53W zdR{r0l6{v%*(HJx=Jfe8?O3CfkYSQ_H8ZHh1AB$9Uj1%8&jN}njyg78*%zld%weIz zwuN3Rt83PU;$rjOnycHGCGT^?&*9oHqW7!v(^DpTsQkD8{md~UVfz0lex+4`oQ$pJ zPOpaaR#)H0*VyUk_ni*KMl)+7dh+Pcs>Cu*@ij8S^=-~A8D-=d7f&&spXgmBXxxqv z9_$!uVm8{-?1cH3pR%5L%)R7aSpnyYS(JGRB)VBIT`S`@E=~8$;_m*Is>8uofYC3c z(E~lVfZ5twG5PUpHXwtO-fz{_d)`W-sBdv^EDT*?T6ex5qoEFN5U@q0i4j8#=Ts1y zhdnpr4f!Zj|5pIC089Um(D2AyH?O8o^)VrTHK?;zsKDa{F;iJX zg5tFm)n~!z`^xQfHKTSYCe!6w+*Y&hNa@wRds!(Ln;T!Q0y;D6aAOG3dgfA2T literal 0 HcmV?d00001 diff --git a/icon.ico b/src/images/icon.ico similarity index 100% rename from icon.ico rename to src/images/icon.ico diff --git a/src/index.js b/src/index.js index 6b838d1..e512211 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -const { app, BrowserWindow, Menu, ipcMain, dialog } = require('electron'); +const { app, BrowserWindow, Menu, ipcMain, dialog, nativeImage } = require('electron'); const remote = require("electron").remote; const path = require('path'); const { exec } = require("child_process"); @@ -44,15 +44,24 @@ const createWindow = () => { if (body.replace(/(\r\n|\n|\r)/gm, "") != app.getVersion()) { //update available + var dialogIcon = null + if (process.platform == "darwin"){ + dialogIcon = __dirname + "/images/icon.png" + } dialog.showMessageBox(mainWindow, { type: "info", - buttons: ["Update"], + buttons: ["Update", "Dismiss"], message: "An update is available!", + icon: dialogIcon, cancelId: 1 }).then(result => { if (result.response === 0) { require('electron').shell.openExternal("https://github.com/1nikolas/tidal-lyrics/releases"); - app.quit(); + if (process.platform == "win32"){ + app.quit() + } else if (process.platform == "darwin"){ + setTimeout(app.quit(), 1000); + } } }) @@ -93,7 +102,7 @@ const createWindow = () => { dialog.showMessageBox(mainWindow, { buttons: ["OK", "Visit tidal-lyrics on Github"], message: "tidal-lyrics " + app.getVersion() + "\nMade by Nikolas Spiridakis", - icon: path.join(__dirname + "./images/icon.png") + icon: __dirname + "/images/icon.png" }).then(result => { if (result.response === 1) { require('electron').shell.openExternal("https://github.com/1nikolas/tidal-lyrics/"); @@ -106,6 +115,10 @@ const createWindow = () => { }; +if (process.platform == "darwin"){ + app.dock.setIcon(nativeImage.createFromPath(__dirname + "/images/icon.png")); +} + app.on('ready', createWindow); // For MacOS