Skip to content

Commit

Permalink
Fix macos dist-building
Browse files Browse the repository at this point in the history
  • Loading branch information
asivery committed Aug 21, 2024
1 parent d6ce352 commit 8760999
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "npm run build && NODE_ENV=development electron ./dist/main.js",
"pack": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder -wl --x64 && electron-builder -w --ia32",
"dist-mac": "npm run build && electron-builder -m --x64 && electron-builder -m --arm64"
"dist-mac": "./build-renderer.sh && ./run-fixes-macdist.sh && tsc && electron-builder -m --x64 && electron-builder -m --arm64"
},
"build": {
"directories": {
Expand Down
9 changes: 9 additions & 0 deletions run-fixes-macdist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

PWD=$(pwd)
echo "Patching node-usb..."
cd node_modules/usb/dist/webusb
rm webusb-device.js
curl -O https://gist.githubusercontent.com/asivery/6688bcf656a0af5925674dd312ecb7b8/raw/e751f58aa10c14301ebce8580b1a07bcff41596b/webusb-device.js
cd "$PWD"

0 comments on commit 8760999

Please sign in to comment.