Skip to content

Commit

Permalink
Automate the packaging process upto zipping
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda committed Jul 7, 2022
1 parent d35cbc4 commit 62be410
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
10 changes: 9 additions & 1 deletion package.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,12 @@ xcopy %1\Content\OpenLand ToPackage\OpenLand\Content\OpenLand /E/H
md ToPackage\OpenLand_UE5
xcopy ToPackage\OpenLand ToPackage\OpenLand_UE5 /E/H

xcopy UE5_Overrides ToPackage\OpenLand_UE5 /E/H/Y
xcopy UE5_Overrides ToPackage\OpenLand_UE5 /E/H/Y

@REM Identifying the version
FOR /F "tokens=*" %%g IN ('git describe --tags') do (SET VERSION=%%g)

@REM Making zip files
cd ToPackage
tar.exe -a -c -f OpenLand_UE5_%VERSION%.zip OpenLand_UE5
tar.exe -a -c -f OpenLand_%VERSION%.zip OpenLand
11 changes: 11 additions & 0 deletions sed.vbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Dim pat, patparts, rxp, inp
pat = WScript.Arguments(0)
patparts = Split(pat,"/")
Set rxp = new RegExp
rxp.Global = True
rxp.Multiline = False
rxp.Pattern = patparts(1)
Do While Not WScript.StdIn.AtEndOfStream
inp = WScript.StdIn.ReadLine()
WScript.Echo rxp.Replace(inp, patparts(2))
Loop

0 comments on commit 62be410

Please sign in to comment.