- Updated wails3 CLI to v3.0.0-alpha.74 - Added build/ios/, build/android/, build/docker/ from new template - Updated all platform Taskfiles (darwin, linux, windows) - Fixed Angular versions to ~20.3.16 - Root Taskfile with platform-aware build/package/run - Binary compiles and runs — system tray appears on macOS Co-Authored-By: Virgil <virgil@lethean.io>
23 lines
No EOL
834 B
Objective-C
23 lines
No EOL
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");
|
|
}
|
|
} |