@@ -19,7 +19,7 @@ new CustomInstallerScript()
19
19
. installationCommand ( ( wizard ) => {
20
20
// Select the region and download the setup file
21
21
////////////////////////////////////////////////
22
- var regions = [
22
+ const regions = [
23
23
"EU West" ,
24
24
"Latin America North" ,
25
25
"Latin America South" ,
@@ -31,9 +31,9 @@ new CustomInstallerScript()
31
31
"North America" ,
32
32
"Russia"
33
33
] ;
34
- var selectedRegion = wizard . menu ( tr ( "Select your region:" ) , regions ) ;
35
- var url , sha1 ;
36
- var baseUrl = "https://riotgamespatcher-a.akamaihd.net/ShellInstaller/" ;
34
+ const selectedRegion = wizard . menu ( tr ( "Select your region:" ) , regions ) ;
35
+ let url , sha1 ;
36
+ const baseUrl = "https://riotgamespatcher-a.akamaihd.net/ShellInstaller/" ;
37
37
switch ( selectedRegion . text ) {
38
38
case "EU West" :
39
39
url = baseUrl + "EUW/LeagueofLegends_EUW_Installer_2016_11_10.exe" ;
@@ -76,7 +76,7 @@ new CustomInstallerScript()
76
76
sha1 = "2d462decf629cab880386407598f9c5ea6db2ef5" ;
77
77
break ;
78
78
}
79
- var setupFile = new Resource ( )
79
+ const setupFile = new Resource ( )
80
80
. wizard ( wizard )
81
81
. url ( url )
82
82
. checksum ( sha1 )
@@ -103,8 +103,8 @@ new CustomInstallerScript()
103
103
104
104
// Create run script to start the right exe
105
105
/////////////////////////////////////////
106
- var client = wine . prefixDirectory ( ) + "drive_c/LoL/run.bat" ;
107
- var batContent = "start C:\\LoL\\LeagueClient.exe" ;
106
+ const client = wine . prefixDirectory ( ) + "drive_c/LoL/run.bat" ;
107
+ const batContent = "start C:\\LoL\\LeagueClient.exe" ;
108
108
writeToFile ( client , batContent ) ;
109
109
} )
110
110
. executable ( "run.bat" ) ;
0 commit comments