Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 532c06c

Browse files
committed
project: Fix get dependencies batch file to only select lib archives.
1 parent cb3c430 commit 532c06c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

SMP/project_get_dependencies.bat

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,12 @@ FOR /F "tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^| FINDSTR /B "tag_name"`)
113113
FOR /F "tokens=2 delims=: " %%F in ("%TAG%") DO SET TAG=%%F
114114
IF "%TAG%"=="" ( ECHO Failed getting latest %REPONAME% release tag information & EXIT /B 1 )
115115
REM Get download name of latest release
116-
FOR /F "tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^| FINDSTR "name="`) DO SET LIBNAME=%%F
117-
SET LIBNAME=%LIBNAME:*name=%
118-
FOR /F "tokens=1 delims=_" %%F in ("%LIBNAME:~1%") DO SET LIBNAME=%%F
116+
SET LIBNAME=
117+
FOR /F "tokens=* USEBACKQ" %%F IN (`TYPE latest.json ^| FINDSTR "name="`) DO ( SET TEMPF=%%F
118+
SET TEMPF=!TEMPF:*name=!
119+
IF "!TEMPF:~1,3!"=="lib" ( SET LIBNAME=!TEMPF:~1! )
120+
)
121+
FOR /F "tokens=1 delims=_" %%F in ("%LIBNAME%") DO SET LIBNAME=%%F
119122
IF "%LIBNAME%"=="" ( ECHO Failed getting latest %REPONAME% release name information & EXIT /B 1 )
120123
DEL /F /Q latest.json
121124
REM Get the download location for the required tag

0 commit comments

Comments
 (0)