Skip to content

Commit

Permalink
Update JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI authored and petermetz committed Jun 7, 2020
1 parent 56bc083 commit 3bec141
Show file tree
Hide file tree
Showing 7 changed files with 421 additions and 275 deletions.
180 changes: 90 additions & 90 deletions docs/jsdoc/Engines_Wine_Verbs_corefonts_script.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="page-title">Source: Engines/Wine/Verbs/corefonts/script.js</h1>
<article>
<pre class="prettyprint source linenums"><code>const Wine = include("engines.wine.engine.object");
const Resource = include("utils.functions.net.resource");
const {CabExtract} = include("utils.functions.filesystem.extract");
const { CabExtract } = include("utils.functions.filesystem.extract");

include("engines.wine.plugins.register_font");
include("engines.wine.verbs.luna");
Expand All @@ -39,98 +39,94 @@ <h1 class="page-title">Source: Engines/Wine/Verbs/corefonts/script.js</h1>
* @returns {Wine} Wine object
*/
Wine.prototype.corefonts = function () {
var fontResources =
[
new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/arial32.exe")
.checksum("6d75f8436f39ab2da5c31ce651b7443b4ad2916e")
.name("arial32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/arialb32.exe")
.checksum("d45cdab84b7f4c1efd6d1b369f50ed0390e3d344")
.name("arialb32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/comic32.exe")
.checksum("2371d0327683dcc5ec1684fe7c275a8de1ef9a51")
.name("comic32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/courie32.exe")
.checksum("06a745023c034f88b4135f5e294fece1a3c1b057")
.name("courie32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/georgi32.exe")
.checksum("90e4070cb356f1d811acb943080bf97e419a8f1e")
.name("georgi32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/impact32.exe")
.checksum("86b34d650cfbbe5d3512d49d2545f7509a55aad2")
.name("impact32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/times32.exe")
.checksum("20b79e65cdef4e2d7195f84da202499e3aa83060")
.name("times32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/trebuc32.exe ")
.checksum("50aab0988423efcc9cf21fac7d64d534d6d0a34a")
.name("trebuc32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/verdan32.exe ")
.checksum("f5b93cedf500edc67502f116578123618c64a42a")
.name("verdan32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/webdin32.exe ")
.checksum("2fb4a42c53e50bc70707a7b3c57baf62ba58398f")
.name("webdin32.exe")
.get()
];

var progressBar = this.wizard().progressBar(tr("Please wait..."));
const fontResources = [
new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/arial32.exe")
.checksum("6d75f8436f39ab2da5c31ce651b7443b4ad2916e")
.name("arial32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/arialb32.exe")
.checksum("d45cdab84b7f4c1efd6d1b369f50ed0390e3d344")
.name("arialb32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/comic32.exe")
.checksum("2371d0327683dcc5ec1684fe7c275a8de1ef9a51")
.name("comic32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/courie32.exe")
.checksum("06a745023c034f88b4135f5e294fece1a3c1b057")
.name("courie32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/georgi32.exe")
.checksum("90e4070cb356f1d811acb943080bf97e419a8f1e")
.name("georgi32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/impact32.exe")
.checksum("86b34d650cfbbe5d3512d49d2545f7509a55aad2")
.name("impact32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/times32.exe")
.checksum("20b79e65cdef4e2d7195f84da202499e3aa83060")
.name("times32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/trebuc32.exe ")
.checksum("50aab0988423efcc9cf21fac7d64d534d6d0a34a")
.name("trebuc32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/verdan32.exe ")
.checksum("f5b93cedf500edc67502f116578123618c64a42a")
.name("verdan32.exe")
.get(),

new Resource()
.wizard(this.wizard())
.url("https://mirrors.kernel.org/gentoo/distfiles/webdin32.exe ")
.checksum("2fb4a42c53e50bc70707a7b3c57baf62ba58398f")
.name("webdin32.exe")
.get()
];

const progressBar = this.wizard().progressBar(tr("Please wait..."));
progressBar.setText(tr("Installing {0}...", tr("fonts")));
progressBar.setProgressPercentage(0.);
progressBar.setProgressPercentage(0);

var numInstalledFonts = 0;

var that = this;
fontResources.forEach(function (fontResource) {
fontResources.reduce((numInstalledFonts, fontResource) => {
progressBar.setText(tr("Installing {0}...", tr("fonts")));
progressBar.setProgressPercentage(numInstalledFonts * 100 / fontResources.length);
progressBar.setProgressPercentage((numInstalledFonts * 100) / fontResources.length);

new CabExtract()
.archive(fontResource)
.wizard(null)
.to(that.fontDirectory())
.wizard(this.wizard())
.to(this.fontDirectory())
.extract();

numInstalledFonts++;
});
return numInstalledFonts + 1;
}, 0);

this.registerFont()
.set("Arial", "Arial.TTF")
Expand Down Expand Up @@ -163,27 +159,31 @@ <h1 class="page-title">Source: Engines/Wine/Verbs/corefonts/script.js</h1>
.set("Verdana Italic", "Verdanai.TTF")
.set("Webdings", "Webdings.TTF")
.do();

return this;
}
};

