Proper MSI fix (#2481)

This commit is contained in:
Devin Binnie 2022-12-17 14:00:35 -04:00 committed by GitHub
parent 4ec938859f
commit 7199593c01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -267,7 +267,6 @@ jobs:
operation: optimize
- win_make:
operation: "install-deps"
- run: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci
- check-windows
- win_make:
operation: "build"

View file

@ -246,6 +246,8 @@ function Install-Deps {
Print-Info "Refreshing PATH..."
Refresh-Path
}
InstallDeps-Electron
}
function Install-Wix {
@ -511,12 +513,15 @@ function Run-BuildId {
Print-Info "Modified Wix XML"
}
function Run-BuildElectron {
function InstallDeps-Electron {
Print-Info "Installing nodejs/electron dependencies (running npm ci)..."
npm i -g node-gyp
node-gyp install
node-gyp install --devdir="$env:USERPROFILE\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers"
npm ci
}
function Run-BuildElectron {
#npm install --prefix="$(Get-RootDir)" "$(Get-RootDir)"
Print-Info "Building nodejs/electron code (running npm run build)..."
npm run build