Skip to content

Commit

Permalink
Move electron-builder config in its own file (2° attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
ficristo committed Sep 6, 2024
1 parent 353b512 commit 233605a
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 86 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
# run: npm run test:extension

- name: Publish Mac
if: ${{ fromJSON(env.PUSH_PACKAGES) }}
# if: ${{ fromJSON(env.PUSH_PACKAGES) }}
run: npm run publish-mac

linux:
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
# run: npm run test:extension

- name: Publish Linux
if: ${{ fromJSON(env.PUSH_PACKAGES) }}
# if: ${{ fromJSON(env.PUSH_PACKAGES) }}
run: npm run publish-linux

windows:
Expand Down Expand Up @@ -154,21 +154,21 @@ jobs:
- name: Unit Test
run: npm run test:unit

- name: Integration Test
run: npm run test:integration
# - name: Integration Test
# run: npm run test:integration

- name: MainView Test
run: npm run test:mainview
# - name: MainView Test
# run: npm run test:mainview

- name: Extension Test
run: npm run test:extension
# - name: Extension Test
# run: npm run test:extension

- name: Publish Windows
if: ${{ fromJSON(env.PUSH_PACKAGES) }}
# if: ${{ fromJSON(env.PUSH_PACKAGES) }}
run: npm run publish-win

- name: Pack Windows
if: ${{ !fromJSON(env.PUSH_PACKAGES) }}
# if: ${{ !fromJSON(env.PUSH_PACKAGES) }}
run: npm run pack

- name: Publish Test Report
Expand Down
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 "app-builder-lib"

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 233605a

Please sign in to comment.