Skip to content

Commit 427e69d

Browse files
committed
⭐ updated electron/packager version
1 parent ccf7324 commit 427e69d

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
node_modules
33
*.app
4+
dist

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
var menubar = require('menubar')
2-
var Menu = require('menu');
2+
var electron = require('electron')
3+
var app = electron.app
4+
var {Menu} = require('electron')
35

46
var mb = menubar({transparent: true, width: 340, height:600, icon: __dirname + '/img/Icon.png'})
57

package.json

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
{
2-
"name": "foco",
2+
"name": "Foco",
33
"version": "0.0.2",
4+
"productName": "Foco",
45
"description": "Stay focused with Foco and boosts productivity 🚀 by creating perfect productive environment.",
5-
"main": "index.js",
6+
"author": "Akash Nimare",
7+
"license": "MIT",
68
"repository": {
79
"type": "git",
810
"url": "https://github.com/akashnimare/foco"
911
},
12+
"bugs": {
13+
"url": "https://github.com/akashnimare/foco/issues"
14+
},
15+
"main": "index.js",
1016
"scripts": {
11-
"build": "electron-packager . Example --platform=darwin --arch=x64 --version=0.36.0 --icon=img/Icon.icns",
12-
"start": "electron ."
17+
"test": "xo",
18+
"start": "electron .",
19+
"build:osx": "electron-packager . Foco --out=dist --ignore=dist --app-version=$npm_package_version --prune --asar --icon=img/Icon.icns --overwrite --platform=darwin --arch=x64 && cd dist/Foco-darwin-x64 && zip -ryXq9 ../Foco-osx-${npm_package_version}.zip Foco.app"
1320
},
1421
"keywords": [
1522
"electron",
@@ -20,17 +27,20 @@
2027
"mac",
2128
"app"
2229
],
23-
"author": "Akash Nimare",
24-
"license": "MIT",
25-
"bugs": {
26-
"url": "https://github.com/akashnimare/foco"
27-
},
2830
"homepage": "",
2931
"dependencies": {
3032
"menubar": "*"
3133
},
3234
"devDependencies": {
33-
"electron-packager": "^5.1.0",
34-
"electron-prebuilt": "^0.36.0"
35-
}
35+
"electron-packager": "^7.0.0",
36+
"electron": "1.3.3",
37+
"xo": "*"
38+
},
39+
"xo": {
40+
"esnext": true,
41+
"envs": [
42+
"node",
43+
"browser"
44+
]
45+
}
3646
}

0 commit comments

Comments
 (0)