Skip to content

Commit

Permalink
Fix comman separators for older PowerShell
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid committed Aug 17, 2024
1 parent b0d416a commit 95d1f32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-electron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ jobs:
echo "Setting the Electron version to the latest supporting Windows 7/8/8.1 (=22.3.25)"
(Get-Content ./package.json) -replace '("electron":\s+)"[\d.]+[\w\d-.]*?"', '$1"22.3.25"' | Set-Content ./package.json
echo "Installing dependencies in root and dist"
npm install && cd dist && npm install && cd ..
npm install; cd dist; npm install; cd ..
echo "Installed Electron version:$(npx electron --version)"
echo "Building Windows 7+ 32bit NSIS package..."
npm run dist-win-nsis
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
# Set the module type to one supported by Electron
# (Get-Content ./package.json) -replace '("type":\s+)"module"', '$1"commonjs"' | Set-Content ./package.json
echo "Installing dependencies in root and dist"
npm install && cd dist && npm install && cd ..
npm install; cd dist; npm install; cd ..
echo "Installed Electron version:$(npx electron --version)"
echo "Building Windows packages..."
if ($INPUT_SIGN) {
Expand Down
4 changes: 1 addition & 3 deletions scripts/Build-Electron.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ if ($electronbuild -eq "local" -and (-not $portableonly)) {
"`nNo existing Electron package found: building $WinInstaller..."
if (-Not $dryrun) {
echo "`nInstalling dependencies in dist..."
cd dist
npm install
cd ..
cd dist; npm install; cd ..
echo "`nBuilding Windows packages..."
if ($winonly -eq "appx") {
"[Only building the appx package because -winonly appx was specified]"
Expand Down

0 comments on commit 95d1f32

Please sign in to comment.