Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
06ad52f
Merge pull request #1 from PhoenicisOrg/master
ImperatorS79 Aug 28, 2017
86fd07c
Update script.js
ImperatorS79 Aug 28, 2017
a6f232b
Merge pull request #2 from PhoenicisOrg/master
ImperatorS79 Aug 28, 2017
a80aa84
Merge pull request #3 from PhoenicisOrg/master
ImperatorS79 Sep 26, 2017
6da4a59
Merge pull request #4 from PhoenicisOrg/master
ImperatorS79 Mar 19, 2018
4a11f65
Merge pull request #8 from PhoenicisOrg/master
ImperatorS79 Apr 9, 2018
b2d5724
Merge pull request #9 from PhoenicisOrg/master
ImperatorS79 May 7, 2018
b7d1f0f
Merge pull request #10 from PhoenicisOrg/master
ImperatorS79 May 13, 2018
533df6e
Merge pull request #11 from PhoenicisOrg/master
ImperatorS79 May 22, 2018
186e4ed
Merge pull request #12 from PhoenicisOrg/master
ImperatorS79 May 29, 2018
99cf1db
Merge pull request #13 from PhoenicisOrg/master
ImperatorS79 Jun 13, 2018
87999b4
Merge pull request #15 from PhoenicisOrg/master
ImperatorS79 Oct 10, 2018
610b258
Merge pull request #16 from PhoenicisOrg/master
ImperatorS79 Oct 12, 2018
ad2ea01
Merge pull request #17 from PhoenicisOrg/master
ImperatorS79 Jan 12, 2019
2e53a22
Merge pull request #18 from PhoenicisOrg/master
ImperatorS79 Jan 18, 2019
10f93ca
Merge pull request #20 from PhoenicisOrg/master
ImperatorS79 Feb 2, 2019
ade899d
Merge pull request #21 from PhoenicisOrg/master
ImperatorS79 Feb 27, 2019
db6e1b9
Merge pull request #23 from PhoenicisOrg/master
ImperatorS79 May 9, 2019
da1a517
Merge pull request #26 from PhoenicisOrg/master
ImperatorS79 May 20, 2019
72863e6
Merge pull request #28 from PhoenicisOrg/master
ImperatorS79 Jun 2, 2019
f812551
Merge pull request #33 from PhoenicisOrg/master
ImperatorS79 Aug 24, 2019
e4fd56f
Update gdiplus verb (winetricks)
ImperatorS79 Sep 9, 2019
80eb8dc
Add gdiplus_winxp verb
ImperatorS79 Sep 9, 2019
5de1fed
Create script.json
ImperatorS79 Sep 9, 2019
7de730a
Update script.js
ImperatorS79 Sep 9, 2019
a326f62
Update script.js
ImperatorS79 Sep 9, 2019
1038683
Update script.js
ImperatorS79 Sep 9, 2019
31aa000
Update script.json
ImperatorS79 Sep 10, 2019
5c2d54e
Update script.js
ImperatorS79 Sep 10, 2019
1838683
Update script.js
ImperatorS79 Sep 10, 2019
e9defca
Update script.js
ImperatorS79 Sep 10, 2019
a4a79b0
Update script.js
ImperatorS79 Sep 10, 2019
41fef90
Merge branch 'master' into gdipl
ImperatorS79 Sep 10, 2019
464f444
Update script.js
ImperatorS79 Sep 10, 2019
f3c976b
Update script.js
ImperatorS79 Sep 10, 2019
511bdf5
Update script.js
ImperatorS79 Sep 10, 2019
0e93a22
Update script.js
ImperatorS79 Sep 10, 2019
cfb8c97
Update script.js
ImperatorS79 Sep 10, 2019
45b32c8
Update script.js
ImperatorS79 Sep 11, 2019
b214dc3
Update script.js
ImperatorS79 Sep 11, 2019
bb60942
Update script.js
ImperatorS79 Sep 11, 2019
4ac5064
Update script.js
ImperatorS79 Sep 11, 2019
7db65fb
Update script.js
ImperatorS79 Sep 11, 2019
2570942
Update script.js
ImperatorS79 Sep 11, 2019
d17faf6
Update script.js
ImperatorS79 Sep 11, 2019
780c97a
Update script.js
ImperatorS79 Sep 11, 2019
eb0950e
Update script.js
ImperatorS79 Sep 11, 2019
1d7e793
Update script.js
ImperatorS79 Sep 11, 2019
b080ae8
Update script.js
ImperatorS79 Sep 11, 2019
5eaf186
Update script.js
ImperatorS79 Sep 11, 2019
7f1925b
Update script.js
ImperatorS79 Sep 11, 2019
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
Prev Previous commit
Next Next commit
Update script.js
  • Loading branch information
