mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:06:30 +00:00
zip update
This commit is contained in:
@@ -68,12 +68,23 @@ pipeline {
|
|||||||
set "EXE_FILE="
|
set "EXE_FILE="
|
||||||
rem Find .exe and .bin files and build a list of quoted paths
|
rem Find .exe and .bin files and build a list of quoted paths
|
||||||
for /R . %%F in (%EXE_PATTERN% %BIN_PATTERN%) do (
|
for /R . %%F in (%EXE_PATTERN% %BIN_PATTERN%) do (
|
||||||
|
rem DEBUG: Show file found
|
||||||
|
echo DEBUG: Found file: "%%F"
|
||||||
rem Add the quoted full path to FOUND_FILES
|
rem Add the quoted full path to FOUND_FILES
|
||||||
set "FOUND_FILES=!FOUND_FILES! "%%F""
|
set "FOUND_FILES=!FOUND_FILES! "%%F""
|
||||||
rem Check if it's an exe for version extraction and store the first one found
|
rem Check if it's an exe for version extraction and store the first one found
|
||||||
|
rem Using findstr to check if the full path ends with .exe (case-insensitive)
|
||||||
echo "%%F" | findstr /I /E "\\\\.exe" >nul && if not defined EXE_FILE set "EXE_FILE=%%F"
|
echo "%%F" | findstr /I /E "\\\\.exe" >nul && if not defined EXE_FILE set "EXE_FILE=%%F"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem DEBUG: Show EXE_FILE after loop
|
||||||
|
if defined EXE_FILE (
|
||||||
|
echo DEBUG: EXE_FILE set to: "%EXE_FILE%"
|
||||||
|
) else (
|
||||||
|
echo DEBUG: EXE_FILE remains undefined.
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if not defined FOUND_FILES (
|
if not defined FOUND_FILES (
|
||||||
echo No files matching patterns %EXE_PATTERN% or %BIN_PATTERN% found in %CD%.
|
echo No files matching patterns %EXE_PATTERN% or %BIN_PATTERN% found in %CD%.
|
||||||
exit /b 1
|
exit /b 1
|
||||||
@@ -97,6 +108,9 @@ pipeline {
|
|||||||
set "ZIP_BASE_FILENAME=AzaionSuite.!DEFAULT_VERSION!"
|
set "ZIP_BASE_FILENAME=AzaionSuite.!DEFAULT_VERSION!"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem DEBUG: Show ZIP_BASE_FILENAME before constructing zip name
|
||||||
|
echo DEBUG: ZIP_BASE_FILENAME is: !ZIP_BASE_FILENAME!
|
||||||
|
|
||||||
|
|
||||||
rem --- Zipping Logic ---
|
rem --- Zipping Logic ---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user