-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-zip.bat
More file actions
30 lines (23 loc) · 1022 Bytes
/
package-zip.bat
File metadata and controls
30 lines (23 loc) · 1022 Bytes
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
REM SPDX-FileCopyrightText: 2025 Project516 <138796702+Project516@users.noreply.github.com>
REM
REM SPDX-License-Identifier: GPL-3.0-or-later
@echo off
REM Creates a distributable ZIP archive of the game (Windows)
REM This archive requires Java to be installed on the user's system
REM Clean up any previous builds
rmdir /s /q NumberGuessingGame 2>nul
rmdir /s /q temp 2>nul
del /f archive.zip 2>nul
REM Create distribution directory structure
mkdir NumberGuessingGame
REM Copy the game JAR and necessary files
copy app\build\libs\app-all.jar NumberGuessingGame\game.jar
copy scripts\run.bat NumberGuessingGame\run.bat
copy scripts\run.sh NumberGuessingGame\run.sh
copy README.md NumberGuessingGame\README.txt
copy LICENSE NumberGuessingGame\LICENSE
REM Create the ZIP archive using PowerShell with maximum compression
powershell -command "Compress-Archive -Path NumberGuessingGame -DestinationPath archive.zip -CompressionLevel Optimal -Force"
REM Clean up temporary directory
rmdir /s /q NumberGuessingGame
@pause