patch: replace deprecated pkg with yao-pkg and bump etcher-util node v to 20.10

This commit is contained in:
Edwin Joassart 2024-01-24 14:05:53 +01:00 committed by dfunckt
parent 96f00aa024
commit c696c389c9
5 changed files with 575 additions and 488 deletions

View File

@ -15,7 +15,7 @@ inputs:
# Beware that native modules will be built for this version,
# which might not be compatible with the one used by pkg (see forge.sidecar.ts)
# https://github.com/vercel/pkg-fetch/releases
default: "18.x"
default: "20.x"
VERBOSE:
type: string
default: "true"

View File

@ -12,7 +12,7 @@ inputs:
# --- custom environment
NODE_VERSION:
type: string
default: "18.18"
default: "20.10"
VERBOSE:
type: string
default: "true"
@ -32,7 +32,7 @@ runs:
if: runner.os == 'Linux'
shell: bash
run: |
sudo apt-get install -y --no-install-recommends xvfb libudev-dev
sudo apt-get update && sudo apt-get install -y --no-install-recommends xvfb libudev-dev
cat < package.json | jq -r '.hostDependencies[][]' - | \
xargs -L1 echo | sed 's/|//g' | xargs -L1 \
sudo apt-get --ignore-missing install || true

View File

@ -90,7 +90,7 @@ function build(
// always build for host platform and node version
// https://github.com/vercel/pkg-fetch/releases
'--target',
`node18-${arch}`,
`node20-${arch}`,
'--output',
binPath,
],

1051
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@ -74,7 +74,7 @@
"@types/debug": "^4.1.12",
"@types/mime-types": "2.1.4",
"@types/mocha": "^10.0.6",
"@types/node": "^18.11.9",
"@types/node": "^20.11.6",
"@types/node-ipc": "9.2.3",
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2",
@ -93,7 +93,7 @@
"native-addon-loader": "2.0.1",
"node-loader": "^2.0.0",
"omit-deep-lodash": "1.1.7",
"pkg": "^5.8.1",
"@yao-pkg/pkg": "^5.11.1",
"sinon": "17.0.1",
"string-replace-loader": "3.1.0",
"style-loader": "3.3.3",