Skip to content

Commit

Permalink
Update actions-artifacts.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvanrijn committed Nov 4, 2024
1 parent 7afc145 commit e28f65d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tools/actions-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ fi
rm -rf .npm/
export npm_config_target=$(cat node_modules/electron/package.json | python -c "import sys, json; print(json.load(sys.stdin)['version'])")
if [[ "$OSTYPE" == "msys" ]]; then
bin/windows/x64/node/node-v$node_version-win-x64/node.exe bin/windows/x64/node/node-v$node_version-win-x64/node_modules/npm/bin/npm-cli.js "node_modules/electron/install.js"
bin/windows/x64/node/node-v$node_version-win-x64/node.exe "node_modules/electron/install.js"
else
cat bin/linux/x64/node/node-v$node_version-linux-x64/bin/node.* > bin/linux/x64/node/node-v$node_version-linux-x64/bin/node
chmod +x bin/linux/x64/node/node-v$node_version-linux-x64/bin/node
bin/linux/x64/node/node-v$node_version-linux-x64/bin/node bin/linux/x64/node/node-v$node_version-linux-x64/lib/node_modules/npm/bin/npm-cli.js "node_modules/electron/install.js"
bin/linux/x64/node/node-v$node_version-linux-x64/bin/node "node_modules/electron/install.js"
rm bin/linux/x64/node/node-v$node_version-linux-x64/bin/node
fi
mkdir -p "bin/linux/x64/electron/electron-v$npm_config_target-linux-x64"
Expand Down Expand Up @@ -215,11 +215,11 @@ else
fi
rm -rf .npm/
if [[ "$OSTYPE" == "msys" ]]; then
bin/windows/x64/node/node-v$node_version-win-x64/node.exe bin/windows/x64/node/node-v$node_version-win-x64/node_modules/npm/bin/npm-cli.js "node_modules/electron/install.js"
bin/windows/x64/node/node-v$node_version-win-x64/node.exe "node_modules/electron/install.js"
else
cat bin/linux/x64/node/node-v$node_version-linux-x64/bin/node.* > bin/linux/x64/node/node-v$node_version-linux-x64/bin/node
chmod +x bin/linux/x64/node/node-v$node_version-linux-x64/bin/node
bin/linux/x64/node/node-v$node_version-linux-x64/bin/node bin/linux/x64/node/node-v$node_version-linux-x64/lib/node_modules/npm/bin/npm-cli.js "node_modules/electron/install.js"
bin/linux/x64/node/node-v$node_version-linux-x64/bin/node "node_modules/electron/install.js"
rm bin/linux/x64/node/node-v$node_version-linux-x64/bin/node
fi
mkdir -p "bin/windows/x64/electron/electron-v$npm_config_target-win32-x64"
Expand Down

0 comments on commit e28f65d

Please sign in to comment.