- web/ → frontend/ 目录重命名(Wails v3 标准结构) - main.go: Middleware 修复 custom.js 404 + DevTools 延迟启动 - Sidebar: 收藏夹内部独立滚动 + 帮助区块固定底部 - useFavorites.ts: longPressTimer const→let 修复 TypeError - App.vue: Arco Tabs padding-top 覆盖 - build: config.yml / Taskfile.yml 对齐官方模板,devtools build tag - 新增 v3 bindings、vite.config.js、跨平台构建配置 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
23 lines
834 B
Objective-C
23 lines
834 B
Objective-C
//go:build ios
|
|
// Minimal bootstrap: delegate comes from Go archive (WailsAppDelegate)
|
|
#import <UIKit/UIKit.h>
|
|
#include <stdio.h>
|
|
|
|
// External Go initialization function from the c-archive (declare before use)
|
|
extern void WailsIOSMain();
|
|
|
|
int main(int argc, char * argv[]) {
|
|
@autoreleasepool {
|
|
// Disable buffering so stdout/stderr from Go log.Printf flush immediately
|
|
setvbuf(stdout, NULL, _IONBF, 0);
|
|
setvbuf(stderr, NULL, _IONBF, 0);
|
|
|
|
// Start Go runtime on a background queue to avoid blocking main thread/UI
|
|
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
|
|
WailsIOSMain();
|
|
});
|
|
|
|
// Run UIApplicationMain using WailsAppDelegate provided by the Go archive
|
|
return UIApplicationMain(argc, argv, nil, @"WailsAppDelegate");
|
|
}
|
|
} |