We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8288366 commit 8340107Copy full SHA for 8340107
update-kernel.js
@@ -8,7 +8,7 @@ async function main() {
8
const kernelPath = 'wasm/extism-runtime.wasm'
9
const wasmContents = await fs.promises.readFile(kernelPath);
10
const kernelBase64 = wasmContents.toString('base64');
11
- const kernelHash = await crypto.createHash('sha256').update(pluginContents).digest('hex');
+ const kernelHash = await crypto.createHash('sha256').update(wasmContents).digest('hex');
12
13
pluginContents = pluginContents.replace(/embeddedRuntime =\s*'.*'/, `embeddedRuntime =\n\t'${kernelBase64}'`);
14
pluginContents = pluginContents.replace(/embeddedRuntimeHash =\s*'.*''/, `embeddedRuntimeHash = '${kernelHash}'`);
0 commit comments