Skip to content

Commit

Permalink
Move electron-builder config in its own file (2° attempt) (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
ficristo authored Sep 6, 2024
1 parent 353b512 commit b07a2c8
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 76 deletions.
80 changes: 80 additions & 0 deletions electron-builder.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { Configuration } from "electron-builder";

const options: Configuration = {
"appId": "com.squirrel.quadre.Quadre",
"generateUpdatesFilesForAllChannels": true,
"asar": false,
"files": [
"**/*",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
"!**/node_modules/*.d.ts",
"!**/node_modules/.bin",
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
"!.editorconfig",
"!**/._*",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
"!**/{appveyor.yml,.travis.yml,circle.yml}",
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
{
"from": "www/extensions/default/quadre-git/node_modules",
"to": "www/extensions/default/quadre-git/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/quadre-eslint/node_modules",
"to": "www/extensions/default/quadre-eslint/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/JavaScriptCodeHints/node_modules",
"to": "www/extensions/default/JavaScriptCodeHints/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/StaticServer/node/node_modules",
"to": "www/extensions/default/StaticServer/node/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
}
],
"npmRebuild": true,
"directories": {
"buildResources": "build",
"app": "dist",
"output": "dist-build"
},
"win": {
"target": [
"nsis"
]
},
"msi": {
"warningsAsErrors": false
},
"mac": {
"category": "public.app-category.developer-tools"
},
"linux": {
"category": "Utility;TextEditor;Development;IDE;",
"target": [
"AppImage",
"deb",
"rpm"
]
}
};

export default options;
76 changes: 0 additions & 76 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,82 +19,6 @@
"bin": {
"brackets": "./dist/index.js"
},
"build": {
"appId": "com.squirrel.quadre.Quadre",
"generateUpdatesFilesForAllChannels": true,
"asar": false,
"files": [
"**/*",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}",
"!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}",
"!**/node_modules/*.d.ts",
"!**/node_modules/.bin",
"!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}",
"!.editorconfig",
"!**/._*",
"!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}",
"!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}",
"!**/{appveyor.yml,.travis.yml,circle.yml}",
"!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json}",
{
"from": "www/extensions/default/quadre-git/node_modules",
"to": "www/extensions/default/quadre-git/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/quadre-eslint/node_modules",
"to": "www/extensions/default/quadre-eslint/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/JavaScriptCodeHints/node_modules",
"to": "www/extensions/default/JavaScriptCodeHints/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
},
{
"from": "www/extensions/default/StaticServer/node/node_modules",
"to": "www/extensions/default/StaticServer/node/node_modules",
"filter": [
"*/**",
"!.bin/**"
]
}
],
"npmRebuild": true,
"directories": {
"buildResources": "build",
"app": "dist",
"output": "dist-build"
},
"win": {
"target": [
"nsis"
]
},
"msi": {
"warningsAsErrors": false
},
"mac": {
"category": "public.app-category.developer-tools"
},
"linux": {
"category": "Utility;TextEditor;Development;IDE;",
"target": [
"AppImage",
"deb",
"rpm"
]
}
},
"scripts": {
"postinstall": "gulp install",
"webpack": "webpack --config webpack.dev.ts",
Expand Down

0 comments on commit b07a2c8

Please sign in to comment.