mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 03:48:49 +00:00
include xcodecapp-cocoa in the Cappuccino build process.
This commit is contained in:
1 parent
0f4aab926e
commit
df7aa30267
2 files changed
+12
-11
No files matched your search
+1
-1
@@ -2,6 +2,6 @@
|
||||
require("../common.jake");
|
||||
|
||||
// nib2cib uses fontinfo and capp uses nib2cib
|
||||
subtasks(["fontinfo", "nib2cib", "capp", "NativeHost", "xcodecapp"], ["build"/*, "clean", "clobber"*/]);
|
||||
subtasks(["fontinfo", "nib2cib", "capp", "NativeHost", "xcodecapp", "xcodecapp-cocoa"], ["build"/*, "clean", "clobber"*/]);
|
||||
|
||||
subtasks(["fontinfo"], ["clean", "clobber"]);
|
||||
@@ -10,7 +10,9 @@ task ("build", function()
|
||||
{
|
||||
if (executableExists("xcodebuild"))
|
||||
{
|
||||
var args = "-alltargets -configuration Release";
|
||||
var args = "-alltargets -configuration Release",
|
||||
supportPath = FILE.join($BUILD_CJS_CAPPUCCINO, "support", applicationName),
|
||||
installPath = FILE.join("/", "Applications", applicationName);
|
||||
|
||||
if (xcodebuildHasTenPointFiveSDK())
|
||||
args = "-sdk macosx10.5 " + args;
|
||||
@@ -21,10 +23,14 @@ task ("build", function()
|
||||
if (OS.system("xcodebuild " + args))
|
||||
OS.exit(1);
|
||||
|
||||
rm_rf(FILE.join($BUILD_CJS_CAPPUCCINO, "support", applicationName));
|
||||
FILE.mkdirs(FILE.join($BUILD_CJS_CAPPUCCINO, "support"))
|
||||
cp_r(FILE.join("build", "Release", "xcodecapp-cocoa.app"), FILE.join($BUILD_CJS_CAPPUCCINO, "support", applicationName));
|
||||
FILE.chmod(FILE.join($BUILD_CJS_CAPPUCCINO, "support", applicationName, "Contents", "MacOS", "xcodecapp-cocoa"), 0755);
|
||||
rm_rf(supportPath);
|
||||
FILE.mkdirs(supportPath);
|
||||
cp_r(FILE.join("build", "Release", "xcodecapp-cocoa.app"), supportPath);
|
||||
FILE.chmod(FILE.join(supportPath, "Contents", "MacOS", "xcodecapp-cocoa"), 0755);
|
||||
|
||||
if (FILE.exists(installPath))
|
||||
FILE.remove(installPath);
|
||||
FILE.symlink(supportPath, installPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -32,11 +38,6 @@ task ("build", function()
|
||||
}
|
||||
});
|
||||
|
||||
task ("install", ["build"], function()
|
||||
{
|
||||
cp_r(FILE.join($BUILD_CJS_CAPPUCCINO, "support", applicationName), FILE.join("/", "Applications", applicationName));
|
||||
});
|
||||
|
||||
task ("clean", function()
|
||||
{
|
||||
if (OS.system("xcodebuild clean"))
|
||||
|
||||
Reference in new issue
Block a user