/**
* Verb to install corefonts
*/
// eslint-disable-next-line no-unused-vars
module.default = class CorefontsVerb {
constructor() {
// do nothing
}

install(container) {
var wine = new Wine();
const wine = new Wine();

wine.prefix(container);
var wizard = SetupWizard(InstallationType.VERBS, "corefonts", java.util.Optional.empty());

const wizard = SetupWizard(InstallationType.VERBS, "corefonts", java.util.Optional.empty());

wine.wizard(wizard);
wine.corefonts();

wizard.close();
}
}
};
</code></pre>
</article>
</section>
Expand Down
94 changes: 62 additions & 32 deletions docs/jsdoc/Engines_Wine_Verbs_d3dx10_script.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="page-title">Source: Engines/Wine/Verbs/d3dx10/script.js</h1>
<article>
<pre class="prettyprint source linenums"><code>const Wine = include("engines.wine.engine.object");
const Resource = include("utils.functions.net.resource");
const {CabExtract} = include("utils.functions.filesystem.extract");
const { CabExtract } = include("utils.functions.filesystem.extract");

include("engines.wine.plugins.override_dll");

Expand All @@ -38,91 +38,121 @@ <h1 class="page-title">Source: Engines/Wine/Verbs/d3dx10/script.js</h1>
* @returns {Wine} Wine object
*/
Wine.prototype.d3dx10 = function () {
var that = this;

var extractDirectXtoSystemDirectory = function (progressBar, filesToExtract, destination, pattern) {
var numberOfExtractedFiles = 0;
filesToExtract.forEach(function (cabFile) {
const extractDirectXtoSystemDirectory = (progressBar, filesToExtract, destination, pattern) => {
filesToExtract.reduce((numberOfExtractedFiles, cabFile) => {
print(tr("Extracting {0}...", cabFile));

progressBar.setText(tr("Extracting {0}...", "DirectX 10"));
progressBar.setProgressPercentage(numberOfExtractedFiles * 100 / filesToExtract.length);
progressBar.setProgressPercentage((numberOfExtractedFiles * 100) / filesToExtract.length);

new CabExtract()
.archive(that.prefixDirectory() + "/drive_c/d3dx10/" + cabFile)
.archive(this.prefixDirectory() + "/drive_c/d3dx10/" + cabFile)
.to(destination)
.extract(["-L", "-F", pattern]);

numberOfExtractedFiles++;
});
return numberOfExtractedFiles + 1;
}, 0);
};

var setupFile = new Resource()
const setupFile = new Resource()
.wizard(this.wizard())
.url("http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe")
.url(
"http://download.microsoft.com/download/8/4/A/84A35BF1-DAFE-4AE8-82AF-AD2AE20B6B14/directx_Jun2010_redist.exe"
)
.checksum("f8f1217f666bf2f6863631a7d5e5fb3a8d1542df")
.name("directx_Jun2010_redist.exe")
.get();

var progressBar = this.wizard().progressBar(tr("Please wait..."));
const progressBar = this.wizard().progressBar(tr("Please wait..."));
progressBar.setText(tr("Extracting {0}...", "DirectX 10"));
progressBar.setProgressPercentage(0.);
progressBar.setProgressPercentage(0);

new CabExtract()
.archive(setupFile)
.to(this.prefixDirectory() + "/drive_c/d3dx10/")
.extract(["-L", "-F", "*d3dx10*x86*"]);

var filesToExtractx86 = [
"apr2007_d3dx10_33_x86.cab", "aug2007_d3dx10_35_x86.cab", "aug2008_d3dx10_39_x86.cab",
"aug2009_d3dx10_42_x86.cab", "dec2006_d3dx10_00_x86.cab", "jun2007_d3dx10_34_x86.cab",
"jun2008_d3dx10_38_x86.cab", "jun2010_d3dx10_43_x86.cab", "mar2008_d3dx10_37_x86.cab",
"mar2009_d3dx10_41_x86.cab", "nov2007_d3dx10_36_x86.cab", "nov2008_d3dx10_40_x86.cab"
const filesToExtractx86 = [
"apr2007_d3dx10_33_x86.cab",
"aug2007_d3dx10_35_x86.cab",
"aug2008_d3dx10_39_x86.cab",
"aug2009_d3dx10_42_x86.cab",
"dec2006_d3dx10_00_x86.cab",
"jun2007_d3dx10_34_x86.cab",
"jun2008_d3dx10_38_x86.cab",
"jun2010_d3dx10_43_x86.cab",
"mar2008_d3dx10_37_x86.cab",
"mar2009_d3dx10_41_x86.cab",
"nov2007_d3dx10_36_x86.cab",
"nov2008_d3dx10_40_x86.cab"
];
extractDirectXtoSystemDirectory(progressBar, filesToExtractx86, that.system32directory(), "d3dx10*.dll");

extractDirectXtoSystemDirectory(progressBar, filesToExtractx86, this.system32directory(), "d3dx10*.dll");

if (this.architecture() == "amd64") {
new CabExtract()
.archive(setupFile)
.to(this.prefixDirectory() + "/drive_c/d3dx10/")
.extract(["-L", "-F", "*d3dx10*x64*"]);

var filesToExtractx64 = [
"apr2007_d3dx10_33_x64.cab", "aug2007_d3dx10_35_x64.cab", "aug2008_d3dx10_39_x64.cab",
"aug2009_d3dx10_42_x64.cab", "dec2006_d3dx10_00_x64.cab", "jun2007_d3dx10_34_x64.cab",
"jun2008_d3dx10_38_x64.cab", "jun2010_d3dx10_43_x64.cab", "mar2008_d3dx10_37_x64.cab",
"mar2009_d3dx10_41_x64.cab", "nov2007_d3dx10_36_x64.cab", "nov2008_d3dx10_40_x64.cab"
const filesToExtractx64 = [
"apr2007_d3dx10_33_x64.cab",
"aug2007_d3dx10_35_x64.cab",
"aug2008_d3dx10_39_x64.cab",
"aug2009_d3dx10_42_x64.cab",
"dec2006_d3dx10_00_x64.cab",
"jun2007_d3dx10_34_x64.cab",
"jun2008_d3dx10_38_x64.cab",
"jun2010_d3dx10_43_x64.cab",
"mar2008_d3dx10_37_x64.cab",
"mar2009_d3dx10_41_x64.cab",
"nov2007_d3dx10_36_x64.cab",
"nov2008_d3dx10_40_x64.cab"
];

extractDirectXtoSystemDirectory(progressBar, filesToExtractx64, that.system64directory(), "d3dx10*.dll");
extractDirectXtoSystemDirectory(progressBar, filesToExtractx64, this.system64directory(), "d3dx10*.dll");
}

this.overrideDLL()
.set("native", [
"d3dx10_33", "d3dx10_34", "d3dx10_35", "d3dx10_36", "d3dx10_37", "d3dx10_38",
"d3dx10_39", "d3dx10_40", "d3dx10_41", "d3dx10_42", "d3dx10_43"
"d3dx10_33",
"d3dx10_34",
"d3dx10_35",
"d3dx10_36",
"d3dx10_37",
"d3dx10_38",
"d3dx10_39",
"d3dx10_40",
"d3dx10_41",
"d3dx10_42",
"d3dx10_43"
])
.do();

return this;
};

/**
* Verb to install D3DX10
*/
// eslint-disable-next-line no-unused-vars
module.default = class D3DX10Verb {
constructor() {
// do nothing
}

install(container) {
var wine = new Wine();
const wine = new Wine();

wine.prefix(container);
var wizard = SetupWizard(InstallationType.VERBS, "d3dx10", java.util.Optional.empty());

const wizard = SetupWizard(InstallationType.VERBS, "d3dx10", java.util.Optional.empty());

wine.wizard(wizard);
wine.d3dx10();

wizard.close();
}
}
};
</code></pre>
</article>
</section>
Expand Down
Loading

0 comments on commit 3bec141

Please sign in to comment.