Skip to content

Commit

Permalink
Try with @timfish/forge-externals-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
neocrao committed May 28, 2024
1 parent 1894d02 commit 311d5e6
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 0 deletions.
7 changes: 7 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ const config: ForgeConfig = {
],
},
}),
{
name: "@timfish/forge-externals-plugin",
config: {
"externals": ["sharp"],
"includeDeps": true
}
},
// Fuses are used to enable/disable various Electron functionality
// at package time, before code signing the application
new FusesPlugin({
Expand Down
Binary file added img/error4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@electron-forge/plugin-fuses": "^7.4.0",
"@electron-forge/plugin-webpack": "^7.4.0",
"@electron/fuses": "^1.8.0",
"@timfish/forge-externals-plugin": "^0.2.1",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@vercel/webpack-asset-relocator-loader": "1.7.3",
Expand Down
24 changes: 24 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,13 @@
dependencies:
defer-to-connect "^2.0.0"

"@timfish/forge-externals-plugin@^0.2.1":
version "0.2.1"
resolved "https://registry.npmjs.org/@timfish/forge-externals-plugin/-/forge-externals-plugin-0.2.1.tgz"
integrity sha512-80TVZM4n/8x2zxT+SowyHJEzzQR0KLfmZpHg5UX2JnwR1WRa1h03Y7TUvV7PYD4P9/h3r+LcBZy6a7EsDwMtPg==
dependencies:
flora-colossus "1.0.1"

"@tootallnate/once@2":
version "2.0.0"
resolved "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz"
Expand Down Expand Up @@ -2838,6 +2845,14 @@ flora-colossus@^2.0.0:
debug "^4.3.4"
fs-extra "^10.1.0"

flora-colossus@1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/flora-colossus/-/flora-colossus-1.0.1.tgz"
integrity sha512-d+9na7t9FyH8gBJoNDSi28mE4NgQVGGvxQ4aHtFRetjyh5SXjuus+V5EZaxFmFdXVemSOrx0lsgEl/ZMjnOWJA==
dependencies:
debug "^4.1.1"
fs-extra "^7.0.0"

follow-redirects@^1.0.0:
version "1.15.6"
resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz"
Expand Down Expand Up @@ -2905,6 +2920,15 @@ fs-extra@^11.1.1:
jsonfile "^6.0.1"
universalify "^2.0.0"

fs-extra@^7.0.0:
version "7.0.1"
resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz"
integrity sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==
dependencies:
graceful-fs "^4.1.2"
jsonfile "^4.0.0"
universalify "^0.1.0"

fs-extra@^7.0.1:
version "7.0.1"
resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz"
Expand Down

0 comments on commit 311d5e6

Please sign in to comment.