Skip to content

Commit

Permalink
Make a release zip
Browse files Browse the repository at this point in the history
  • Loading branch information
jramstedt committed Jul 18, 2024
1 parent ee82c89 commit e94c8ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ SET SS1EE="dist\SS1EE"
SET SS1="dist\SS1"
REM # SET STEAM_REG_QUERY='REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 410710" /v InstallLocation'
REM # FOR /F "skip=2 tokens=2*" %%A in (%STEAM_REG_QUERY%) DO SET SSPATH="%%B"
FOR /F "tokens=1-3 delims=/ " %%A in ('DATE /T') DO (SET BUILD_DATE=%%C%%B%%A)

SET /P SSPATH=Path to SS1 RES files:
ECHO Using RES files from: %SSPATH%
Expand All @@ -29,12 +30,17 @@ XCOPY README.md dist\ /F /Y
XCOPY LICENSE dist\ /F /Y
XCOPY screenshots\ dist\screenshots\ /F /Y

ECHO %DATE% %TIME% >> dist\README.md
ECHO %BUILD_DATE% >> dist\README.md
git rev-parse HEAD >> dist\README.md

ECHO "Installing SS1EE..."
RD /S /Q %MISSIONS%
MD %MISSIONS%
XCOPY "%SS1EE:"=%\*" %MISSIONS% /E /F /Y

IF "%~1"=="-r" (
ECHO "Zipping"
7z a -mx9 -mmt2 -ssp "%MISSION_NAME% %BUILD_DATE%.7z" .\dist\*
)

ENDLOCAL

0 comments on commit e94c8ea

Please sign in to comment.