Skip to content

Commit

Permalink
Fix build-desktop script to use npx
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioh8010 authored and pac-guerreiro committed Nov 15, 2023
1 parent ee0fecc commit 2541e2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/build-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ else
fi

SCRIPTS_DIR=$(dirname "${BASH_SOURCE[0]}")
LOCAL_PACKAGES=$(npm bin)
source "$SCRIPTS_DIR/shellUtils.sh";

title "Bundling Desktop js Bundle Using Webpack"
info " • ELECTRON_ENV: $ELECTRON_ENV"
info " • ENV file: $ENV_FILE"
info ""
"$LOCAL_PACKAGES/webpack" --config config/webpack/webpack.desktop.js --env envFile=$ENV_FILE
npx webpack --config config/webpack/webpack.desktop.js --env envFile=$ENV_FILE

title "Building Desktop App Archive Using Electron"
info ""
shift 1
"$LOCAL_PACKAGES/electron-builder" --config config/electronBuilder.config.js "$@"
npx electron-builder --config config/electronBuilder.config.js "$@"

0 comments on commit 2541e2f

Please sign in to comment.