From 9c02b17a31188af27639c68999f38c2e4fd393ce Mon Sep 17 00:00:00 2001 From: ficristo Date: Thu, 29 Aug 2024 14:13:30 +0200 Subject: [PATCH] Move electron-builder config in its own file (#352) --- electron-builder.ts | 78 +++++++++++++++++++++++++++++++++++++++++++++ package.json | 76 ------------------------------------------- 2 files changed, 78 insertions(+), 76 deletions(-) create mode 100644 electron-builder.ts diff --git a/electron-builder.ts b/electron-builder.ts new file mode 100644 index 00000000000..fdb74c9f4e3 --- /dev/null +++ b/electron-builder.ts @@ -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; diff --git a/package.json b/package.json index 80987bd7233..88c2879c87a 100644 --- a/package.json +++ b/package.json @@ -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",