chore(wails): wire embedded assets and build config

Use BundledAssetFileServer so production builds serve the Wails runtime
alongside the embedded frontend dist (including kbsim samples copied at
build time). Verified via wails3 task build.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 22:26:14 -07:00
parent 45075b3328
commit 57b35ffd08
6 changed files with 5 additions and 34 deletions
+2 -7
View File
@@ -8,7 +8,7 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
import { Call as $Call, CancellablePromise as $CancellablePromise } from "@wailsio/runtime";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
@@ -19,9 +19,7 @@ export function OpenProject(): $CancellablePromise<string> {
}
export function OpenVideo(): $CancellablePromise<$models.VideoResult> {
return $Call.ByID(392322154).then(($result: any) => {
return $$createType0($result);
});
return $Call.ByID(392322154);
}
export function SaveAudio(dataBase64: string, defaultName: string): $CancellablePromise<void> {
@@ -31,6 +29,3 @@ export function SaveAudio(dataBase64: string, defaultName: string): $Cancellable
export function SaveProject(content: string, defaultName: string): $CancellablePromise<void> {
return $Call.ByID(2685219959, content, defaultName);
}
// Private type creation functions
const $$createType0 = $models.VideoResult.createFrom;
+1 -1
View File
@@ -6,6 +6,6 @@ export {
FileService
};
export {
export type {
VideoResult
} from "./models.js";
+1 -25
View File
@@ -1,34 +1,10 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore: Unused imports
import { Create as $Create } from "@wailsio/runtime";
/**
* VideoResult is returned when the user opens a video file.
*/
export class VideoResult {
export interface VideoResult {
"url": string;
"name": string;
/** Creates a new VideoResult instance. */
constructor($$source: Partial<VideoResult> = {}) {
if (!("url" in $$source)) {
this["url"] = "";
}
if (!("name" in $$source)) {
this["name"] = "";
}
Object.assign(this, $$source);
}
/**
* Creates a new VideoResult instance from a string or object.
*/
static createFrom($$source: any = {}): VideoResult {
let $$parsedSource = typeof $$source === 'string' ? JSON.parse($$source) : $$source;
return new VideoResult($$parsedSource as Partial<VideoResult>);
}
}