|
51 | 51 | "UpdateSourceArgs": "-c \"cd {{$FullBaseDir}} && tar -xJf launcher*.tar.xz --strip-components=1 >/dev/null && rm -f launcher*.tar.xz\"", |
52 | 52 | "SkipOnFailure": false |
53 | 53 | }, |
| 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 | + }, |
54 | 62 | { |
55 | 63 | "UpdateStageName": "Client Installation", |
56 | 64 | "UpdateSourcePlatform": "Windows", |
57 | 65 | "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}}\\\"\"", |
60 | 68 | "SkipOnFailure": false |
61 | 69 | }, |
62 | 70 | { |
63 | 71 | "UpdateStageName": "Client Installation", |
64 | 72 | "UpdateSourcePlatform": "Linux", |
65 | 73 | "UpdateSource": "Executable", |
66 | 74 | "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}}\\\"\"", |
68 | 76 | "SkipOnFailure": false |
69 | 77 | }, |
70 | 78 | { |
|
0 commit comments