mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 02:00:46 +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
f23c1b9359
2 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,8 @@ if (-not $SkipWebBuild) {
|
||||||
& npm.cmd install --prefix $webRoot
|
& npm.cmd install --prefix $webRoot
|
||||||
if ($LASTEXITCODE -ne 0) { throw "npm_install_failed" }
|
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 ($LASTEXITCODE -ne 0) { throw "web_build_failed" }
|
||||||
}
|
}
|
||||||
if (-not (Test-Path (Join-Path $dist "index.html"))) {
|
if (-not (Test-Path (Join-Path $dist "index.html"))) {
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsc -b && vite build",
|
||||||
|
"build:release": "vite build",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue