Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ECHO
- :: This path depends on where you stored the Unreal project
- D:
- cd D:\Documents\Unreal Projects\CoolProject\Config
- :: This finds the text "Project Version" to get the data we want
- FOR /F "tokens=* USEBACKQ" %%F IN (`findstr /c:"ProjectVersion" DefaultGame.ini`) DO (SET build-id=%%F)
- :: Check if we are saving the correct value
- ECHO %build-id%
- :: We now want to remove the first char because its returning "=0.0.0.0"
- SET build-id=%build-id:ProjectVersion=%
- SET build-id=%build-id:~1%
- :: Check that the version number is in this form "0.0.0.0"
- ECHO %build-id%
- ::Rename the folder to the version name. This is the path where you stored the packaged project
- cd D:\Documents\Unreal Projects\Builds
- REN "Windows" "CoolProject %build-id%"
- ::Zip file
- tar.exe -a -c -f "CoolProject %build-id%.zip" "CoolProject %build-id%"
- :: Run .exe to check if the packaged project is working.
- cd D:\Documents\Unreal Projects\Builds\CoolProject %build-id%
- CoolProject.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement