From e8184e5a029ae3a5853afed0d061f69875beb35e Mon Sep 17 00:00:00 2001 From: Edwin Joassart Date: Wed, 27 Sep 2023 17:55:17 +0200 Subject: [PATCH] patch: rebuild mountutils dep as part of build --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7862ee17cc..3558ca5716 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ }, "scripts": { "build": "npm run webpack && npm run build:sidecar", - "build:sidecar": "tsc --project tsconfig.sidecar.json && pkg build/util/api.js -c pkg-sidecar.json --target node18 --output generated/etcher-util", + "build:rebuild-mountutils": "cd node_modules/mountutils && npm rebuild", + "build:sidecar": "npm run build:rebuild-mountutils && tsc --project tsconfig.sidecar.json && pkg build/util/api.js -c pkg-sidecar.json --target node18 --output generated/etcher-util", "flowzone-preinstall-linux": "sudo apt-get update && sudo apt-get install -y xvfb libudev-dev && cat < electron-builder.yml | yq e .deb.depends[] - | xargs -L1 echo | sed 's/|//g' | xargs -L1 sudo apt-get --ignore-missing install || true", "flowzone-preinstall-macos": "true", "flowzone-preinstall-windows": "npx node-gyp install",