mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
fix: version NSCurl plugin in workflow, detect and use arm64 vc_redist for arm64
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
@ -44,14 +44,20 @@ configure_file(prismlauncher.ico prismlauncher.ico COPYONLY)
|
||||
|
||||
if(MSVC)
|
||||
set(Launcher_MSVC_Redist_NSIS_Section [=[
|
||||
!ifdef haveNSIScurl
|
||||
!ifdef haveNScurl
|
||||
Section "Visual Studio Runtime"
|
||||
Var /GLOBAL vc_redist_exe
|
||||
${If} ${IsNativeARM64}
|
||||
StrCpy $vc_redist_exe "vc_redist.arm64.exe"
|
||||
${Else}
|
||||
StrCpy $vc_redist_exe "vc_redist.x64.exe"
|
||||
${EndIf}
|
||||
DetailPrint 'Downloading Microsoft Visual C++ Redistributable...'
|
||||
NScurl::http GET "https://aka.ms/vs/17/release/vc_redist.x64.exe" "$INSTDIR\vc_redist\vc_redist.x64.exe" /INSIST /CANCEL /Zone.Identifier /END
|
||||
NScurl::http GET "https://aka.ms/vs/17/release/${vc_redist_exe}" "$INSTDIR\vc_redist\${vc_redist_exe}" /INSIST /CANCEL /Zone.Identifier /END
|
||||
Pop $0
|
||||
${If} $0 == "OK"
|
||||
DetailPrint "Download successful"
|
||||
ExecWait "$INSTDIR\vc_redist\vc_redist.x64.exe /install /passive /norestart\"
|
||||
ExecWait "$INSTDIR\vc_redist\${vc_redist_exe} /install /passive /norestart\"
|
||||
${Else}
|
||||
DetailPrint "Download failed with error $0"
|
||||
${EndIf}
|
||||
|
Reference in New Issue
Block a user