Skip to content
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

show miniature when installing an application #372

Merged
merged 2 commits into from
Aug 26, 2017
Merged
Show file tree
Hide file tree
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
8 changes: 5 additions & 3 deletions Applications/Internet/Internet Explorer 6.0/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ include(["Engines", "Wine", "Shortcuts", "Wine"]);
include(["Utils", "Functions", "Apps", "Resources"]);
include(["Engines", "Wine", "Verbs", "msls31"]);

var setupWizard = SetupWizard("Internet Explorer 6.0");
var appsManager = Bean("repositoryManager");
var application = appsManager.getApplication(["Applications", "Internet", "Internet Explorer 6.0"]);
var setupWizard = SetupWizardWithMiniature("Internet Explorer 6.0", application.getMainMiniature());

setupWizard.presentation("Internet Explorer 6.0", "Microsoft", "http://www.microsoft.com", "Quentin PÂRIS");

Expand Down Expand Up @@ -81,10 +83,10 @@ new WineShortcut()
.name("Internet Explorer 6.0")
.prefix("InternetExplorer6")
.search("iexplore.exe")
.miniature(["Internet", "Internet Explorer 6.0"])
.miniature(["Applications", "Internet", "Internet Explorer 6.0"])
.create();

var registrySettings = new AppResource().application(["Internet", "Internet Explorer 6.0"]).get("ie6.reg");
var registrySettings = new AppResource().application(["Applications", "Internet", "Internet Explorer 6.0"]).get("ie6.reg");
wine.regedit().patch(registrySettings);

setupWizard.close();
6 changes: 4 additions & 2 deletions Applications/Internet/Internet Explorer 7.0/Online/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ include(["Engines", "Wine", "Shortcuts", "Wine"]);
include(["Utils", "Functions", "Apps", "Resources"]);
include(["Engines", "Wine", "Verbs", "sandbox"]);

var setupWizard = SetupWizard("Internet Explorer 7.0");
var appsManager = Bean("repositoryManager");
var application = appsManager.getApplication(["Applications", "Internet", "Internet Explorer 7.0"]);
var setupWizard = SetupWizardWithMiniature("Internet Explorer 7.0", application.getMainMiniature());

setupWizard.presentation("Internet Explorer 7.0", "Microsoft", "http://www.microsoft.com", "Quentin PÂRIS");

Expand Down Expand Up @@ -221,7 +223,7 @@ new WineShortcut()
.name("Internet Explorer 7.0")
.prefix("InternetExplorer7")
.search("iexplore.exe")
.miniature(["Internet", "Internet Explorer 7.0"])
.miniature(["Applications", "Internet", "Internet Explorer 7.0"])
.create();

setupWizard.close();
5 changes: 4 additions & 1 deletion Engines/Wine/QuickScript/InstallerScript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ InstallerScript.prototype.constructor = InstallerScript;

InstallerScript.prototype.go = function() {
this._name = this._name || "Custom Installer";
var setupWizard = SetupWizard(this._name);

var appsManager = Bean("repositoryManager");
var application = appsManager.getApplication([this._type, this._category, this._name]);
var setupWizard = SetupWizardWithMiniature(this._name, application.getMainMiniature());

// if no name given, ask user
if (this._name == "Custom Installer") {
Expand Down
4 changes: 3 additions & 1 deletion Engines/Wine/QuickScript/SteamScript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ SteamScript.prototype.go = function() {
this._executableArgs = ["-silent", "-applaunch", this._appId];
}

var setupWizard = SetupWizard(this._name);
var appsManager = Bean("repositoryManager");
var application = appsManager.getApplication([this._type, this._category, this._name]);
var setupWizard = SetupWizardWithMiniature(this._name, application.getMainMiniature());

setupWizard.presentation(this._name, this._editor, this._applicationHomepage, this._author);

Expand Down
4 changes: 3 additions & 1 deletion Engines/Wine/QuickScript/UplayScript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ UplayScript.prototype.go = function() {
this._executableArgs = ["uplay://launch/" + this._appId + "/0"];
}

var setupWizard = SetupWizard(this._name);
var appsManager = Bean("repositoryManager");
var application = appsManager.getApplication([this._type, this._category, this._name]);
var setupWizard = SetupWizardWithMiniature(this._name, application.getMainMiniature());

setupWizard.presentation(this._name, this._editor, this._applicationHomepage, this._author);

Expand Down
4 changes: 3 additions & 1 deletion Engines/Wine/QuickScript/ZipScript/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ ZipScript.prototype.checksum = function(checksum) {
};

ZipScript.prototype.go = function() {
var setupWizard = SetupWizard(this._name);
var appsManager = Bean("repositoryManager");
var application = appsManager.getApplication([this._type, this._category, this._name]);
var setupWizard = SetupWizardWithMiniature(this._name, application.getMainMiniature());

setupWizard.presentation(this._name, this._editor, this._applicationHomepage, this._author);

Expand Down