aboutsummaryrefslogtreecommitdiff
path: root/bundle/vite.config.js
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-21 11:22:38 +0000
committer_ov4 <ov4@ov4.org>2026-10-21 11:22:38 +0000
commitfcb9e2ef516cff0b6d5168bc6465e4615d2aa96e (patch)
treeea490c33061dc0bdc56488f99a355c7626aca348 /bundle/vite.config.js
parent7b94b9003daa1126ce78df37481fc52774c2f0b4 (diff)
ci(bundle): publish portable Windows and macOS desktop packages
Build and check Bundle alongside each native compiler. Publish a single Windows exe with an embedded compiler extracted into the startup directory, and a macOS tar.xz containing the app and compiler. Check Linux without publishing a desktop package and require all six nightly attachments. Include licenses in embedded assets and app resources. Verify local builds, package smoke checks and release replacement with a simulated GitHub API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'bundle/vite.config.js')
-rw-r--r--bundle/vite.config.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/bundle/vite.config.js b/bundle/vite.config.js
index 9721f16..cf173c1 100644
--- a/bundle/vite.config.js
+++ b/bundle/vite.config.js
@@ -1,8 +1,18 @@
import { defineConfig } from 'vite';
import commonjs from '@rollup/plugin-commonjs';
+import { readFileSync } from 'node:fs';
+import configuration from './src-tauri/tauri.conf.json';
export default defineConfig({
- plugins: [commonjs({ include: /plugin\/src\// })],
+ plugins: [commonjs({ include: /plugin\/src\// }), {
+ name: 'bundled-notices',
+ generateBundle() {
+ // Frontend assets are embedded in the portable Windows executable too.
+ for (const [source, fileName] of Object.entries(configuration.bundle.resources)) {
+ this.emitFile({ type: 'asset', fileName, source: readFileSync(new URL(`./src-tauri/${source}`, import.meta.url)) });
+ }
+ }
+ }],
server: { port: 1420, strictPort: true },
clearScreen: false,
build: { target: 'es2022' }