Deploying to gh-pages from @ cappuccino/cappuccino@3b09a5bde6 🚀

This commit is contained in:
enquora
2026-08-15 02:13:34 +00:00
parent c9496605bc
commit fdc656d489
4 changed files with 418 additions and 254 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+123 -55
View File
@@ -1,94 +1,162 @@
/*
* Jakefile
* CPSplitViewTest
* CPStackViewTest
*
* Created by Alexander Ljungberg on January 27, 2012.
* Copyright 2012, WireLoad All rights reserved.
* Created by You on August 14, 2026.
* Copyright 2026, Your Company All rights reserved.
*/
var ENV = require("system").env,
FILE = require("file"),
JAKE = require("jake"),
const path = require("path");
const fs = require("fs");
var ENV = process.env,
task = JAKE.task,
FileList = JAKE.FileList,
app = require("cappuccino/jake").app,
app = CAPPUCCINO.Jake.applicationtask.app,
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug",
OS = require("os");
OS = require("os"),
projectName = "CPStackViewTest";
app ("CPSplitViewTest", function(task)
var buildDir = path.resolve(ENV["BUILD_PATH"] || ENV["CAPP_BUILD"] || "Build");
app (projectName, function(task)
{
task.setBuildIntermediatesPath(FILE.join("Build", "CPSplitViewTest.build", configuration));
task.setBuildPath(FILE.join("Build", configuration));
ENV["OBJJ_INCLUDE_PATHS"] = ["Frameworks"];
task.setProductName("CPSplitViewTest");
task.setIdentifier("com.yourcompany.CPSplitViewTest");
if (configuration === "Debug")
ENV["OBJJ_INCLUDE_PATHS"] = path.join(ENV["OBJJ_INCLUDE_PATHS"], configuration);
task.setBuildIntermediatesPath(path.join(buildDir, "CPStackViewTest.build", configuration));
task.setBuildPath(path.join(buildDir, configuration));
task.setProductName("CPStackViewTest");
task.setIdentifier("com.yourcompany.CPStackViewTest");
task.setVersion("1.0");
task.setAuthor("WireLoad");
task.setAuthor("Your Company");
task.setEmail("feedback @nospam@ yourcompany.com");
task.setSummary("CPSplitViewTest");
task.setSources((new FileList("**/*.j")).exclude(FILE.join("Build", "**")));
task.setSummary("CPStackViewTest");
task.setSources(new FileList("**/*.j").exclude(path.join("Build", "**")).exclude(path.join("Frameworks", "Source", "**")));
task.setResources(new FileList("Resources/**"));
task.setIndexFilePath("index.html");
task.setInfoPlistPath("Info.plist");
task.setNib2CibFlags("-R Resources/");
if (configuration === "Debug")
task.setCompilerFlags("-DDEBUG -g");
task.setCompilerFlags("-DDEBUG -g -S --inline-msg-send");
else
task.setCompilerFlags("-O");
task.setCompilerFlags("-O2");
});
task ("default", ["CPSplitViewTest"], function()
task ("default", [projectName], function()
{
printResults(configuration);
});
task ("build", ["default"]);
task ("build", ["default"], function()
{
updateApplicationSize();
});
task ("debug", function()
{
ENV["CONFIGURATION"] = "Debug";
configuration = ENV["CONFIGURATION"] = "Debug";
JAKE.subjake(["."], "build", ENV);
});
task ("release", function()
{
ENV["CONFIGURATION"] = "Release";
configuration = ENV["CONFIGURATION"] = "Release";
JAKE.subjake(["."], "build", ENV);
});
task ("run", ["debug"], function()
{
OS.system(["open", FILE.join("Build", "Debug", "CPSplitViewTest", "index.html")]);
});
task ("run-release", ["release"], function()
{
OS.system(["open", FILE.join("Build", "Release", "CPSplitViewTest", "index.html")]);
});
task ("deploy", ["release"], function()
{
FILE.mkdirs(FILE.join("Build", "Deployment", "CPSplitViewTest"));
OS.system(["press", "-f", FILE.join("Build", "Release", "CPSplitViewTest"), FILE.join("Build", "Deployment", "CPSplitViewTest")]);
printResults("Deployment")
});
task ("desktop", ["release"], function()
{
FILE.mkdirs(FILE.join("Build", "Desktop", "CPSplitViewTest"));
require("cappuccino/nativehost").buildNativeHost(FILE.join("Build", "Release", "CPSplitViewTest"), FILE.join("Build", "Desktop", "CPSplitViewTest", "CPSplitViewTest.app"));
printResults("Desktop")
});
task ("run-desktop", ["desktop"], function()
{
OS.system([FILE.join("Build", "Desktop", "CPSplitViewTest", "CPSplitViewTest.app", "Contents", "MacOS", "NativeHost"), "-i"]);
});
function printResults(configuration)
{
print("----------------------------");
print(configuration+" app built at path: "+FILE.join("Build", configuration, "CPSplitViewTest"));
print("----------------------------");
console.log("----------------------------");
console.log(configuration+" app built at path: "+path.join(buildDir, configuration, projectName));
console.log("----------------------------");
}
function updateApplicationSize()
{
console.log("Calculating application file sizes...");
var contents = fs.readFileSync(path.join(buildDir, configuration, projectName, "Info.plist"), { encoding: "utf8" }),
format = CFPropertyList.sniffedFormatOfString(contents),
plist = CFPropertyList.propertyListFromString(contents),
totalBytes = {executable:0, data:0, mhtml:0};
// Get the size of all framework executables and sprite data
var frameworksDir = "Frameworks";
if (configuration === "Debug")
frameworksDir = path.join(frameworksDir, "Debug");
var frameworks = [];
if (fs.existsSync(frameworksDir)) {
frameworks = fs.readdirSync(frameworksDir);
}
frameworks.forEach(function(framework)
{
if (framework !== "Source")
addBundleFileSizes(path.join(frameworksDir, framework), totalBytes);
});
// Read in the default theme name, and attempt to get its size
var themeName = plist.valueForKey("CPDefaultTheme") || "Aristo2",
themePath = nil;
if (themeName === "Aristo" || themeName === "Aristo2")
themePath = path.join(frameworksDir, "AppKit", "Resources", themeName + ".blend");
else
themePath = path.join("Frameworks", "Resources", themeName + ".blend");
if (fs.existsSync(themePath) && fs.lstatSync(themePath).isDirectory())
addBundleFileSizes(themePath, totalBytes);
// Add sizes for the app
addBundleFileSizes(path.join(buildDir, configuration, projectName), totalBytes);
console.log("Executables: " + totalBytes.executable + ", sprite data: " + totalBytes.data + ", total: " + (totalBytes.executable + totalBytes.data));
var dict = new CFMutableDictionary();
dict.setValueForKey("executable", totalBytes.executable);
dict.setValueForKey("data", totalBytes.data);
dict.setValueForKey("mhtml", totalBytes.mhtml);
plist.setValueForKey("CPApplicationSize", dict);
fs.writeFileSync(path.join(buildDir, configuration, projectName, "Info.plist"), CFPropertyList.stringFromPropertyList(plist, format), { encoding: "utf8" });
}
function addBundleFileSizes(bundlePath, totalBytes)
{
var bundleName = path.basename(bundlePath),
environment = bundleName === "Foundation" ? "Objj" : "Browser",
bundlePath = path.join(bundlePath, environment + ".environment");
if (fs.existsSync(bundlePath) && fs.lstatSync(bundlePath).isDirectory())
{
var filename = bundleName + ".sj",
filePath = path.join(bundlePath, filename);
if (fs.existsSync(filePath)) {
totalBytes.executable += fs.lstatSync(filePath).size;
}
filePath = path.join(bundlePath, "dataURLs.txt");
if (fs.existsSync(filePath))
totalBytes.data += fs.lstatSync(filePath).size;
filePath = path.join(bundlePath, "MHTMLData.txt");
if (fs.existsSync(filePath))
totalBytes.mhtml += fs.lstatSync(filePath).size;
filePath = path.join(bundlePath, "MHTMLPaths.txt");
if (fs.existsSync(filePath))
totalBytes.mhtml += fs.lstatSync(filePath).size;
}
}
+147 -147
View File
@@ -1,147 +1,147 @@
1786661562608|ArrayController1|
1786661562622|ArrayControllerInitialSelectionTest|
1786661562635|ArrayControllerRemovingFirstTest|
1786661562648|AttachedSheet|
1786661562661|AttachedSheet2|
1786661562674|Bindings|
1786661562687|CGCanvasContext|
1786661562700|CGPath|
1786661562714|CPAlertTest|
1786661562727|CPAnimatablePropertyContainerTest|
1786661562740|CPAnimationContextTest|
1786661562753|CPAnimationTest|
1786661562766|CPBinder-echo-bug|
1786661562779|CPBoxCibTest|
1786661562792|CPBoxTest|
1786661562805|CPBrowserTest|
1786661562818|CPButtonBarTest|
1786661562831|CPButtonKeyEquivalentDefaultTest|
1786661562845|CPButtonTest|
1786661562858|CPByteCountFormatter|
1786661562871|CPCollectionViewNibTest|
1786661562884|CPColor-CPImage-description|
1786661562897|CPColorWellBindings|
1786661562910|CPComboBoxTest|
1786661562923|CPControlPerformClickExceptionTest|
1786661562936|CPControlSize|
1786661562948|CPCursor|
1786661562961|CPDateFormatterTest|
1786661562974|CPDatePickerTest|
1786661562987|CPDictionaryControllerTest|
1786661563000|CPDocumentControllerTest|
1786661563013|CPFormatterTest|
1786661563026|CPGraphicsTest|
1786661563039|CPImageAndTextViewImageScaling|
1786661563053|CPImageViewAlignmentScaling|
1786661563067|CPImageViewTest|
1786661563080|CPImageViewbindingsTest|
1786661563093|CPLevelIndicator|
1786661563106|CPLocalizationTest|
1786661563119|CPLogTest|
1786661563132|CPMarkdownParser|
1786661563144|CPMenuCALayerTest|
1786661563157|CPMenuEnabledBindingsTest|
1786661563170|CPMenuKeyEquivalents|
1786661563183|CPMenuRemoveAllTest|
1786661563196|CPMenuSubmenuPlacementConstraints|
1786661563208|CPMenuTest|
1786661563221|CPOutlineViewCibTest|
1786661563234|CPOutlineViewTest|
1786661563247|CPOutlineViewViewBasedCibTest|
1786661563259|CPPanelTest|
1786661563272|CPPlatformWindow|
1786661563285|CPPlattformWindowMinSize|
1786661563298|CPPopUpButtonBindings|
1786661563310|CPPopUpButtonTest|
1786661563323|CPPopover|
1786661563336|CPPredicateEditorCibTest|
1786661563349|CPProgressIndicator|
1786661563361|CPPropertyListSerializationTest|
1786661563374|CPRadioBindings|
1786661563387|CPRuleEditorCibTest|
1786661563400|CPRuleEditorTestI8N|
1786661563413|CPScrollView|
1786661563426|CPScrollView2|
1786661563438|CPSearchField|
1786661563451|CPSearchFieldPredicateBinding|
1786661563464|CPSegmentedControlBindings|
1786661563477|CPSegmentedControlTest|
1786661563490|CPSoundTest|
1786661563503|CPSplitViewDivider|
1786661563516|CPSplitViewTest|
1786661563528|CPStackViewTest|
1786661563541|CPStepperBindings|
1786661563554|CPStepperNibTest|
1786661563567|CPTabView2|
1786661563579|CPTabViewBindings|
1786661563592|CPTabViewNib|
1786661563605|CPTableViewGroupRows|
1786661563618|CPTextField|
1786661563631|CPTextFieldEditingStyleTest|
1786661563643|CPTextFieldHeightTest|
1786661563656|CPTextFieldMovementsTest|
1786661563669|CPTextFieldMultiline|
1786661563682|CPTextView|
1786661563695|CPTextViewCibTest|
1786661563707|CPTextViewDelegateAndNotifications|
1786661563720|CPTimeZone|
1786661563733|CPTokenFieldTest|
1786661563746|CPToolTip|
1786661563759|CPToolbarTest|
1786661563771|CPTreeControllerTest|
1786661563784|CPURLConnectionAsyncTest|
1786661563797|CPURLConnectionSynchronousTest|
1786661563810|CPUserDefaults|
1786661563822|CPUserDefaultsControllerTest|
1786661563835|CPUserNotificationTest|
1786661563848|CPViewController|
1786661563861|CPVisualEffectViewTest|
1786661563874|CPWebViewTest|
1786661563887|CPWebViewTest2|
1786661563900|CPWindowLiveResizeTest|
1786661563913|CPWindowMovableTest|
1786661563926|CPWindowResizeStyle|
1786661563939|ChildWindows|
1786661563951|CompilationTests|
1786661563964|ContinuouslyUpdatesValueBinding|
1786661563977|CopyAndPaste|
1786661563990|CrossOriginTest|
1786661564003|FF4096Test|
1786661564015|FontEnhancementTest|
1786661564028|FontMetricsExplorer|
1786661564041|KeyEquivalents|
1786661564054|KeyViewLoopTest|
1786661564066|KeyWindowInTheBackgroundActivation|
1786661564079|LayoutTest|
1786661564092|LoadTimeTest|
1786661564105|LongBindings|
1786661564118|MobileTest|
1786661564131|MultipleValueBindings|
1786661564144|NSBoxTest|
1786661564156|NSBrowserTest|
1786661564169|NewTextFieldBezel|
1786661564182|Nib2CibAlignment|
1786661564195|Nib2CibBaselineAlignementTest|
1786661564207|Nib2CibSubviewsOrderTest|
1786661564220|NibAppRemixed|
1786661564233|PatternFillTest|
1786661564246|PlatformWindows|
1786661564258|PopUpButtonEscTest|
1786661564271|ScalingTest|
1786661564284|ScalingTest2|
1786661564297|ScrollviewTheming|
1786661564309|SheetWindowOrderFrontIssue|
1786661564322|SimpleBindings2|
1786661564335|SmartFoldersDemo|
1786661564348|TableTest|
1786661564360|ThemeBrowser|
1786661564373|ThemeKitchenSink|
1786661564386|TrackingArea|
1786661564398|UndoRedoWithMenuUpdate|
1786661564411|UserlandNSTest|
1786661564424|layoutEphemeralSubviewTest|
1786661564437|loadDynamicFrameworks|
1786661564449|performKeyEquivalentTest|
1786661564462|predicateWithFormat|
1786661564475|resignFirstResponder-CPControlTextDidEndEditing|
1786661564488|sizeToFitFix|
1786760008412|ArrayController1|
1786760008426|ArrayControllerInitialSelectionTest|
1786760008440|ArrayControllerRemovingFirstTest|
1786760008454|AttachedSheet|
1786760008467|AttachedSheet2|
1786760008481|Bindings|
1786760008494|CGCanvasContext|
1786760008508|CGPath|
1786760008521|CPAlertTest|
1786760008535|CPAnimatablePropertyContainerTest|
1786760008548|CPAnimationContextTest|
1786760008562|CPAnimationTest|
1786760008575|CPBinder-echo-bug|
1786760008589|CPBoxCibTest|
1786760008603|CPBoxTest|
1786760008617|CPBrowserTest|
1786760008630|CPButtonBarTest|
1786760008644|CPButtonKeyEquivalentDefaultTest|
1786760008658|CPButtonTest|
1786760008672|CPByteCountFormatter|
1786760008685|CPCollectionViewNibTest|
1786760008699|CPColor-CPImage-description|
1786760008713|CPColorWellBindings|
1786760008726|CPComboBoxTest|
1786760008740|CPControlPerformClickExceptionTest|
1786760008753|CPControlSize|
1786760008767|CPCursor|
1786760008780|CPDateFormatterTest|
1786760008794|CPDatePickerTest|
1786760008807|CPDictionaryControllerTest|
1786760008821|CPDocumentControllerTest|
1786760008834|CPFormatterTest|
1786760008848|CPGraphicsTest|
1786760008861|CPImageAndTextViewImageScaling|
1786760008875|CPImageViewAlignmentScaling|
1786760008889|CPImageViewTest|
1786760008902|CPImageViewbindingsTest|
1786760008916|CPLevelIndicator|
1786760008929|CPLocalizationTest|
1786760008943|CPLogTest|
1786760008956|CPMarkdownParser|
1786760008970|CPMenuCALayerTest|
1786760008983|CPMenuEnabledBindingsTest|
1786760008997|CPMenuKeyEquivalents|
1786760009010|CPMenuRemoveAllTest|
1786760009024|CPMenuSubmenuPlacementConstraints|
1786760009037|CPMenuTest|
1786760009051|CPOutlineViewCibTest|
1786760009065|CPOutlineViewTest|
1786760009079|CPOutlineViewViewBasedCibTest|
1786760009092|CPPanelTest|
1786760009106|CPPlatformWindow|
1786760009120|CPPlattformWindowMinSize|
1786760009133|CPPopUpButtonBindings|
1786760009147|CPPopUpButtonTest|
1786760009160|CPPopover|
1786760009174|CPPredicateEditorCibTest|
1786760009187|CPProgressIndicator|
1786760009201|CPPropertyListSerializationTest|
1786760009214|CPRadioBindings|
1786760009227|CPRuleEditorCibTest|
1786760009241|CPRuleEditorTestI8N|
1786760009254|CPScrollView|
1786760009268|CPScrollView2|
1786760009282|CPSearchField|
1786760009295|CPSearchFieldPredicateBinding|
1786760009309|CPSegmentedControlBindings|
1786760009322|CPSegmentedControlTest|
1786760009336|CPSoundTest|
1786760009349|CPSplitViewDivider|
1786760009363|CPSplitViewTest|
1786760009376|CPStackViewTest|
1786760009390|CPStepperBindings|
1786760009404|CPStepperNibTest|
1786760009417|CPTabView2|
1786760009431|CPTabViewBindings|
1786760009444|CPTabViewNib|
1786760009458|CPTableViewGroupRows|
1786760009472|CPTextField|
1786760009485|CPTextFieldEditingStyleTest|
1786760009499|CPTextFieldHeightTest|
1786760009512|CPTextFieldMovementsTest|
1786760009526|CPTextFieldMultiline|
1786760009539|CPTextView|
1786760009553|CPTextViewCibTest|
1786760009566|CPTextViewDelegateAndNotifications|
1786760009580|CPTimeZone|
1786760009593|CPTokenFieldTest|
1786760009607|CPToolTip|
1786760009620|CPToolbarTest|
1786760009634|CPTreeControllerTest|
1786760009647|CPURLConnectionAsyncTest|
1786760009661|CPURLConnectionSynchronousTest|
1786760009674|CPUserDefaults|
1786760009688|CPUserDefaultsControllerTest|
1786760009702|CPUserNotificationTest|
1786760009715|CPViewController|
1786760009729|CPVisualEffectViewTest|
1786760009742|CPWebViewTest|
1786760009756|CPWebViewTest2|
1786760009769|CPWindowLiveResizeTest|
1786760009783|CPWindowMovableTest|
1786760009796|CPWindowResizeStyle|
1786760009809|ChildWindows|
1786760009823|CompilationTests|
1786760009837|ContinuouslyUpdatesValueBinding|
1786760009850|CopyAndPaste|
1786760009863|CrossOriginTest|
1786760009877|FF4096Test|
1786760009890|FontEnhancementTest|
1786760009904|FontMetricsExplorer|
1786760009917|KeyEquivalents|
1786760009931|KeyViewLoopTest|
1786760009944|KeyWindowInTheBackgroundActivation|
1786760009958|LayoutTest|
1786760009971|LoadTimeTest|
1786760009985|LongBindings|
1786760009998|MobileTest|
1786760010012|MultipleValueBindings|
1786760010025|NSBoxTest|
1786760010039|NSBrowserTest|
1786760010052|NewTextFieldBezel|
1786760010066|Nib2CibAlignment|
1786760010080|Nib2CibBaselineAlignementTest|
1786760010093|Nib2CibSubviewsOrderTest|
1786760010107|NibAppRemixed|
1786760010120|PatternFillTest|
1786760010133|PlatformWindows|
1786760010147|PopUpButtonEscTest|
1786760010160|ScalingTest|
1786760010174|ScalingTest2|
1786760010187|ScrollviewTheming|
1786760010201|SheetWindowOrderFrontIssue|
1786760010215|SimpleBindings2|
1786760010228|SmartFoldersDemo|
1786760010242|TableTest|
1786760010256|ThemeBrowser|
1786760010269|ThemeKitchenSink|
1786760010283|TrackingArea|
1786760010296|UndoRedoWithMenuUpdate|
1786760010310|UserlandNSTest|
1786760010323|layoutEphemeralSubviewTest|
1786760010337|loadDynamicFrameworks|
1786760010350|performKeyEquivalentTest|
1786760010363|predicateWithFormat|
1786760010377|resignFirstResponder-CPControlTextDidEndEditing|
1786760010390|sizeToFitFix|