Skip to content

Commit

Permalink
Merge pull request #990 from g-maxime/stub
Browse files Browse the repository at this point in the history
Handle snapshots in stub installer
  • Loading branch information
JeromeMartinez authored Dec 7, 2024
2 parents 946b9a8 + 78c5cd3 commit f41892d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Release/Release_GUI_Windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ del MediaInfo_GUI_Windows_i386.exe
rem --- Installer ---
pushd %BPATH%\Windows\NSIS
makensis.exe "%~dp0\..\Source\Install\MediaInfo_GUI_Windows.nsi"
makensis.exe "%~dp0\..\Source\Install\MediaInfo_GUI_Windows_Stub.nsi"
if not "%SNAPSHOT%"=="" (
makensis.exe /DSNAPSHOT=%SNAPSHOT% "%~dp0\..\Source\Install\MediaInfo_GUI_Windows_Stub.nsi"
) else (
makensis.exe "%~dp0\..\Source\Install\MediaInfo_GUI_Windows_Stub.nsi"
)
makensis.exe "%~dp0\..\Source\Install\MediaInfo_GUI_Windows_x64.nsi"
makensis.exe "%~dp0\..\Source\Install\MediaInfo_GUI_Windows_ARM64.nsi"
makensis.exe "%~dp0\..\Source\Install\MediaInfo_GUI_Windows_i386.nsi"
Expand Down
11 changes: 8 additions & 3 deletions Source/Install/MediaInfo_GUI_Windows_Stub.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ RequestExecutionLevel admin
!define PRODUCT_VERSION "24.11"
!define PRODUCT_VERSION4 "${PRODUCT_VERSION}.0.0"

!define BASEURL "https://mediaarea.net/download/binary/mediainfo-gui/${PRODUCT_VERSION}"
!ifdef SNAPSHOT
!define /redef BASEURL "https://mediaarea.net/download/snapshots/binary/mediainfo-gui/${SNAPSHOT}"
!endif

; Compression
SetCompressor /FINAL /SOLID lzma

Expand Down Expand Up @@ -49,14 +54,14 @@ Section
${If} ${IsNativeARM64}
${AndIf} ${AtLeastWin11}
inetc::get /CAPTION "MediaInfo Online Installer" /BANNER "Downloading MediaInfo ${PRODUCT_VERSION} ARM64..." \
"https://mediaarea.net/download/binary/mediainfo-gui/${PRODUCT_VERSION}/MediaInfo_GUI_${PRODUCT_VERSION}_Windows_ARM64.exe" "$PLUGINSDIR\MediaInfoInstaller.exe"
"${BASEURL}/MediaInfo_GUI_${PRODUCT_VERSION}_Windows_ARM64.exe" "$PLUGINSDIR\MediaInfoInstaller.exe"
${Else}
${If} ${IsNativeAMD64}
inetc::get /CAPTION "MediaInfo Online Installer" /BANNER "Downloading MediaInfo ${PRODUCT_VERSION} x64..." \
"https://mediaarea.net/download/binary/mediainfo-gui/${PRODUCT_VERSION}/MediaInfo_GUI_${PRODUCT_VERSION}_Windows_x64.exe" "$PLUGINSDIR\MediaInfoInstaller.exe"
"${BASEURL}/MediaInfo_GUI_${PRODUCT_VERSION}_Windows_x64.exe" "$PLUGINSDIR\MediaInfoInstaller.exe"
${Else}
inetc::get /CAPTION "MediaInfo Online Installer" /BANNER "Downloading MediaInfo ${PRODUCT_VERSION} i386..." \
"https://mediaarea.net/download/binary/mediainfo-gui/${PRODUCT_VERSION}/MediaInfo_GUI_${PRODUCT_VERSION}_Windows_i386.exe" "$PLUGINSDIR\MediaInfoInstaller.exe"
"${BASEURL}/MediaInfo_GUI_${PRODUCT_VERSION}_Windows_i386.exe" "$PLUGINSDIR\MediaInfoInstaller.exe"
${EndIf}
${EndIf}

Expand Down

0 comments on commit f41892d

Please sign in to comment.