mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Got rid of nonsensical tasks in ThemeDescriptor Jakefile.
Reviewed by me.
This commit is contained in:
@@ -24,40 +24,7 @@ blend ("__project.nameasidentifier__.blend", function(__project.nameasidentifier
|
||||
__project.nameasidentifier__Task.setResources(new FileList("Resources/*"));
|
||||
});
|
||||
|
||||
task ("default", ["__project.nameasidentifier__.blend"], function()
|
||||
{
|
||||
printResults(configuration);
|
||||
});
|
||||
task ("default", ["__project.nameasidentifier__.blend"]);
|
||||
|
||||
task ("build", ["default"]);
|
||||
|
||||
task ("debug", function()
|
||||
{
|
||||
ENV["CONFIGURATION"] = "Debug";
|
||||
JAKE.subjake(["."], "build", ENV);
|
||||
});
|
||||
|
||||
task ("release", function()
|
||||
{
|
||||
ENV["CONFIGURATION"] = "Release";
|
||||
JAKE.subjake(["."], "build", ENV);
|
||||
});
|
||||
|
||||
task ("desktop", ["release"], function()
|
||||
{
|
||||
FILE.mkdirs(FILE.join("Build", "Desktop", "__project.nameasidentifier__"));
|
||||
require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "__project.nameasidentifier__"), FILE.join("Build", "Desktop", "__project.nameasidentifier__", "__project.nameasidentifier__.app"));
|
||||
printResults("Desktop")
|
||||
});
|
||||
|
||||
task ("run-desktop", ["desktop"], function()
|
||||
{
|
||||
OS.system([FILE.join("Build", "Desktop", "__project.nameasidentifier__", "__project.nameasidentifier__.app", "Contents", "MacOS", "NativeHost"), "-i"]);
|
||||
});
|
||||
|
||||
function printResults(configuration)
|
||||
{
|
||||
print("----------------------------");
|
||||
print(configuration+" app built at path: "+FILE.join("Build", configuration, "__project.nameasidentifier__"));
|
||||
print("----------------------------");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user