61 lines
1.3 KiB
Batchfile
61 lines
1.3 KiB
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
echo === Test Fixed Windows Version ===
|
|
echo.
|
|
|
|
REM Clean up
|
|
for /d %%d in (dms-compliance-*) do (
|
|
if exist "%%d" rmdir /s /q "%%d" 2>nul
|
|
)
|
|
for %%f in (*.zip) do (
|
|
if exist "%%f" del "%%f" 2>nul
|
|
)
|
|
|
|
echo [TEST] Running fixed Windows script...
|
|
echo.
|
|
|
|
REM Test with dual service
|
|
(
|
|
echo 1
|
|
echo 0
|
|
echo y
|
|
) | create-compose-package-windows-fixed.bat
|
|
|
|
echo.
|
|
echo === Results ===
|
|
|
|
REM Check results
|
|
for %%f in (*.zip) do (
|
|
if exist "%%f" (
|
|
echo [SUCCESS] Archive created: %%f
|
|
for %%A in ("%%f") do echo [INFO] Size: %%~zA bytes
|
|
|
|
echo [INFO] Extracting to check contents...
|
|
powershell -command "Expand-Archive -Path '%%f' -DestinationPath '.' -Force"
|
|
|
|
for /d %%d in (dms-compliance-*) do (
|
|
if exist "%%d" (
|
|
echo [INFO] Directory: %%d
|
|
echo [INFO] Contents:
|
|
dir "%%d" /b
|
|
|
|
if exist "%%d\docker-compose.yml" (
|
|
echo [SUCCESS] docker-compose.yml found
|
|
echo [INFO] Content preview:
|
|
type "%%d\docker-compose.yml"
|
|
) else (
|
|
echo [ERROR] docker-compose.yml missing
|
|
)
|
|
|
|
goto :done
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|
|
:done
|
|
echo.
|
|
echo Test complete!
|
|
pause
|