Skip to content

Commit

Permalink
update windows build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphrag committed Oct 14, 2024
1 parent 5d640c8 commit ba1ca6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/build-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $env:ELECTRON_CACHE = "$USERHOME\.cache\electron"
$env:ELECTRON_BUILDER_CACHE = "$USERHOME\.cache\electron-builder"
$env:CSC_IDENTITY_AUTO_DISCOVERY = $false
$env:CI = $true
$env:SKIP_RECIPE = $true

# -----------------------------------------------------------------------------
# Utility functions
Expand Down Expand Up @@ -134,6 +135,7 @@ $EXPECTED_PNPM_VERSION = (Get-Content package.json | ConvertFrom-Json).engines.p
$ACTUAL_PNPM_VERSION = pnpm --version 2>$null # in case the pnpm executable itself is not present
if ($ACTUAL_PNPM_VERSION -ne $EXPECTED_PNPM_VERSION) {
npm i -gf pnpm@$EXPECTED_PNPM_VERSION
$ACTUAL_PNPM_VERSION = pnpm --version
}

# Check pnpm version of the recipes submodule
Expand All @@ -147,12 +149,18 @@ if ($ACTUAL_PNPM_VERSION -ne $EXPECTED_RECIPES_PNPM_VERSION) {

# -----------------------------------------------------------------------------
Write-Host "*************** Building recipes ***************"
if ($env:SKIP_RECIPE -eq "true") {
Write-Host "Skipping recipes"
}
else
{
Push-Location recipes
pnpm i
pnpm lint
pnpm reformat-files
pnpm package
Pop-Location
}

# -----------------------------------------------------------------------------
# Now the meat.....
Expand Down

0 comments on commit ba1ca6a

Please sign in to comment.