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 7848d99 commit 6261ca9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- os: ubuntu-latest
version: zip
cache_path: ~/.ccache
extra_cmake_args:
# extra_cmake_args:
cmake_preset: linux-ninja-clang15
- os: windows-latest
version: zip
Expand Down Expand Up @@ -185,9 +185,9 @@ jobs:
create-release:
needs: [build]
runs-on: "ubuntu-20.04"
if: |
github.ref == 'refs/heads/master' &&
github.repository == 'Vita3K/Vita3K'
# if: |
# github.ref == 'refs/heads/master' &&
# github.repository == 'Vita3K/Vita3K'
steps:
- uses: actions/checkout@v4

Expand Down
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 6261ca9

Please sign in to comment.