chore(wails): scaffold v3 project boilerplate

Wails v3 replaces the NPM-only dev entry point. This adds the Go module,
Taskfile, build metadata, and a minimal window shell without touching
frontend logic.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-29 22:20:21 -07:00
parent 5fc2b6ad65
commit f5feefe844
78 changed files with 7072 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
//go:build ios
// Minimal bootstrap: delegate comes from Go archive (WailsAppDelegate)
#import <UIKit/UIKit.h>
#include <stdio.h>
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);
// Call UIApplicationMain IMMEDIATELY and start NOTHING else here. Do not
// start the Go runtime yet: starting it concurrently with UIApplicationMain
// intermittently corrupts the FrontBoard launch handshake on a physical
// device, so the app delegate's didFinishLaunchingWithOptions never fires
// (blank cold launch / 0x8BADF00D). Instead, the WailsAppDelegate (provided
// by the Go archive) starts the Go runtime itself from
// didFinishLaunchingWithOptions — i.e. only AFTER UIKit has delivered the
// launch — so the runtime never races the launch handshake.
return UIApplicationMain(argc, argv, nil, @"WailsAppDelegate");
}
}