diff options
Diffstat (limited to 'scripts/build-windows.ps1')
-rw-r--r-- | scripts/build-windows.ps1 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/build-windows.ps1 b/scripts/build-windows.ps1 index 3904c1bf9..9d4830059 100644 --- a/scripts/build-windows.ps1 +++ b/scripts/build-windows.ps1 | |||
@@ -67,11 +67,9 @@ if ($env:CLEAN -eq "true") | |||
67 | { | 67 | { |
68 | $NPM_PATH = "$USERHOME\.npm" | 68 | $NPM_PATH = "$USERHOME\.npm" |
69 | $NODE_GYP = "$USERHOME\.node-gyp" | 69 | $NODE_GYP = "$USERHOME\.node-gyp" |
70 | $ELECTRON_GYP = "$USERHOME\.electron-gyp" | ||
70 | 71 | ||
71 | Write-Host "Cleaning!" | 72 | Write-Host "Cleaning!" |
72 | npm cache clean --force | ||
73 | Remove-Item -Path $NPM_PATH -Recurse -ErrorAction SilentlyContinue | ||
74 | Remove-Item -Path $NODE_GYP -Recurse -ErrorAction SilentlyContinue | ||
75 | 73 | ||
76 | if ( (Test-Path -Path ".\pnpm-lock.yaml") -and (Get-Command -ErrorAction Ignore -Type Application pnpm) ) | 74 | if ( (Test-Path -Path ".\pnpm-lock.yaml") -and (Get-Command -ErrorAction Ignore -Type Application pnpm) ) |
77 | { | 75 | { |
@@ -80,10 +78,15 @@ if ($env:CLEAN -eq "true") | |||
80 | 78 | ||
81 | pnpm store prune | 79 | pnpm store prune |
82 | 80 | ||
83 | Remove-Item -Path $PNPM_STORE -Recurse | 81 | Remove-Item -Path $PNPM_STORE -Recurse -ErrorAction SilentlyContinue |
84 | Remove-Item -Path $PNPM_STATE -Recurse | 82 | Remove-Item -Path $PNPM_STATE -Recurse -ErrorAction SilentlyContinue |
85 | } | 83 | } |
86 | 84 | ||
85 | npm cache clean --force | ||
86 | Remove-Item -Path $NPM_PATH -Recurse -ErrorAction SilentlyContinue | ||
87 | Remove-Item -Path $NODE_GYP -Recurse -ErrorAction SilentlyContinue | ||
88 | Remove-Item -Path $ELECTRON_GYP -Recurse -ErrorAction SilentlyContinue | ||
89 | |||
87 | git -C recipes clean -fxd # Clean recipes folder/submodule | 90 | git -C recipes clean -fxd # Clean recipes folder/submodule |
88 | git clean -fxd # Note: This will blast away the 'recipes' folder if you have symlinked it | 91 | git clean -fxd # Note: This will blast away the 'recipes' folder if you have symlinked it |
89 | } | 92 | } |
@@ -151,7 +154,7 @@ Write-Host "\n*************** Building recipes ***************\n" | |||
151 | # Note: 'recipes' is already using only pnpm - can switch to $BASE_CMD AFTER both repos are using pnpm | 154 | # Note: 'recipes' is already using only pnpm - can switch to $BASE_CMD AFTER both repos are using pnpm |
152 | Push-Location recipes | 155 | Push-Location recipes |
153 | pnpm i | 156 | pnpm i |
154 | pnpm run package | 157 | pnpm package |
155 | Pop-Location | 158 | Pop-Location |
156 | 159 | ||
157 | # ----------------------------------------------------------------------------- | 160 | # ----------------------------------------------------------------------------- |