Skip to content

Commit

Permalink
feat: added multi preload scripts support as per #118
Browse files Browse the repository at this point in the history
preload script scope should be determined as such:
preload.scope.ts
  • Loading branch information
bennymeg committed Oct 18, 2021
1 parent 3a55513 commit 16f9b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "jest --maxWorkers=1 .*.spec.ts",
"compile": "tsc",
"build": "npm run clear:all && tsc && npm run copy:all && npm run permission",
"publish": "cd build && npm publish",
"publish": "npm publish build",
"release": "standard-version",
"postrelease": "git push --follow-tags && npm run build && npm run publish",
"permission": "node ./scripts/make_build_public.js",
Expand Down
2 changes: 1 addition & 1 deletion src/builders/package/package.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function _createBaseConfig(options: PackageElectronBuilderOptions, context: Buil
{
from: resolve(options.sourcePath, options.name),
to: options.name,
filter: ['main.js', 'preload.js', 'assets']
filter: ['main.js', 'preload.(.+\.)?js', 'assets']
},
{
from: resolve(options.sourcePath, options.name),
Expand Down

0 comments on commit 16f9b9d

Please sign in to comment.