MacProxy tweaks
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1080 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
}
|
||||
|
||||
+ (void)failBecause:(NSString *)reason {
|
||||
[killtask terminate];
|
||||
NSRunCriticalAlertPanel(@"Failed to start Second Life.", reason, @"Quit", nil, nil);
|
||||
[NSApp terminate:nil];
|
||||
}
|
||||
@@ -28,9 +27,17 @@
|
||||
[task release];
|
||||
}
|
||||
|
||||
- (void)awakeFromNib {
|
||||
- (id)init {
|
||||
[super init];
|
||||
killtask = nil;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[NSApp setDelegate:self];
|
||||
}
|
||||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)notification {
|
||||
/* Start the proxy, run Second Life, stop the proxy, and terminate. */
|
||||
SLProxy *proxy = [[SLProxy alloc] init];
|
||||
[self runSecondLifeWithLoginURL:[proxy loginURL]];
|
||||
@@ -38,4 +45,8 @@
|
||||
[NSApp terminate:self];
|
||||
}
|
||||
|
||||
- (void)applicationWillTerminate:(NSNotification *)notification {
|
||||
[killtask terminate];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>LSBackgroundOnly</key>
|
||||
<key>LSUIElement</key>
|
||||
<true/>
|
||||
<key>MonoArguments</key>
|
||||
<array>
|
||||
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
APPL????
|
||||
Binary file not shown.
@@ -1,8 +0,0 @@
|
||||
{
|
||||
IBClasses = (
|
||||
{CLASS = Controller; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
|
||||
{CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
|
||||
{CLASS = SLProxy; LANGUAGE = ObjC; SUPERCLASS = NSObject; }
|
||||
);
|
||||
IBVersion = 1;
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IBDocumentLocation</key>
|
||||
<string>110 86 356 240 0 0 1440 878 </string>
|
||||
<key>IBEditorPositions</key>
|
||||
<dict>
|
||||
<key>29</key>
|
||||
<string>109 299 338 44 0 0 1440 878 </string>
|
||||
</dict>
|
||||
<key>IBFramework Version</key>
|
||||
<string>446.1</string>
|
||||
<key>IBSystem Version</key>
|
||||
<string>8P2137</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
Binary file not shown.
@@ -9,7 +9,7 @@ environment with Perl installed should suffice.
|
||||
To use MacProxy, navigate to the MacProxy directory and type
|
||||
|
||||
./build.pl "Application Name" path/to/executable.exe \
|
||||
path/to/SLProxy.dll path/to/libsecondlife.dll
|
||||
path/to/libraries.dll ...
|
||||
|
||||
For example, to create a standalone ChatConsole for the Mac:
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
die "Usage: $0 \"Application Name\" path/to/executable.exe path/to/SLProxy.dll path/to/libsecondlife.dll\n" unless @ARGV == 4;
|
||||
die "Usage: $0 \"Application Name\" path/to/executable.exe path/to/libraries.dll ...\n" unless @ARGV >= 2;
|
||||
|
||||
die "Please run MacProxy from within its own directory.\n" unless -d 'Launcher';
|
||||
|
||||
my ($appname, $exe, $slproxy, $libsl) = @ARGV;
|
||||
my ($appname, $exe, @libs) = @ARGV;
|
||||
|
||||
print "Creating application bundle...\n";
|
||||
|
||||
@@ -14,7 +14,7 @@ and die "Failed; aborting.\n";
|
||||
|
||||
print "Embedding assemblies...\n";
|
||||
|
||||
system('cp', $exe, $slproxy, $libsl, "$appname.app/Contents/Resources/Assemblies/")
|
||||
system('cp', $exe, @libs, "$appname.app/Contents/Resources/Assemblies/")
|
||||
and die "Failed; aborting.\n";
|
||||
|
||||
print "Writing metadata...\n";
|
||||
@@ -27,7 +27,7 @@ or die "Failed to open $appname.app/Contents/Info.plist; aborting.\n";
|
||||
my $id = $appname;
|
||||
$id =~ s/[^a-z]//gi;
|
||||
$id = 'x' unless length $id;
|
||||
$$_ =~ s!.*/!! foreach \$exe, \$slproxy, \$libsl;
|
||||
$exe =~ s!.*/!!;
|
||||
while (<$ii>) {
|
||||
s/##NAME##/$appname/;
|
||||
s/##ID##/$id/;
|
||||
|
||||
Reference in New Issue
Block a user