Skip to content

Commit

Permalink
Added builder.json, assets and updated package.json so that app can b…
Browse files Browse the repository at this point in the history
…e packed and built.
  • Loading branch information
Vj3k0 committed Jan 4, 2016
1 parent 67ec178 commit 3b4218f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
Binary file added assets/osx/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/osx/logo.icns
Binary file not shown.
Binary file added assets/win/logo.ico
Binary file not shown.
17 changes: 17 additions & 0 deletions builder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

{
"osx" : {
"title": "EA Todo",
"background": "assets/osx/background.png",
"icon": "assets/osx/logo.icns",
"icon-size": 128,
"contents": [
{ "x": 355, "y": 125, "type": "link", "path": "/Applications" },
{ "x": 155, "y": 125, "type": "file" }
]
},
"win" : {
"title" : "EA Todo",
"icon" : "assets/win/logo.ico"
}
}
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@
"description": "Simple TODO application built with Electron and AngularJS.",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "electron . --enable-logging",

"clean": "rm -rf ./dist",
"clean:osx": "rm -rf ./dist/osx",
"clean:win": "rm -rf ./dist/win",

"pack": "npm run clean && npm run pack:osx && npm run pack:win",
"pack:osx": "npm run clean:osx && electron-packager . \"EA Todo\" --out=dist/osx --platform=darwin --arch=x64 --version=0.36.2 --icon=assets/osx/logo.icns --ignore=dist --ignore=assets --ignore=builder.json --ignore=bower.json --ignore=README.md --ignore=.gitignore --ignore=preview.png",
"pack:win": "npm run clean:win && electron-packager . \"EA Todo\" --out=dist/win --platform=win32 --arch=ia32 --version=0.36.2 --icon=assets/win/logo.ico --ignore=dist --ignore=assets --ignore=builder.json --ignore=bower.json --ignore=README.md --ignore=.gitignore --ignore=preview.png",

"build": "npm run build:osx && npm run build:win",
"build:osx": "npm run pack:osx && electron-builder \"dist/osx/EA Todo-darwin-x64/EA Todo.app\" --platform=osx --out=\"dist/osx\" --config=builder.json",
"build:win": "npm run pack:win && electron-builder \"dist/win/EA Todo-win32-ia32\" --platform=win --out=\"dist/win\" --config=builder.json"
},
"repository": {
"type": "git",
Expand All @@ -24,5 +36,9 @@
"electron-plugins": "0.0.4",
"electron-prebuilt": "^0.36.2",
"electron-updater": "^0.3.0"
},
"devDependencies": {
"electron-builder": "^2.5.0",
"electron-packager": "^5.2.0"
}
}

0 comments on commit 3b4218f

Please sign in to comment.