nw-builder 4.11.1 → 4.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/get/index.js +6 -6
package/package.json
CHANGED
package/src/get/index.js
CHANGED
|
@@ -93,6 +93,12 @@ async function get(options) {
|
|
|
93
93
|
|
|
94
94
|
await decompress(nwFilePath, options.cacheDir);
|
|
95
95
|
|
|
96
|
+
await verify(
|
|
97
|
+
`${options.downloadUrl}/v${options.version}/SHASUMS256.txt`,
|
|
98
|
+
`${options.cacheDir}/shasum/${options.version}.txt`,
|
|
99
|
+
options.cacheDir,
|
|
100
|
+
);
|
|
101
|
+
|
|
96
102
|
if (options.ffmpeg === true) {
|
|
97
103
|
|
|
98
104
|
/**
|
|
@@ -126,12 +132,6 @@ async function get(options) {
|
|
|
126
132
|
|
|
127
133
|
await decompress(ffmpegFilePath, options.cacheDir);
|
|
128
134
|
|
|
129
|
-
await verify(
|
|
130
|
-
`${options.downloadUrl}/v${options.version}/SHASUMS256.txt`,
|
|
131
|
-
`${options.cacheDir}/shasum/${options.version}.txt`,
|
|
132
|
-
options.cacheDir,
|
|
133
|
-
);
|
|
134
|
-
|
|
135
135
|
/**
|
|
136
136
|
* Platform dependant file name of FFmpeg binary.
|
|
137
137
|
* @type {string}
|