Skip to content

Commit b8f6f96

Browse files
committed
make 'sharp' work on windows packaged builds
1 parent 5deec3e commit b8f6f96

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

package.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,16 @@
5151
"extraResources": [
5252
"resources/exiftool/exiftool.exe",
5353
"resources/exiftool/.Exiftool_config"
54-
]
54+
],
55+
"extraFiles": [
56+
{
57+
"from": "./node_modules/sharp/build/Release",
58+
"to": ".",
59+
"filter": [
60+
"lib*.dll"
61+
]
62+
}
63+
]
5564
},
5665
"extraResources": [
5766
"resources/themes"
@@ -63,8 +72,11 @@
6372
"portable": {
6473
"artifactName": "${productName}Portable.${version}.${ext}"
6574
},
75+
"asarUnpack": [
76+
"**/node_modules/sharp/**/*"
77+
],
6678
"files": [
67-
"!node_modules",
79+
"**/node_modules/sharp/**/*",
6880
"build/**/*",
6981
"package.json"
7082
],

0 commit comments

Comments
 (0)