Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nishinji committed Sep 19, 2024
1 parent bfe8383 commit 1266b10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vita3k/script/update-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ echo ============================================================
echo ====================== Vita3K Updater ======================
echo ============================================================

for /f "delims=" %%g in ('powershell "((Invoke-RestMethod https://api.github.com/repos/Vita3K/Vita3K/releases/latest -timeout 2).body.Split("\"`n"\") | Select-String -Pattern 'Vita3K Build:') -replace 'Vita3K Build: '"') do @set git_version=%%g
for /f "delims=" %%g in ('powershell "((Invoke-RestMethod https://api.github.com/repos/nishinji/Vita3K/releases/latest -timeout 2).body.Split("\"`n"\") | Select-String -Pattern 'Vita3K Build:') -replace 'Vita3K Build: '"') do @set git_version=%%g
if exist Vita3K.exe (
for /f "delims=" %%v in ('powershell "((Get-Item Vita3K.exe).VersionInfo.FileVersion) -replace '0.2.0.'"') do @set version=%%v
)
set boot=0

$osVersion = [System.Environment]::OSVersion.Version
# Windows 11‚̃o[ƒWƒ‡ƒ“”ԍ† 10.0.22000 ˆÈ~
# Windows 11 version number 10.0.22000 later
$windows11Build = [Version]::new(10, 0, 22000)

if ($osVersion -ge $windows11Build) {
Expand Down Expand Up @@ -43,7 +43,7 @@ if ($osVersion -ge $windows11Build) {
)
)
echo Attempting to download and extract the latest Vita3K version %git_version% in progress...
powershell "Invoke-WebRequest https://github.com/Vita3K/Vita3K/releases/download/continuous/windows-latest.zip -OutFile vita3k-latest.7z"
powershell "Invoke-WebRequest https://github.com/nishinji/Vita3K/releases/download/continuous/windows-latest.7z -OutFile vita3k-latest.7z"
if exist Vita3K.exe (
taskkill /F /IM Vita3K.exe
)
Expand Down Expand Up @@ -100,7 +100,7 @@ if ($osVersion -ge $windows11Build) {
)
)
echo Attempting to download and extract the latest Vita3K version %git_version% in progress...
powershell "Invoke-WebRequest https://github.com/Vita3K/Vita3K/releases/download/continuous/windows-latest.zip -OutFile vita3k-latest.zip"
powershell "Invoke-WebRequest https://github.com/nishinji/Vita3K/releases/download/continuous/windows-latest.zip -OutFile vita3k-latest.zip"
if exist Vita3K.exe (
taskkill /F /IM Vita3K.exe
)
Expand Down

0 comments on commit 1266b10

Please sign in to comment.