OS X changes
This commit is contained in:
10
electron.js
10
electron.js
@@ -74,9 +74,8 @@ function createWindow() {
|
||||
mountedData = {};
|
||||
});
|
||||
|
||||
if ((os.platform() === 'win32') || (os.platform() === 'linux')) {
|
||||
const appPath = (os.platform() === 'win32') ?
|
||||
path.resolve(path.join(app.getAppPath(), '..\\..\\repertory-ui.exe')) :
|
||||
const appPath = (os.platform() === 'win32') ? path.resolve(path.join(app.getAppPath(), '..\\..\\repertory-ui.exe')) :
|
||||
(os.platform() === 'darwin') ? app.getAppPath() :
|
||||
process.env.APPIMAGE;
|
||||
|
||||
const autoLauncher = new AutoLaunch({
|
||||
@@ -84,7 +83,7 @@ function createWindow() {
|
||||
path: appPath,
|
||||
});
|
||||
|
||||
const image = nativeImage.createFromPath(path.join(__dirname, '/build/logo.png'));
|
||||
const image = nativeImage.createFromPath(path.join(__dirname, (os.platform() === 'darwin') ? '/build/icon.icns' : '/build/logo.png'));
|
||||
trayContextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
label: 'Visible', type: 'checkbox', click(item) {
|
||||
@@ -123,7 +122,7 @@ function createWindow() {
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: 'Exit and Unmount', click(item) {
|
||||
label: 'Exit and Unmount', click() {
|
||||
closeApplication();
|
||||
}
|
||||
}
|
||||
@@ -154,7 +153,6 @@ function createWindow() {
|
||||
closeApplication();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const instanceLock = app.requestSingleInstanceLock();
|
||||
if (!instanceLock) {
|
||||
|
||||
@@ -129,10 +129,10 @@
|
||||
"./helpers.js"
|
||||
],
|
||||
"linux": {
|
||||
"icon": "./build/icon.icns"
|
||||
"icon": "./build/logo.png"
|
||||
},
|
||||
"mac": {
|
||||
"icon": "./build/icon.icns"
|
||||
"icon": "./build/icon_color.icns"
|
||||
},
|
||||
"win": {
|
||||
"icon": "./build/icon.ico"
|
||||
|
||||
BIN
public/icon_color.icns
Normal file
BIN
public/icon_color.icns
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.4 KiB |
Reference in New Issue
Block a user