feat: add desktop app release packaging

This commit is contained in:
lutc5
2026-04-29 18:45:25 +08:00
parent 74bbd8e6d2
commit 92c8735bfc
73 changed files with 8934 additions and 757 deletions

36
desktop/frontend/wailsjs/go/main/App.d.ts vendored Executable file
View File

@@ -0,0 +1,36 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
import {service} from '../models';
import {main} from '../models';
export function ClearLogs():Promise<void>;
export function ClearRequests():Promise<void>;
export function GetConfig():Promise<service.Config>;
export function GetModels():Promise<Array<main.ModelInfo>>;
export function GetRequests():Promise<Array<main.RequestRecord>>;
export function GetStatus():Promise<main.ProxyStatus>;
export function HideWindow():Promise<void>;
export function MinimizeWindow():Promise<void>;
export function QuitApp():Promise<void>;
export function RefreshModels():Promise<Array<main.ModelInfo>>;
export function RequestQuitShortcut():Promise<void>;
export function SelectModel(arg1:string):Promise<main.ProxyStatus>;
export function ShowWindow():Promise<void>;
export function StartProxy():Promise<void>;
export function StopProxy():Promise<void>;
export function UpdateConfig(arg1:service.Config):Promise<void>;

View File

@@ -0,0 +1,67 @@
// @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function ClearLogs() {
return window['go']['main']['App']['ClearLogs']();
}
export function ClearRequests() {
return window['go']['main']['App']['ClearRequests']();
}
export function GetConfig() {
return window['go']['main']['App']['GetConfig']();
}
export function GetModels() {
return window['go']['main']['App']['GetModels']();
}
export function GetRequests() {
return window['go']['main']['App']['GetRequests']();
}
export function GetStatus() {
return window['go']['main']['App']['GetStatus']();
}
export function HideWindow() {
return window['go']['main']['App']['HideWindow']();
}
export function MinimizeWindow() {
return window['go']['main']['App']['MinimizeWindow']();
}
export function QuitApp() {
return window['go']['main']['App']['QuitApp']();
}
export function RefreshModels() {
return window['go']['main']['App']['RefreshModels']();
}
export function RequestQuitShortcut() {
return window['go']['main']['App']['RequestQuitShortcut']();
}
export function SelectModel(arg1) {
return window['go']['main']['App']['SelectModel'](arg1);
}
export function ShowWindow() {
return window['go']['main']['App']['ShowWindow']();
}
export function StartProxy() {
return window['go']['main']['App']['StartProxy']();
}
export function StopProxy() {
return window['go']['main']['App']['StopProxy']();
}
export function UpdateConfig(arg1) {
return window['go']['main']['App']['UpdateConfig'](arg1);
}

View File

@@ -0,0 +1,101 @@
export namespace main {
export class ModelInfo {
id: string;
name: string;
static createFrom(source: any = {}) {
return new ModelInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
this.name = source["name"];
}
}
export class ProxyStatus {
running: boolean;
addr: string;
models: number;
model?: string;
startedAt?: string;
static createFrom(source: any = {}) {
return new ProxyStatus(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.running = source["running"];
this.addr = source["addr"];
this.models = source["models"];
this.model = source["model"];
this.startedAt = source["startedAt"];
}
}
export class RequestRecord {
time: string;
method: string;
path: string;
statusCode: number;
duration: string;
reqBody?: string;
respBody?: string;
static createFrom(source: any = {}) {
return new RequestRecord(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.time = source["time"];
this.method = source["method"];
this.path = source["path"];
this.statusCode = source["statusCode"];
this.duration = source["duration"];
this.reqBody = source["reqBody"];
this.respBody = source["respBody"];
}
}
}
export namespace service {
export class Config {
Host: string;
Port: number;
Transport: string;
Pipe: string;
WebSocketURL: string;
Cwd: string;
CurrentFilePath: string;
Mode: string;
Model: string;
ShellType: string;
SessionMode: string;
Timeout: number;
static createFrom(source: any = {}) {
return new Config(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.Host = source["Host"];
this.Port = source["Port"];
this.Transport = source["Transport"];
this.Pipe = source["Pipe"];
this.WebSocketURL = source["WebSocketURL"];
this.Cwd = source["Cwd"];
this.CurrentFilePath = source["CurrentFilePath"];
this.Mode = source["Mode"];
this.Model = source["Model"];
this.ShellType = source["ShellType"];
this.SessionMode = source["SessionMode"];
this.Timeout = source["Timeout"];
}
}
}