28 lines
666 B
Batchfile
28 lines
666 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
cd /d "%~dp0\.."
|
|
|
|
set /p VERSION=<version.txt
|
|
set "VERSION=%VERSION: =%"
|
|
|
|
if not exist "dist\PDFtoICS\PDFtoICS.exe" (
|
|
echo ❌ Build-Ausgabe nicht gefunden: dist\PDFtoICS\PDFtoICS.exe
|
|
echo 💡 Bitte zuerst ausfuehren: build\build_windows.cmd
|
|
exit /b 1
|
|
)
|
|
|
|
if not exist "release" mkdir release
|
|
|
|
set "ARCHIVE=release\PDFtoICS-windows-v%VERSION%.zip"
|
|
if exist "%ARCHIVE%" del /q "%ARCHIVE%"
|
|
|
|
echo 📦 Erstelle Archiv: %ARCHIVE%
|
|
powershell -NoProfile -Command "Compress-Archive -Path 'dist\PDFtoICS\*' -DestinationPath '%ARCHIVE%'"
|
|
if errorlevel 1 (
|
|
echo ❌ Konnte Archiv nicht erstellen
|
|
exit /b 1
|
|
)
|
|
|
|
echo ✅ Fertig: %ARCHIVE%
|