Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public override bool Execute()

var titleElement = new XElement("title", $"{ProductBrandName} ({TargetArchitecture})");

var archScriptContent = @"<![CDATA[
function IsX64Machine() {
var archScriptContent = @"function IsX64Machine() {
var machine = system.sysctl(""hw.machine"");
var cputype = system.sysctl(""hw.cputype"");
var cpu64 = system.sysctl(""hw.cpu64bit_capable"");
Expand All @@ -59,9 +58,8 @@ function IsX64Machine() {
result = result && (translated != ""1"");
system.log(""IsX64Machine: "" + result);
return result;
}
]]>";
var scriptElement = new XElement("script", new XText(archScriptContent));
}";
var scriptElement = new XElement("script", new XCData(archScriptContent));

var choiceElements = BundledPackages
.Select(component => new XElement("choice",
Expand Down