Tom-M-Git / sysinfoapp_in_electron

A system info app in Electron which shows little information about the user's PC. Built for learning purposes for myself.
0 stars 0 forks source link

untitled #1

Open Tom-M-Git opened 4 years ago

Tom-M-Git commented 4 years ago

Cited:

You can do it for macOS, too. Ok, not through code, but with some simple steps:

Find the .icns file you want to use, open it and copy it via Edit menu Find the electron.app, usually in node_modules/electron/dist Open the information window Select the icon on the top left corner (gray border around it) Paste the icon via cmd+v Enjoy your icon during development :-) enter image description here

Actually it is a general thing not specific to electron. You can change the icon of many macOS apps like this.

Tom-M-Git commented 4 years ago

Below is the solution that i have :

mainWindow = new BrowserWindow({width: 800, height: 600,icon: __dirname + '/Bluetooth.ico'});

Tom-M-Git commented 4 years ago

Setting the icon property when creating the BrowserWindow only has an effect on Windows and Linux.

To set the icon on OS X, you can use electron-packager and set the icon using the --icon switch.

It will need to be in .icns format for OS X. There is an online icon converter which can create this file from your .png.

Tom-M-Git commented 4 years ago

https://github.com/electron/electron/issues/17241#issuecomment-498064435

Tom-M-Git commented 4 years ago

remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. remote: error: Trace: 7d51855d4f834a90c5a5a526e93d2668 remote: error: See http://git.io/iEPt8g for more information. remote: error: File coverage/sensitivity/simulated.bed is 102.00 MB; this exceeds GitHub's file size limit of 100.00 MB