Add standalone build and packaging workflow docs/scripts
This commit is contained in:
27
build/package_windows.cmd
Normal file
27
build/package_windows.cmd
Normal file
@@ -0,0 +1,27 @@
|
||||
@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%
|
||||
Reference in New Issue
Block a user