modified: main.js

modified:   package.json
This commit is contained in:
kaias1jp 2019-01-28 18:39:16 +09:00
parent 27721fa481
commit 8968c248df
2 changed files with 13 additions and 9 deletions

View File

@ -12,7 +12,9 @@ const fm = require('font-manager');
const Menu=electron.Menu
var updatewin=null;
const join = require('path').join;
const {NowPlaying,PlayerName} = require("nowplaying-node");
if (process.platform!='linux') {
const {NowPlaying,PlayerName} = require("nowplaying-node");
}
// アプリケーションをコントロールするモジュール
const app = electron.app;
// ウィンドウを作成するモジュール
@ -688,4 +690,4 @@ object_array_sort(fonts, 'family', 'asc', function(fonts_sorted){
});
app.setAsDefaultProtocolClient('thedesk')
app.setAsDefaultProtocolClient('thedesk')

View File

@ -34,14 +34,15 @@
],
"license": "GPL-3.0",
"dependencies": {
"electron": "^4.0.2",
"electron-dl": "^1.11.0",
"font-manager": "^0.3.0",
"jimp": "^0.2.28",
"node-notifier": "^5.2.1",
"nowplaying-node": "^0.1.3",
"sumchecker": "^2.0.2"
},
"optionalDependencies": {
"nowplaying-node": "^0.1.3",
"itunes-nowplaying-mac": "^0.2.3"
},
"build": {
@ -57,10 +58,10 @@
"portable"
]
},
"nsis":{
"oneClick":false,
"allowToChangeInstallationDirectory":true,
"artifactName":"TheDesk-setup.${ext}"
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"artifactName": "TheDesk-setup.${ext}"
},
"linux": {
"icon": "build/icons",
@ -78,7 +79,8 @@
"electronVersion": "3.0.10"
},
"devDependencies": {
"electron-rebuild": "^1.8.2",
"electron-prebuilt": "^1.4.13"
"electron-packager": "^13.0.1",
"electron-prebuilt": "^1.4.13",
"electron-rebuild": "^1.8.2"
}
}