-
Notifications
You must be signed in to change notification settings - Fork 46
Update gdiplus verb #1121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update gdiplus verb #1121
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
06ad52f
Merge pull request #1 from PhoenicisOrg/master
ImperatorS79 86fd07c
Update script.js
ImperatorS79 a6f232b
Merge pull request #2 from PhoenicisOrg/master
ImperatorS79 a80aa84
Merge pull request #3 from PhoenicisOrg/master
ImperatorS79 6da4a59
Merge pull request #4 from PhoenicisOrg/master
ImperatorS79 4a11f65
Merge pull request #8 from PhoenicisOrg/master
ImperatorS79 b2d5724
Merge pull request #9 from PhoenicisOrg/master
ImperatorS79 b7d1f0f
Merge pull request #10 from PhoenicisOrg/master
ImperatorS79 533df6e
Merge pull request #11 from PhoenicisOrg/master
ImperatorS79 186e4ed
Merge pull request #12 from PhoenicisOrg/master
ImperatorS79 99cf1db
Merge pull request #13 from PhoenicisOrg/master
ImperatorS79 87999b4
Merge pull request #15 from PhoenicisOrg/master
ImperatorS79 610b258
Merge pull request #16 from PhoenicisOrg/master
ImperatorS79 ad2ea01
Merge pull request #17 from PhoenicisOrg/master
ImperatorS79 2e53a22
Merge pull request #18 from PhoenicisOrg/master
ImperatorS79 10f93ca
Merge pull request #20 from PhoenicisOrg/master
ImperatorS79 ade899d
Merge pull request #21 from PhoenicisOrg/master
ImperatorS79 db6e1b9
Merge pull request #23 from PhoenicisOrg/master
ImperatorS79 da1a517
Merge pull request #26 from PhoenicisOrg/master
ImperatorS79 72863e6
Merge pull request #28 from PhoenicisOrg/master
ImperatorS79 f812551
Merge pull request #33 from PhoenicisOrg/master
ImperatorS79 e4fd56f
Update gdiplus verb (winetricks)
ImperatorS79 80eb8dc
Add gdiplus_winxp verb
ImperatorS79 5de1fed
Create script.json
ImperatorS79 7de730a
Update script.js
ImperatorS79 a326f62
Update script.js
ImperatorS79 1038683
Update script.js
ImperatorS79 31aa000
Update script.json
ImperatorS79 5c2d54e
Update script.js
ImperatorS79 1838683
Update script.js
ImperatorS79 e9defca
Update script.js
ImperatorS79 a4a79b0
Update script.js
ImperatorS79 41fef90
Merge branch 'master' into gdipl
ImperatorS79 464f444
Update script.js
ImperatorS79 f3c976b
Update script.js
ImperatorS79 511bdf5
Update script.js
ImperatorS79 0e93a22
Update script.js
ImperatorS79 cfb8c97
Update script.js
ImperatorS79 45b32c8
Update script.js
ImperatorS79 b214dc3
Update script.js
ImperatorS79 bb60942
Update script.js
ImperatorS79 4ac5064
Update script.js
ImperatorS79 7db65fb
Update script.js
ImperatorS79 2570942
Update script.js
ImperatorS79 d17faf6
Update script.js
ImperatorS79 780c97a
Update script.js
ImperatorS79 eb0950e
Update script.js
ImperatorS79 1d7e793
Update script.js
ImperatorS79 b080ae8
Update script.js
ImperatorS79 5eaf186
Update script.js
ImperatorS79 7f1925b
Update script.js
ImperatorS79 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
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 Optional = Java.type("java.util.Optional"); | ||
|
||
include("engines.wine.plugins.override_dll"); | ||
|
||
/** | ||
* Verb to install gdiplus (windows xp) | ||
* | ||
* @returns {Wine} Wine object | ||
*/ | ||
class GDIPlusWinXP { | ||
constructor(wine) { | ||
this.wine = wine; | ||
} | ||
|
||
go() { | ||
const wizard = this.wine.wizard(); | ||
const prefixDirectory = this.wine.prefixDirectory(); | ||
const system32directory = this.wine.system32directory(); | ||
|
||
const setupFile = new Resource() | ||
.wizard(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) | ||
ImperatorS79 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.wizard(wizard) | ||
.to(`${prefixDirectory}/drive_c/gdiplus/`) | ||
.extract(["-F", "FL_gdiplus_dll_____X86.3643236F_FC70_11D3_A536_0090278A1BB8"]); | ||
|
||
new CabExtract() | ||
.archive(setupFile) | ||
ImperatorS79 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.wizard(wizard) | ||
.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/`); | ||
|
||
this.wine | ||
.overrideDLL() | ||
.set("native", ["gdiplus"]) | ||
.do(); | ||
} | ||
|
||
static install(container) { | ||
const wine = new Wine(); | ||
const wizard = SetupWizard(InstallationType.VERBS, "gdiplus (windows xp)", Optional.empty()); | ||
|
||
wine.prefix(container); | ||
wine.wizard(wizard); | ||
|
||
new GDIPlusWinXP(wine).go(); | ||
|
||
wizard.close(); | ||
} | ||
} | ||
|
||
module.default = GDIPlusWindowsXP; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"scriptName" : "gdiplus_winxp", | ||
"id" : "engines.wine.verbs.gdiplus_winxp", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [], | ||
"free" : true, | ||
"requiresPatch" : false | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.