From fcb9e2ef516cff0b6d5168bc6465e4615d2aa96e Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 21 Oct 2026 11:22:38 +0000 Subject: 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 --- bundle/vite.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bundle/vite.config.js') 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' } -- cgit v1.3.1-4-g156e