From 86fd07c3fc124698e868509b2123884b2e8c3bfa Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Mon, 28 Aug 2017 15:32:29 +0200 Subject: [PATCH 01/11] Update script.js --- Applications/Games/Hearthstone/Online/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Applications/Games/Hearthstone/Online/script.js b/Applications/Games/Hearthstone/Online/script.js index a7998c4920..a5feeb11ca 100644 --- a/Applications/Games/Hearthstone/Online/script.js +++ b/Applications/Games/Hearthstone/Online/script.js @@ -5,11 +5,11 @@ include(["Engines", "Wine", "Verbs", "corefonts"]); new OnlineInstallerScript() .name("Hearthstone") .editor("Blizzard") - .applicationHomepage("http://eu.battle.net/en/app/") + .applicationHomepage("https://eu.battle.net/hearthstone/") .author("ImperatorS79") - .url("https://www.battle.net/download/getInstallerForGame?os=win&locale=enGB&version=LIVE&gameProgram=BATTLENET_APP.exe") + .url("https://eu.battle.net/download/getInstaller?os=win&installer=Hearthstone-Setup.exe") .category("Games") - .executable("Battle.net.exe") + .executable("Hearthstone.exe") .wineVersion("2.15") .wineDistribution("staging") .preInstall(function(wine, wizard) { From 28e3ac5cdc807977fe94a92440f4d9ec79195fec Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Sat, 24 Aug 2019 21:20:10 +0200 Subject: [PATCH 02/11] Update script.js --- .../Games/League of Legends/Online/script.js | 96 ++++++------------- 1 file changed, 31 insertions(+), 65 deletions(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 30590ba83d..7522b1875c 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -1,28 +1,22 @@ const CustomInstallerScript = include("engines.wine.quick_script.custom_installer_script"); const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); -const {fileName, mkdir, writeToFile} = include("utils.functions.filesystem.files"); const Resource = include("utils.functions.net.resource"); -include("engines.wine.plugins.csmt"); -include("engines.wine.plugins.override_dll"); -include("engines.wine.plugins.windows_version"); -include("engines.wine.verbs.sandbox"); -include("engines.wine.verbs.d3dx9"); +include("engines.wine.verbs.corefonts"); +include("engines.wine.verbs.d9vk"); -// Installs League of Legends new CustomInstallerScript() .name("League of Legends") .editor("Riot Games") .applicationHomepage("http://leagueoflegends.com/") - .author("Plata, feanor12, Thog") + .author("Plata, feanor12, Thog, TheRuntimeIsNotWorkingRey, ImperatorS79, Zemogiter, Kreyren") .installationCommand(function (wizard) { - // Select the region and download the setup file - //////////////////////////////////////////////// - var regions = [ - "EU West", + /// Select the region and download the setup file + const regions = [ + "EU West", "Latin America North", - "Latin America South", + //"Latin America South", URL not found "Oceania", "Japan", "Turkey", @@ -31,88 +25,60 @@ new CustomInstallerScript() "North America", "Russia" ]; - var selectedRegion = wizard.menu(tr("Select your region:"), regions); - var regionID, url, sha1; - var baseUrl = "https://riotgamespatcher-a.akamaihd.net/ShellInstaller/"; - switch (selectedRegion.text) { + const selectedRegion = wizard.menu(tr("Select your region:"), regions); + const baseUrl = "https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20"; + let url, regionID; + switch (selectedRegion.text){ case "EU West": regionID = "EUW"; - url = baseUrl + "EUW/LeagueofLegends_EUW_Installer_2016_11_10.exe"; - sha1 = "e8cb081395849f3753f8c00d558901b8c3df69e3"; - break; - case "Latin America North": - regionID = "LA1"; - url = baseUrl + "LA1/LeagueofLegends_LA1_Installer_2016_05_26.exe"; - sha1 = "996ece64ba2ba9c8b9195c3519a6d7637d82b8d3"; - break; - case "Latin America South": - regionID = "LA2"; - url = baseUrl + "LA2/LeagueofLegends_LA2_Installer_2016_05_27.exe"; - sha1 = "5c5e007ee266315b6433dd87e6692753170aab78"; - break; - case "Oceania": - regionID = "OC1"; - url = baseUrl + "OC1/LeagueofLegends_OC1_Installer_2016_05_13.exe"; - sha1 = "74b9a327e66fc527edb86e9ea45c9798bdffec5f"; + url = baseUrl+"EUW.exe"; break; case "Japan": regionID = "JP"; - url = baseUrl + "JP/LeagueofLegends_JP_Installer_2016_05_31.exe"; - sha1 = "da25b973358837ef9abbb9cb3d55aae214a75de0"; + url = baseUrl+"JP.exe"; break; case "Turkey": regionID = "TR"; - url = baseUrl + "TR/LeagueofLegends_TR_Installer_2016_11_08.exe"; - sha1 = "93fe9b3e581fa5cd41c504ef91ce55e4227b43e3"; + url = baseUrl+"TR.exe"; break; case "Brasil": regionID = "BR"; - url = baseUrl + "BR/LeagueofLegends_BR_Installer_2016_05_13.exe"; - sha1 = "fbef6186cb690b4259e63d53d8c73e556e1d5ddc"; + url = baseUrl+"BR.exe"; break; case "EU Nordic & East": regionID = "EUNE"; - url = baseUrl + "EUNE/LeagueofLegends_EUNE_Installer_2016_11_10.exe"; - sha1 = "17727c665ce59e3faf95c2c0db2fe5509383e750"; + url = baseUrl+"EUNE.exe"; break; case "North America": regionID = "NA"; - url = baseUrl + "NA/LeagueofLegends_NA_Installer_2016_05_13.exe"; - sha1 = "70a253f29351f1d6952fa1af39fb8b2b01bc6cde"; + url = baseUrl+"NA.exe"; break; case "Russia": regionID = "RU"; - url = baseUrl + "RU/LeagueofLegends_RU_Installer_2016_05_13.exe"; - sha1 = "2d462decf629cab880386407598f9c5ea6db2ef5"; + url = baseUrl+"RU.exe"; + break; + case "Oceania": + regionID = "OCE1"; + url = baseUrl+"OCE1.exe"; + break; + case "Latin America North": + regionID = "LA1"; + url = baseUrl+"LA1.exe"; break; } var setupFile = new Resource() .wizard(wizard) .url(url) - .checksum(sha1) - .name(fileName(url)) + .name("League%20of%20Legends%20installer%20" + regionID + ".exe") .get(); - return { command: setupFile, args: ["--installdir", "C:\\LoL\\", "--mode", "unattended"] }; + return {command: setupFile}; }) + .executable("LeagueClient.exe") .category("Games") .wineDistribution("staging") .wineVersion(LATEST_STAGING_VERSION) .preInstall(function (wine /*, wizard*/) { - wine.windowsVersion("winxp"); - wine.d3dx9(); - wine - .overrideDLL() - .set("native, builtin", ["atl120", "msvcp120", "msvcr120", "vcomp120", "msvcp140"]) - .do(); - wine.enableCSMT(); - - mkdir(wine.prefixDirectory() + "drive_c/LoL"); - - // Create run script to start the right exe - ///////////////////////////////////////// - var client = wine.prefixDirectory() + "drive_c/LoL/run.bat"; - var batContent = "start C:\\LoL\\LeagueClient.exe"; - writeToFile(client, batContent); + wine.corefonts(); + wine.D9VK(); }) - .executable("run.bat"); From 828aadf49acd85a20528b59dc27f263c33c5e4a7 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Sun, 25 Aug 2019 12:05:47 +0200 Subject: [PATCH 03/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 7522b1875c..e95892fbdb 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -14,7 +14,7 @@ new CustomInstallerScript() .installationCommand(function (wizard) { /// Select the region and download the setup file const regions = [ - "EU West", + "EU West", "Latin America North", //"Latin America South", URL not found "Oceania", @@ -27,7 +27,7 @@ new CustomInstallerScript() ]; const selectedRegion = wizard.menu(tr("Select your region:"), regions); const baseUrl = "https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20"; - let url, regionID; + let url, regionID; switch (selectedRegion.text){ case "EU West": regionID = "EUW"; From cfdc573082f5e24318bba3d0236ffed9302427f4 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Sun, 25 Aug 2019 12:06:04 +0200 Subject: [PATCH 04/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index e95892fbdb..91a014afff 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -27,7 +27,7 @@ new CustomInstallerScript() ]; const selectedRegion = wizard.menu(tr("Select your region:"), regions); const baseUrl = "https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20"; - let url, regionID; + let url, regionID; switch (selectedRegion.text){ case "EU West": regionID = "EUW"; From 1127d246f5dcc827d322b0694459dac8e9c10972 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Tue, 27 Aug 2019 12:24:59 +0200 Subject: [PATCH 05/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 91a014afff..32e97c0a79 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -3,7 +3,6 @@ const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); const Resource = include("utils.functions.net.resource"); include("engines.wine.verbs.corefonts"); -include("engines.wine.verbs.d9vk"); new CustomInstallerScript() @@ -80,5 +79,4 @@ new CustomInstallerScript() .wineVersion(LATEST_STAGING_VERSION) .preInstall(function (wine /*, wizard*/) { wine.corefonts(); - wine.D9VK(); }) From a6644eab9d0cec8a50cf5fbe4a8a618e1c60eceb Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Fri, 6 Sep 2019 14:04:37 +0200 Subject: [PATCH 06/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 32e97c0a79..e63867fa7c 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -15,7 +15,7 @@ new CustomInstallerScript() const regions = [ "EU West", "Latin America North", - //"Latin America South", URL not found + "Latin America South", "Oceania", "Japan", "Turkey", @@ -64,6 +64,10 @@ new CustomInstallerScript() regionID = "LA1"; url = baseUrl+"LA1.exe"; break; + case "Latin America South": + regionID = "LA2"; + url = baseUrl+"LA2.exe"; + break; } var setupFile = new Resource() .wizard(wizard) From 7e1539f94a3491c5b33a144f39646a409a512c09 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Tue, 10 Sep 2019 23:55:50 +0200 Subject: [PATCH 07/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index e63867fa7c..b57da2ed53 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -2,7 +2,7 @@ const CustomInstallerScript = include("engines.wine.quick_script.custom_installe const {LATEST_STAGING_VERSION} = include("engines.wine.engine.versions"); const Resource = include("utils.functions.net.resource"); -include("engines.wine.verbs.corefonts"); +const Corefonts = include("engines.wine.verbs.corefonts"); new CustomInstallerScript() @@ -82,5 +82,5 @@ new CustomInstallerScript() .wineDistribution("staging") .wineVersion(LATEST_STAGING_VERSION) .preInstall(function (wine /*, wizard*/) { - wine.corefonts(); + new Corefonts(wine).go(); }) From 8f2f9d0ead7221a83700954aca13022297740607 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Thu, 3 Oct 2019 19:43:51 +0200 Subject: [PATCH 08/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 3a1c4145c0..043dc046d6 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -82,6 +82,6 @@ new CustomInstallerScript() .category("Games") .wineDistribution("staging") .wineVersion(LATEST_STAGING_VERSION) - .preInstall(function (wine /*, wizard*/) { + .preInstall(function (wine) { new Corefonts(wine).go(); - }); \ No newline at end of file + }); From d46d4a8072ca6143b06dbc576e5a91c2219b9313 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Thu, 3 Oct 2019 19:44:23 +0200 Subject: [PATCH 09/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 043dc046d6..441ca6e78c 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -70,7 +70,7 @@ new CustomInstallerScript() url = baseUrl+"LA2.exe"; break; } - var setupFile = new Resource() + const setupFile = new Resource() .wizard(wizard) .url(url) .name("League%20of%20Legends%20installer%20" + regionID + ".exe") From 15cc68fc99a7c8e35f129de6b453cfd349ee52f5 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Thu, 2 Jan 2020 12:34:34 +0100 Subject: [PATCH 10/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index ed8201fc87..9165fd15a1 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -78,7 +78,7 @@ new CustomInstallerScript() .name("League%20of%20Legends%20installer%20" + regionID + ".exe") .get(); - return {command: setupFile}; + return { command: setupFile }; }) .executable("LeagueClient.exe") .category("Games") @@ -86,4 +86,4 @@ new CustomInstallerScript() .wineVersion(getLatestStagingVersion) .preInstall((wine) => { new Corefonts(wine).go(); - }); \ No newline at end of file + }); From 0b6493c44ebd80b8c02f446586345a8ba581d2b3 Mon Sep 17 00:00:00 2001 From: ImperatorS79 Date: Sat, 4 Jan 2020 11:24:35 +0100 Subject: [PATCH 11/11] Update script.js --- Applications/Games/League of Legends/Online/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/Games/League of Legends/Online/script.js b/Applications/Games/League of Legends/Online/script.js index 9165fd15a1..3658c46c58 100644 --- a/Applications/Games/League of Legends/Online/script.js +++ b/Applications/Games/League of Legends/Online/script.js @@ -72,7 +72,7 @@ new CustomInstallerScript() url = baseUrl+"LA2.exe"; break; } - const setupFile = new Resource() + let setupFile = new Resource() .wizard(wizard) .url(url) .name("League%20of%20Legends%20installer%20" + regionID + ".exe")