mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Use getCappuccinoVersion() in various Jakefiles instead of hardcoded versions.
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ appKitTask = framework ("AppKit", function(appKitTask)
|
||||
appKitTask.setEmail("feedback @nospam@ 280north.com");
|
||||
appKitTask.setSummary("AppKit classes for Cappuccino");
|
||||
appKitTask.setIdentifier("com.280n.AppKit");
|
||||
appKitTask.setVersion("0.8.0");
|
||||
appKitTask.setVersion(getCappuccinoVersion());
|
||||
appKitTask.setLicense(BundleTask.License.LGPL_v2_1);
|
||||
appKitTask.setSources(AppKitFiles);
|
||||
appKitTask.setResources(new FileList("Resources/**/*"));
|
||||
|
||||
@@ -10,7 +10,7 @@ blendKitTask = framework ("BlendKit", function(blendKitTask)
|
||||
blendKitTask.setBuildPath(FILE.join($BUILD_DIR, $CONFIGURATION));
|
||||
|
||||
blendKitTask.setIdentifier("com.280n.BlendKit");
|
||||
blendKitTask.setVersion("0.8.0");
|
||||
blendKitTask.setVersion(getCappuccinoVersion());
|
||||
blendKitTask.setAuthor("280 North, Inc.");
|
||||
blendKitTask.setEmail("feedback @nospam@ 280north.com");
|
||||
blendKitTask.setSummary("BlendKit classes for Cappuccino");
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ foundationTask = framework ("Foundation", function(foundationTask)
|
||||
foundationTask.setEmail("feedback @nospam@ 280north.com");
|
||||
foundationTask.setSummary("Foundation classes for Cappuccino");
|
||||
foundationTask.setIdentifier("com.280n.Foundation");
|
||||
foundationTask.setVersion("0.8.0");
|
||||
foundationTask.setVersion(getCappuccinoVersion());
|
||||
foundationTask.setLicense(BundleTask.License.LGPL_v2_1);
|
||||
foundationTask.setSources(new FileList("**/*.j"));
|
||||
foundationTask.setResources(new FileList("Resources/**/*"));
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ app ("capp", function(cappTask)
|
||||
cappTask.setSummary("Setup up Cappuccino projects");
|
||||
cappTask.setIdentifier("com.280n.capp");
|
||||
cappTask.setLicense(BundleTask.License.LGPL_v2_1);
|
||||
cappTask.setVersion("0.8.0");
|
||||
cappTask.setVersion(getCappuccinoVersion());
|
||||
cappTask.setSources(new FileList("*.j"));
|
||||
cappTask.setResources(new FileList("Resources/*"));
|
||||
cappTask.setIncludesNibsAndXibs(true);
|
||||
|
||||
@@ -13,7 +13,7 @@ app ("nib2cib", function(nib2cibTask)
|
||||
|
||||
nib2cibTask.setIdentifier("com.280n.nib2cib");
|
||||
nib2cibTask.setLicense(BundleTask.License.LGPL_v2_1);
|
||||
nib2cibTask.setVersion("0.8.0");
|
||||
nib2cibTask.setVersion(getCappuccinoVersion());
|
||||
nib2cibTask.setAuthor("280 North, Inc.");
|
||||
nib2cibTask.setEmail("feedback @nospam@ 280north.com");
|
||||
nib2cibTask.setSummary("nib2cib converts Cocoa nib and xibs to Cappuccino cibs");
|
||||
|
||||
+1
-1
@@ -289,7 +289,7 @@ global.symlink_executable = function(source)
|
||||
FILE.symlink(relative, destination);
|
||||
}
|
||||
|
||||
function getCappuccinoVersion() {
|
||||
global.getCappuccinoVersion = function() {
|
||||
var versionFile = FILE.path(module.path).dirname().join("version.json");
|
||||
return JSON.parse(versionFile.read({ charset : "UTF-8" })).version;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user