-
Notifications
You must be signed in to change notification settings - Fork 47
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
Add Adobeair #801
Merged
Merged
Add Adobeair #801
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
27ae016
Adobe air script
d8a8395
Adobe air script
b443de0
Adobe air script
f06847f
Fix: use of windows XP
01bdd46
Fix: use of windows XP
5e21dcc
Unset of windows version
032f9dd
Aligned JSON
1f7c278
Changed adobe air name
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 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 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,42 @@ | ||
include(["engines", "wine", "engine", "object"]); | ||
include(["utils", "functions", "net", "resource"]); | ||
include(["engines", "wine", "plugins", "windows_version"]); | ||
|
||
/** | ||
* Verb to install adobeair | ||
* @returns {Wine} Wine object | ||
*/ | ||
Wine.prototype.adobeair = function () { | ||
var adobeair = new Resource() | ||
.wizard(this.wizard()) | ||
.url("https://airdownload.adobe.com/air/win/download/latest/AdobeAIRInstaller.exe") | ||
.checksum("68d26cca4c6c8230d3f7aa850ee227d518288dfc") | ||
.name("AdobeAIRInstaller.exe") | ||
.get(); | ||
|
||
// Using Windows XP to workaround the wine bug 43506 | ||
// See https://bugs.winehq.org/show_bug.cgi?id=43506 | ||
var currentWindowsVersion = this.windowsVersion(); | ||
this.windowsVersion("winxp"); | ||
this.run(adobeair).wait(); | ||
this.windowsVersion(currentWindowsVersion); | ||
|
||
return this; | ||
}; | ||
|
||
/** | ||
* Verb to install adobeair | ||
*/ | ||
var verbImplementation = { | ||
install: function (container) { | ||
var wine = new Wine(); | ||
wine.prefix(container); | ||
var wizard = SetupWizard(InstallationType.VERBS, "adobeair", java.util.Optional.empty()); | ||
wine.wizard(wizard); | ||
wine.adobeair(); | ||
wizard.close(); | ||
} | ||
}; | ||
|
||
/* exported Verb */ | ||
var Verb = Java.extend(org.phoenicis.engines.Verb, verbImplementation); |
This file contains 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" : "Adobe Air", | ||
"id" : "adobeair", | ||
"compatibleOperatingSystems" : [ | ||
"MACOSX", | ||
"LINUX" | ||
], | ||
"testingOperatingSystems" : [], | ||
"free" : true, | ||
"requiresPatch" : false | ||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is the same, so you could actually change the code to:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it is not if you look well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah the "-" in front of HKEY is different. Didn't see that.
Still would prefer
over
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure because if version is undefined, then, we switch back to the getter. The I think in this particular case, we really need version to be explicitely null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. It's not so nice from an API perspective.