-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added fileSize logic in RBR_Replay function.
- Loading branch information
Showing
9 changed files
with
310 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@echo off | ||
|
||
SET APPNAME=NGPCarMenu | ||
SET VERSIONTAG=%~1 | ||
SET RELEASE_FOLDER=Release\VER_%VERSIONTAG% | ||
SET RELEASE_PKG=%APPNAME%_%VERSIONTAG%.zip | ||
|
||
SET ZIP_TOOL=C:\Program Files\7-Zip\7z.exe | ||
|
||
echo [%DATE% %TIME%] %~nx0 %APPNAME% %VERSIONTAG% | ||
echo [%DATE% %TIME%] Release folder %RELEASE_FOLDER% | ||
echo [%DATE% %TIME%] Release package %RELEASE_PKG% | ||
|
||
|
||
if "%~1" == "" ( | ||
echo Missing cmdline argument: versionTag | ||
echo Example: CreateReleaseZip.cmd 1.14 | ||
goto END | ||
) | ||
|
||
if NOT EXIST "Release" ( | ||
echo Release folder missing. Re-build the project in C++ compiler usign Release configuration | ||
goto END | ||
) | ||
|
||
if NOT EXIST "Release\%APPNAME%.dll" ( | ||
echo %APPNAME%.dll Re-build the project in C++ compiler using Release configuration | ||
goto END | ||
) | ||
|
||
echo Do you want to create a release package %APPNAME%_%VERSIONTAG%.zip? | ||
echo Press CTRL-C to quit, other key to continue... | ||
pause | ||
|
||
|
||
mkdir "%RELEASE_FOLDER%\" | ||
mkdir "%RELEASE_FOLDER%\Replays\" | ||
mkdir "%RELEASE_FOLDER%\Plugins\" | ||
mkdir "%RELEASE_FOLDER%\Plugins\%APPNAME%\" | ||
mkdir "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1920x1080\" | ||
mkdir "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1366x768\" | ||
|
||
copy "Release\%APPNAME%.dll" "%RELEASE_FOLDER%\Plugins\" | ||
copy "%APPNAME%.ini" "%RELEASE_FOLDER%\Plugins\" | ||
copy "%APPNAME%.rpl" "%RELEASE_FOLDER%\Replays\" | ||
copy "..\LicenseText.txt" "%RELEASE_FOLDER%\Plugins\%APPNAME%\" | ||
copy "..\ReadMe.md" "%RELEASE_FOLDER%\Plugins\%APPNAME%\" | ||
copy "..\ReadMe.md" "%RELEASE_FOLDER%\Plugins\%APPNAME%\ReadMe.txt" | ||
|
||
type NUL > "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1920x1080\carImages.txt" | ||
type NUL > "%RELEASE_FOLDER%\Plugins\%APPNAME%\preview\1366x768\carImages.txt" | ||
|
||
PUSHD "%RELEASE_FOLDER%\" | ||
del "..\%RELEASE_PKG%" | ||
"%ZIP_TOOL%" a -r -tzip "..\%RELEASE_PKG%" *.* | ||
POPD | ||
|
||
echo [%DATE% %TIME%] Release\VER_%VERSIONTAG% package build completed | ||
|
||
:END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.