Skip to content

Commit

Permalink
suite: set package update time interval in .ini file
Browse files Browse the repository at this point in the history
The 'pkgUpdateTime' variable in the .ini file determines when packages are updated, but the suite won't prompt the user to set this value manually
  • Loading branch information
woot000 authored and 1480c1 committed Nov 20, 2024
1 parent 7a02971 commit 7e35fbd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions media-autobuild_suite.bat
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ set mpv_options_full=dvdnav cdda #egl-angle #html-build ^
set iniOptions=arch license2 vpx2 x2643 x2652 other265 flac fdkaac mediainfo ^
soxB ffmpegB2 ffmpegUpdate ffmpegChoice mp4box rtmpdump mplayer2 mpv cores deleteSource ^
strip pack logging bmx standalone updateSuite av1an aom faac exhale ffmbc curl cyanrip2 ^
rav1e ripgrep dav1d libavif vvc uvg266 jq dssim avs2 dovitool hdr10plustool ^
timeStamp noMintty ccache svthevc svtav1 svtvp9 xvc jo vlc CC jpegxl vvenc vvdec ffmpegPath
rav1e ripgrep dav1d libavif vvc uvg266 jq dssim avs2 dovitool hdr10plustool timeStamp ^
noMintty ccache svthevc svtav1 svtvp9 xvc jo vlc CC jpegxl vvenc vvdec ffmpegPath pkgUpdateTime
@rem re-add autouploadlogs if we find some way to upload to github directly instead

set deleteIni=0
Expand Down Expand Up @@ -1597,6 +1597,12 @@ if %noMinttyF%==2 set "noMintty=n"
if %noMinttyF% GTR 2 GOTO noMintty
if %deleteINI%==1 echo.noMintty=^%noMinttyF%>>%ini%

rem pkgUpdateTime
if [0]==[%pkgUpdateTimeINI%] (
set pkgUpdateTime=86400
) else set pkgUpdateTime=%pkgUpdateTimeINI%
if %deleteINI%==1 echo.pkgUpdateTime=^%pkgUpdateTime%>>%ini%

rem ------------------------------------------------------------------
rem download and install basic msys2 system:
rem ------------------------------------------------------------------
Expand Down Expand Up @@ -1836,7 +1842,7 @@ if %build64%==yes call :writeProfile 64

rem update
if exist "%instdir%\build\updated.log" (
powershell -noprofile -command "exit ([datetimeoffset]::now.tounixtimeseconds() - (get-content %instdir%\build\updated.log) -gt 86400)" || set needsupdate=yes
powershell -noprofile -command "exit ([datetimeoffset]::now.tounixtimeseconds() - (get-content %instdir%\build\updated.log) -gt %pkgUpdateTime%)" || set needsupdate=yes
) else (
set needsupdate=yes
)
Expand Down

0 comments on commit 7e35fbd

Please sign in to comment.