Artifact 78b18c329fbba29dd8ad7f439ac3c45dc985e6c4:
- File main.m — part of check-in [8e075bfc2d] at 2018-02-24 19:58:37 on branch trunk — Re-work Mac build to self-developed bundle scheme to avoid issues with py2app (user: kevin size: 505) [more...]
#import <Foundation/Foundation.h> #import <Cocoa/Cocoa.h> #import <stdlib.h> #import <stdio.h> #import <unistd.h> #import <sys/wait.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *launchpath = [[NSBundle mainBundle] pathForResource:@"launcher" ofType:nil]; char cmd[50000]; [launchpath getCString:cmd maxLength:(sizeof cmd) encoding:NSUTF8StringEncoding]; system(cmd); [pool release]; }