-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate_release_zip.bat
More file actions
51 lines (44 loc) · 1.34 KB
/
create_release_zip.bat
File metadata and controls
51 lines (44 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
REM KerbNoteLite - Create Release ZIP
REM Run this AFTER adding textures to GameData/KerbNoteLite/Textures/
echo ============================================
echo KerbNoteLite v1.3.1 - Create Release ZIP
echo ============================================
echo.
REM Check if textures exist
if not exist "GameData\KerbNoteLite\Textures\BackgroundWindow.png" (
echo ERROR: Textures not found!
echo.
echo Please add texture files to GameData\KerbNoteLite\Textures\
echo See TEXTURE_CHECKLIST.md for required files.
echo.
pause
exit /b 1
)
echo Textures found! Creating release ZIP...
echo.
REM Remove old ZIP if exists
if exist "KerbNoteLite-v1.3.1.zip" (
del "KerbNoteLite-v1.3.1.zip"
echo Old ZIP removed.
)
REM Create ZIP using PowerShell
powershell -Command "Compress-Archive -Path 'GameData\*' -DestinationPath 'KerbNoteLite-v1.3.1.zip' -Force"
if %ERRORLEVEL% EQU 0 (
echo.
echo ============================================
echo SUCCESS! Release ZIP created:
echo KerbNoteLite-v1.3.1.zip
echo ============================================
echo.
echo Next steps:
echo 1. Test the ZIP by extracting to a test KSP folder
echo 2. Upload to GitHub release
echo 3. Update CKAN if needed
echo.
) else (
echo.
echo ERROR: Failed to create ZIP file!
echo.
)
pause