rebuild robotjs

This commit is contained in:
yasserfaraazkhan 2024-02-16 15:48:33 +05:30
parent f409752879
commit 0a527fb5ee
2 changed files with 2 additions and 1 deletions

View file

@ -263,6 +263,7 @@ jobs:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: | run: |
choco install yq --version 4.15.1 -y choco install yq --version 4.15.1 -y
npm install -g windows-build-tools
npm i -g node-gyp npm i -g node-gyp
node-gyp install node-gyp install
node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers" node-gyp install --devdir="C:\Users\runneradmin\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers"

View file

@ -29,7 +29,7 @@
"build:renderer": "webpack-cli --config webpack.config.renderer.js", "build:renderer": "webpack-cli --config webpack.config.renderer.js",
"build-prod": "cross-env NODE_ENV=production npm-run-all check-build-config build", "build-prod": "cross-env NODE_ENV=production npm-run-all check-build-config build",
"build-prod-upgrade": "cross-env NODE_ENV=production CAN_UPGRADE=true npm-run-all check-build-config build", "build-prod-upgrade": "cross-env NODE_ENV=production CAN_UPGRADE=true npm-run-all check-build-config build",
"build-robotjs": "cross-env CL='/std:c++17' ./node_modules/.bin/electron-rebuild -w robotjs", "build-robotjs": "cross-env CL='/std:c++17' electron-rebuild -m ./node_modules/robotjs",
"start": "electron dist/ --disable-dev-mode", "start": "electron dist/ --disable-dev-mode",
"restart": "npm run build && npm run start", "restart": "npm run build && npm run start",
"storybook": "start-storybook -p 9001 -c src/.storybook", "storybook": "start-storybook -p 9001 -c src/.storybook",