mirror of
https://github.com/hansjone/netx.git
synced 2026-10-08 22:20:58 +08:00
Use vite-only build for Windows release packaging.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
477ec4b120
commit
d9b52e35e5
2 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,8 @@ if (-not $SkipWebBuild) {
|
|||
& npm.cmd install --prefix $webRoot
|
||||
if ($LASTEXITCODE -ne 0) { throw "npm_install_failed" }
|
||||
}
|
||||
& npm.cmd run build --prefix $webRoot
|
||||
# Release packaging skips tsc (dev CI still uses `npm run build`).
|
||||
& npm.cmd run build:release --prefix $webRoot
|
||||
if ($LASTEXITCODE -ne 0) { throw "web_build_failed" }
|
||||
}
|
||||
if (-not (Test-Path (Join-Path $dist "index.html"))) {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"build:release": "vite build",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue