Skip to content

Commit

Permalink
* platform/mac/stub.m: download arch-specific installers for ppc or …
Browse files Browse the repository at this point in the history
…intel.

 * Rakefile: build the stub as a universal binary.
  • Loading branch information
_why committed Jun 25, 2008
1 parent 440e9ad commit 7ace9ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ else

case PLATFORM when /darwin/
task :stub do
sh "gcc -framework Cocoa -o stub platform/mac/stub.m -I."
ENV['MACOSX_DEPLOYMENT_TARGET'] = '10.4'
sh "gcc -O -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -framework Cocoa -o stub platform/mac/stub.m -I."
end

task :installer do
Expand Down
4 changes: 4 additions & 0 deletions platform/mac/stub.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ - (void)downloadDidFinish: (NSURLDownload *)download
NSTextField *text = [[[NSTextField alloc] initWithFrame:
NSMakeRect(40, 90, 260, 18)] autorelease];
StubEvents *events = [[StubEvents alloc] initWithWindow: win andText: text andProgress: pop];
#ifdef __ppc__
[events checkForLatestShoesAt: @"http://hacketyhack.net/pkg/osx/shoes-ppc"];
#else
[events checkForLatestShoesAt: @"http://hacketyhack.net/pkg/osx/shoes"];
#endif

[[win contentView] addSubview: text];
[text setStringValue: @"Downloading Shoes."];
Expand Down

0 comments on commit 7ace9ad

Please sign in to comment.