ImperatorS79 authored Sep 10, 2019
commit 464f44442dbb2adc641a71b8b17d24dc28bca50f
80 changes: 46 additions & 34 deletions Engines/Wine/Verbs/gdiplus_winxp/script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const Wine = include("engines.wine.engine.object");
const Resource = include("utils.functions.net.resource");
const {CabExtract} = include("utils.functions.filesystem.extract");
const {remove, cat, writeToFile} = include("utils.functions.filesystem.files");
const { CabExtract } = include("utils.functions.filesystem.extract");
const { remove, cat, writeToFile } = include("utils.functions.filesystem.files");

const Optional = Java.type("java.util.Optional");

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

Expand All @@ -10,46 +12,56 @@ include("engines.wine.plugins.override_dll");
*
* @returns {Wine} Wine object
*/
Wine.prototype.gdiplusWinXP = function () {
const setupFile = new Resource()
.wizard(this.wizard())
.url("https://download.microsoft.com/download/1/4/6/1467c2ba-4d1f-43ad-8d9b-3e8bc1c6ac3d/NDP1.0sp2-KB830348-X86-Enu.exe")
.checksum("6113cd89d77525958295ccbd73b5fb8b89abd0aa")
.name("NDP1.0sp2-KB830348-X86-Enu.exe")
.get();

new CabExtract()
.archive(setupFile)
.to(this.prefixDirectory() + "/drive_c/gdiplus/")
.extract(["-F", "FL_gdiplus_dll_____X86.3643236F_FC70_11D3_A536_0090278A1BB8"]);

const content = cat(this.prefixDirectory() + "/drive_c/gdiplus/FL_gdiplus_dll_____X86.3643236F_FC70_11D3_A536_0090278A1BB8");
writeToFile(this.system32directory() + "/gdiplus.dll", content);

remove(this.prefixDirectory() + "/drive_c/gdiplus/");
class GDIPlusWinXP {
constructor(wine) {
this.wine = wine;
}

this.overrideDLL()
.set("native", ["gdiplus"])
.do();
go() {
const wizard = this.wine.wizard();
const prefixDirectory = this.wine.prefixDirectory();
const system32directory = this.wine.system32directory();
const system64directory = this.wine.system64directory();
const architecture = this.wine.architecture();

return this;
};
const setupFile = new Resource()
.wizard(this.wizard())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.wizard() does not exist

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got the same thing in adobe air verb

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by you got the same thing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also this.wizard in adobe air verb ^^

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I most likely overlooked it. It shouldn't work because the verb classes don't define a wizard member field/method. wine does.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can update it in this PR too.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do so

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you are at it can you search the repository for this.wizard()? This shouldn't appear anywhere in the installers or the verbs.

.url("https://download.microsoft.com/download/1/4/6/1467c2ba-4d1f-43ad-8d9b-3e8bc1c6ac3d/NDP1.0sp2-KB830348-X86-Enu.exe")
.checksum("6113cd89d77525958295ccbd73b5fb8b89abd0aa")
.name("NDP1.0sp2-KB830348-X86-Enu.exe")
.get();

new CabExtract()
.archive(setupFile)
Comment thread
ImperatorS79 marked this conversation as resolved.
.to(`${prefixDirectory}/drive_c/gdiplus/`)
.extract(["-F", "FL_gdiplus_dll_____X86.3643236F_FC70_11D3_A536_0090278A1BB8"]);

new CabExtract()
.archive(setupFile)
Comment thread
ImperatorS79 marked this conversation as resolved.
.to(`${prefixDirectory}/drive_c/gdiplus/`)
.extract(["-L", "-F", "x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.17514_none_72d18a4386696c80/gdiplus.dll"]);

const content = cat(`${prefixDirectory}/drive_c/gdiplus/drive_c/gdiplus/FL_gdiplus_dll_____X86.3643236F_FC70_11D3_A536_0090278A1BB8`);
writeToFile(`${system32directory}/gdiplus.dll`, content);

remove(`${prefixDirectory}/drive_c/gdiplus/`);

/**
* Verb to install gdiplus
*/
// eslint-disable-next-line no-unused-vars
module.default = class GdiplusWinXPVerb {
constructor() {
// do nothing
this.overrideDLL()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.wine.overrideDLL()

.set("native", ["gdiplus"])
.do();
}

install(container) {
static install(container) {
const wine = new Wine();
const wizard = SetupWizard(InstallationType.VERBS, "gdiplus (windows xp)", Optional.empty());

wine.prefix(container);
const wizard = SetupWizard(InstallationType.VERBS, "gdiplus (windows xp)", java.util.Optional.empty());
wine.wizard(wizard);
wine.gdiplus_winxp();

new GDIPlusWinXP(wine).go();

wizard.close();
}
}

module.default = GDIPlusWindowsXP;