Skip to content

Commit

Permalink
chore: remove electron-rebuild from scripts/electron-builder.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Apr 24, 2021
1 parent ea3b2d1 commit 01a8b81
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions scripts/electron-builder.sh
Expand Up @@ -4,7 +4,7 @@ __dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
electron_version=$(electron --version)

display_usage() {
npm run electron-builder -- --help
yarn electron-builder -- --help
}

if [ $# -le 1 ]; then
Expand All @@ -21,14 +21,15 @@ pushd "$__dirname/../dist/cncjs"
echo "Cleaning up \"`pwd`/node_modules\""
rm -rf node_modules
echo "Installing packages..."
npm install --production
npm dedupe
yarn --production
popd

echo "Rebuild native modules using electron ${electron_version}"
npm run electron-rebuild -- \
--version=${electron_version:1} \
--module-dir=dist/cncjs \
--which-module=serialport
#echo "Rebuild native modules using electron ${electron_version}"
#npm run electron-rebuild -- \
# --version=${electron_version:1} \
# --module-dir=dist/cncjs \
# --which-module=serialport

cross-env USE_HARD_LINKS=false npm run electron-builder -- "$@"
yarn electron-builder install-app-deps

cross-env USE_HARD_LINKS=false yarn electron-builder -- "$@"

0 comments on commit 01a8b81

Please sign in to comment.