Update CI.
All checks were successful
homepanel/HomePanel/pipeline/head This commit looks good

This commit is contained in:
Tom Butcher 2026-02-15 22:52:16 +00:00
parent c4c95f2c1d
commit 53621d5d08
2 changed files with 13 additions and 1 deletions

12
Jenkinsfile vendored
View File

@ -41,6 +41,16 @@ def deploy() {
}
}
stage('Build Client (App)') {
nodejs(nodeJSInstallationName: 'Node23') {
sh """
export PATH="\$HOME/.bun/bin:\$PATH"
# App build uses base: "/" (see packages/client/vite.config.js) and outputs to packages/client/dist-app
VITE_BUILD_NUMBER=${env.BUILD_NUMBER} NODE_ENV=production pnpm --filter @home-panel/client build:app
"""
}
}
stage('Compile') {
nodejs(nodeJSInstallationName: 'Node23') {
sh """
@ -135,7 +145,7 @@ def deploy() {
}
stage('Archive Artifacts') {
archiveArtifacts artifacts: 'dist/homepanel, dist/*.deb, dist/*.rpm', fingerprint: true, allowEmptyArchive: false
archiveArtifacts artifacts: 'dist/homepanel, dist/*.deb, dist/*.rpm, packages/client/dist-app/**', fingerprint: true, allowEmptyArchive: false
}
} finally {

View File

@ -15,6 +15,7 @@ export default defineConfig(({ mode }) => {
// Native app/webview builds (especially older iOS) can break with `base: "./"`, so
// use absolute paths when building with `--mode app`.
const base = mode === "app" ? "/" : "./";
const outDir = mode === "app" ? "dist-app" : "dist";
return {
base,
@ -60,6 +61,7 @@ export default defineConfig(({ mode }) => {
],
build: {
outDir,
minify: "terser",
terserOptions: {
safari10: true,