Proper MSI fix (#2481)
This commit is contained in:
parent
4ec938859f
commit
7199593c01
|
@ -267,7 +267,6 @@ jobs:
|
||||||
operation: optimize
|
operation: optimize
|
||||||
- win_make:
|
- win_make:
|
||||||
operation: "install-deps"
|
operation: "install-deps"
|
||||||
- run: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm ci
|
|
||||||
- check-windows
|
- check-windows
|
||||||
- win_make:
|
- win_make:
|
||||||
operation: "build"
|
operation: "build"
|
||||||
|
|
|
@ -246,6 +246,8 @@ function Install-Deps {
|
||||||
Print-Info "Refreshing PATH..."
|
Print-Info "Refreshing PATH..."
|
||||||
Refresh-Path
|
Refresh-Path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
InstallDeps-Electron
|
||||||
}
|
}
|
||||||
|
|
||||||
function Install-Wix {
|
function Install-Wix {
|
||||||
|
@ -511,12 +513,15 @@ function Run-BuildId {
|
||||||
Print-Info "Modified Wix XML"
|
Print-Info "Modified Wix XML"
|
||||||
}
|
}
|
||||||
|
|
||||||
function Run-BuildElectron {
|
function InstallDeps-Electron {
|
||||||
Print-Info "Installing nodejs/electron dependencies (running npm ci)..."
|
Print-Info "Installing nodejs/electron dependencies (running npm ci)..."
|
||||||
npm i -g node-gyp
|
npm i -g node-gyp
|
||||||
node-gyp install
|
node-gyp install
|
||||||
node-gyp install --devdir="$env:USERPROFILE\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers"
|
node-gyp install --devdir="$env:USERPROFILE\.electron-gyp" --target=$(jq -r .devDependencies.electron package.json) --dist-url="https://electronjs.org/headers"
|
||||||
npm ci
|
npm ci
|
||||||
|
}
|
||||||
|
|
||||||
|
function Run-BuildElectron {
|
||||||
#npm install --prefix="$(Get-RootDir)" "$(Get-RootDir)"
|
#npm install --prefix="$(Get-RootDir)" "$(Get-RootDir)"
|
||||||
Print-Info "Building nodejs/electron code (running npm run build)..."
|
Print-Info "Building nodejs/electron code (running npm run build)..."
|
||||||
npm run build
|
npm run build
|
||||||
|
|
Loading…
Reference in a new issue