Skip to content

Commit

Permalink
Readd Aristo1 build process
Browse files Browse the repository at this point in the history
Cappuccino will now continue to support Aristo1
By default Aristo2 will be used, unless you add in your Info.plist

<key>CPDefaultTheme</key>
<string>Aristo</string>

In that case Aristo2 will be use.

If you put

<key>CPDefaultTheme</key>
<string>MyCustomTheme</string>

It will use your custom theme as usual from your app's Resource folder
  • Loading branch information
primalmotion committed Jan 8, 2013
1 parent 5a15502 commit cdaed50
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion AppKit/CPApplication.j
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ var _CPAppBootstrapperActions = nil;
var defaultThemeName = [CPApplication defaultThemeName],
themeURL = nil;

if (defaultThemeName === @"Aristo2")
if (defaultThemeName === @"Aristo" || defaultThemeName === @"Aristo2")
themeURL = [[CPBundle bundleForClass:[CPApplication class]] pathForResource:defaultThemeName + @".blend"];
else
themeURL = [[CPBundle mainBundle] pathForResource:defaultThemeName + @".blend"];
Expand Down
3 changes: 3 additions & 0 deletions AppKit/Jakefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ task ("Theme", [$BUILD_CJS_CAPPUCCINO_APPKIT], function()
{
subjake(["Themes"], "build");

cp_r(FILE.join($BUILD_DIR, $CONFIGURATION, 'Aristo.blend'), FILE.join($BUILD_PATH, 'Resources', 'Aristo.blend'));
cp_r(FILE.join($BUILD_DIR, $CONFIGURATION, 'Aristo.blend'), FILE.join($BUILD_CJS_CAPPUCCINO_APPKIT, "Resources", "Aristo.blend"));

cp_r(FILE.join($BUILD_DIR, $CONFIGURATION, 'Aristo2.blend'), FILE.join($BUILD_PATH, 'Resources', 'Aristo2.blend'));
cp_r(FILE.join($BUILD_DIR, $CONFIGURATION, 'Aristo2.blend'), FILE.join($BUILD_CJS_CAPPUCCINO_APPKIT, "Resources", "Aristo2.blend"));
});
Expand Down
2 changes: 1 addition & 1 deletion AppKit/Themes/Jakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

require("../../common.jake");

subtasks(["BlendKit", "CommonJS", "Aristo2"], ["build", "clean", "clobber"]);
subtasks(["BlendKit", "CommonJS", "Aristo", "Aristo2"], ["build", "clean", "clobber"]);
2 changes: 1 addition & 1 deletion CommonJS/bin/flatten
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function main(args)
var defaultThemeName = [CPApplication defaultThemeName],
bundle = nil;

if (defaultThemeName === @"Aristo2")
if (defaultThemeName === @"Aristo" || defaultThemeName === @"Aristo2")
bundle = [CPBundle bundleForClass:[CPApplication class]];
else
bundle = [CPBundle mainBundle];
Expand Down
2 changes: 1 addition & 1 deletion CommonJS/bin/press
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function press(rootPath, outputPath, options) {
var themeName = outputInfoPlist.valueForKey("CPDefaultTheme") || "Aristo2",
themePath = nil;

if (themeName === "Aristo2")
if (themeName === "Aristo" || themeName === "Aristo2")
themePath = FILE.join(outputPath, options.frameworks, "AppKit", "Resources", themeName+".blend");
else
themePath = FILE.join(outputPath, "Resources", themeName + ".blend");
Expand Down
4 changes: 2 additions & 2 deletions Jakefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ task ("clean-sprites", function()

task ("clobber-theme", function()
{
var f = new FileList(FILE.join(SYSTEM.env.CAPP_BUILD, "**/Aristo2.blend")),
var f = new FileList(FILE.join(SYSTEM.env.CAPP_BUILD, "**/Aristo.blend"), FILE.join(SYSTEM.env.CAPP_BUILD, "**/Aristo2.blend")),
paths = f.items();

f = new FileList(FILE.join(SYSTEM.env.CAPP_BUILD, "Aristo2.build"));
f = new FileList(FILE.join(SYSTEM.env.CAPP_BUILD, "Aristo.build"), FILE.join(SYSTEM.env.CAPP_BUILD, "Aristo2.build"));
paths = paths.concat(f.items());

paths.forEach(function(path)
Expand Down

1 comment on commit cdaed50

@MatiMax
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't "In that case Aristo2 will be use." read "In that case Aristo1 will be used."?

Please sign in to comment.