fix bad syntax

This commit is contained in:
Edwin Joassart 2025-07-23 15:51:13 +02:00
parent 78733207f4
commit e4972bc0dc
No known key found for this signature in database
GPG Key ID: 6337EBE5AC716051

View File

@ -60,10 +60,10 @@ runs:
if [[ "$RUNNER_OS" == "Windows" ]]; then
npm i -D winusb-driver-generator
// need to modifies @yao-pkg/pkg-fetch
// expected-shas.json and patches.json files to force use of nodejs v20.11.1 instead of latest minor (v20.19.4 at the time of writing).
// this is required for Windows compatibility as 20.15.1 introduced a regression that breaks the flasher on Windows.
// As soon as nodejs the fix is backported to node20 and, or node 22, this script can be removed: https://github.com/nodejs/node/pull/55623
# need to modifies @yao-pkg/pkg-fetch
# expected-shas.json and patches.json files to force use of nodejs v20.11.1 instead of latest minor (v20.19.4 at the time of writing).
# this is required for Windows compatibility as 20.15.1 introduced a regression that breaks the flasher on Windows.
# As soon as nodejs the fix is backported to node20 and, or node 22, this script can be removed: https://github.com/nodejs/node/pull/55623
# Add entry to expected-shas.json
sed -i 's/}$/,\n "node-v20.11.1-win-x64": "140c377c2c91751832e673cb488724cbd003f01aa237615142cd2907f34fa1a2"\n}/' node_modules/@yao-pkg/pkg-fetch/lib-es5/expected-shas.json