made press work with custom themes

This commit is contained in:
Klaas Pieter Annema
2010-09-08 16:13:45 +02:00
parent 5b7497093c
commit e2741ba604
+5
View File
@@ -130,7 +130,12 @@ function press(rootPath, outputPath, options) {
// read in the default theme name, and attempt to get its size
var themeName = outputInfoPlist.valueForKey("CPDefaultTheme") || "Aristo",
themePath = nil;
if (themeName === "Aristo")
themePath = FILE.join(outputPath, options.frameworks, "AppKit", "Resources", themeName+".blend");
else
themePath = FILE.join(outputPath, "Resources", themeName + ".blend");
if (FILE.exists(themePath))
{