Skip to content

Commit

Permalink
Move electron-builder config in its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
ficristo committed Aug 29, 2024
1 parent 0b45c43 commit fbaf566
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 76 deletions.
78 changes: 78 additions & 0 deletions electron-builder.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import type { Configuration } from "electron-builder";

module.exports = {
"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"
]
}
} satisfies Configuration;
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 fbaf566

Please sign in to comment.