Skip to content

Commit 0f72a03

Browse files
committed
COD MW3: move launcher
1 parent 79e7fb5 commit 0f72a03

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

call-of-dutymw2updates.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,28 @@
5151
"UpdateSourceArgs": "-c \"cd {{$FullBaseDir}} && tar -xJf launcher*.tar.xz --strip-components=1 >/dev/null && rm -f launcher*.tar.xz\"",
5252
"SkipOnFailure": false
5353
},
54+
{
55+
"UpdateStageName": "IW4x Launcher Move",
56+
"UpdateSourcePlatform": "Windows",
57+
"UpdateSource": "Executable",
58+
"UpdateSourceData": "powershell.exe",
59+
"UpdateSourceArgs": "-NoProfile -Command \"Set-Location -Path '{{$FullBaseDir}}'; if ($dir = Get-ChildItem -Directory -Filter 'launcher-*-x86_64-windows' | Select-Object -First 1) { $exe = Join-Path $dir.FullName 'iw4x-launcher.exe'; if (Test-Path $exe) { Move-Item $exe $PWD -Force *>$null }; Remove-Item $dir.FullName -Recurse -Force *>$null }\"",
60+
"SkipOnFailure": false
61+
},
5462
{
5563
"UpdateStageName": "Client Installation",
5664
"UpdateSourcePlatform": "Windows",
5765
"UpdateSource": "Executable",
58-
"UpdateSourceData": "cmd.exe",
59-
"UpdateSourceArgs": "/C cd call-of-dutymw2\\10190 && .\\iw4x-launcher.exe --update --skip-self-update --force --path=\"{{$FullBaseDir}}\"",
66+
"UpdateSourceData": "powershell.exe",
67+
"UpdateSourceArgs": "-NoProfile -Command \"Set-Location -Path '{{$FullBaseDir}}'; & ./iw4x-launcher.exe --update --no-self-update --force --path=\\\"{{$FullBaseDir}}\\\"\"",
6068
"SkipOnFailure": false
6169
},
6270
{
6371
"UpdateStageName": "Client Installation",
6472
"UpdateSourcePlatform": "Linux",
6573
"UpdateSource": "Executable",
6674
"UpdateSourceData": "/bin/bash",
67-
"UpdateSourceArgs": "-c \"cd ./call-of-dutymw2/10190 && chmod +x iw4x-launcher && ./iw4x-launcher --update --skip-self-update --force --path=\\\"{{$FullBaseDir}}\\\"\"",
75+
"UpdateSourceArgs": "-c \"cd ./call-of-dutymw2/10190 && chmod +x iw4x-launcher && ./iw4x-launcher --update --no-self-update --force --path=\\\"{{$FullBaseDir}}\\\"\"",
6876
"SkipOnFailure": false
6977
},
7078
{

0 commit comments

Comments
 (0)