Search for RetroArch on Windows differently

This commit is contained in:
Jesse Talavera-Greenberg 2024-01-08 09:32:34 -05:00
parent 711efcbc58
commit 006c968aa2
2 changed files with 6 additions and 9 deletions

View File

@ -53,14 +53,6 @@ runs:
run: |
Invoke-WebRequest -Uri https://buildbot.libretro.com/stable/1.16.0/windows/x86_64/RetroArch.7z -OutFile RetroArch.7z
7z x -o"$Env:ProgramFiles" RetroArch.7z
ls "$Env:ProgramFiles\RetroArch-Win64"
echo "$Env:ProgramFiles\RetroArch-Win64" >> "$GITHUB_PATH"
- name: Print the PATH (Windows)
if: ${{ runner.os == 'Windows' }}
shell: powershell
run: |
echo $Env:Path
- name: Download Test Files
uses: actions/checkout@v3

View File

@ -1,7 +1,12 @@
find_package(Python3 3.10 REQUIRED COMPONENTS Interpreter)
if (NOT RETROARCH)
find_program(RETROARCH retroarch REQUIRED)
find_program(
RETROARCH
retroarch
HINTS "C:/Program Files/RetroArch" "C:/Program Files/RetroArch-Win64"
REQUIRED
)
endif()
message(STATUS "RETROARCH: ${RETROARCH}")