Skip to content

Commit

Permalink
build(electron-builder): extract build configuration from package.json (
Browse files Browse the repository at this point in the history
  • Loading branch information
dubisdev authored Sep 10, 2022
1 parent e0ce35e commit e056b24
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 97 deletions.
90 changes: 90 additions & 0 deletions electron-builder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"productName": "Cerebro",
"appId": "com.cerebroapp.Cerebro",
"protocols": {
"name": "Cerebro URLs",
"role": "Viewer",
"schemes": [
"cerebro"
]
},
"directories": {
"app": "./app",
"output": "release"
},
"linux": {
"target": [
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "AppImage",
"arch": [
"x64"
]
}
],
"category": "Utility"
},
"mac": {
"category": "public.app-category.productivity"
},
"dmg": {
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
]
},
"nsis": {
"include": "build/installer.nsh",
"perMachine": true
},
"files": [
"dist/",
"main/index.html",
"main/css,",
"background/index.html",
"tray_icon.png",
"tray_icon.ico",
"tray_iconTemplate@2x.png",
"node_modules/",
"main.js",
"main.js.map",
"package.json",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
"!**/node_modules/.bin",
"!**/*.{o,hprof,orig,pyc,pyo,rbc}",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}"
],
"squirrelWindows": {
"iconUrl": "https://raw.githubusercontent.com/cerebroapp/cerebro/master/build/icon.ico"
},
"publish": {
"provider": "github",
"vPrefixedTagName": true,
"releaseType": "release"
}
}
101 changes: 4 additions & 97 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cerebro",
"productName": "cerebro",
"version": "0.6.0",
"description": "Cerebro is a open-source launcher to improve your productivity and efficiency",
"description": "Cerebro is an open-source launcher to improve your productivity and efficiency",
"main": "main.js",
"scripts": {
"test": "cross-env NODE_ENV=test jest",
Expand All @@ -23,109 +23,16 @@
"prepare": "husky install",
"commit": "cz"
},
"build": {
"productName": "Cerebro",
"appId": "com.cerebroapp.Cerebro",
"protocols": {
"name": "Cerebro URLs",
"role": "Viewer",
"schemes": [
"cerebro"
]
},
"directories": {
"app": "./app",
"output": "release"
},
"linux": {
"target": [
{
"target": "deb",
"arch": [
"x64"
]
},
{
"target": "AppImage",
"arch": [
"x64"
]
}
],
"category": "Utility"
},
"mac": {
"category": "public.app-category.productivity"
},
"dmg": {
"contents": [
{
"x": 410,
"y": 150,
"type": "link",
"path": "/Applications"
},
{
"x": 130,
"y": 150,
"type": "file"
}
]
},
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64",
"ia32"
]
}
]
},
"nsis": {
"include": "build/installer.nsh",
"perMachine": true
},
"files": [
"dist/",
"main/index.html",
"main/css,",
"background/index.html",
"tray_icon.png",
"tray_icon.ico",
"tray_iconTemplate@2x.png",
"node_modules/",
"main.js",
"main.js.map",
"package.json",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
"!**/node_modules/.bin",
"!**/*.{o,hprof,orig,pyc,pyo,rbc}",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}"
],
"squirrelWindows": {
"iconUrl": "https://raw.githubusercontent.com/cerebroapp/cerebro/master/build/icon.ico"
},
"publish": {
"provider": "github",
"vPrefixedTagName": true,
"releaseType": "release"
}
},
"bin": {
"electron": "./node_modules/.bin/electron"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cerebroapp/cerebro.git"
},
"author": {
"name": "Alexandr Subbotin",
"email": "kelionweb@gmail.com",
"url": "https://github.com/KELiON"
"name": "CerebroApp Organization",
"url": "https://github.com/cerebroapp"
},
"contributors": [
"Alexandr Subbotin <kelionweb@gmail.com> (https://github.com/KELiON)",
"Gustavo Pereira",
"David Jiménez <dubisdev@gmail.com> (https://dubis.dev)"
],
Expand Down

0 comments on commit e056b24

Please sign in to comment.