Skip to content

Commit

Permalink
Add support for 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoda committed Nov 17, 2022
1 parent 4353230 commit 0289d10
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
2 changes: 1 addition & 1 deletion epic-package.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
echo "Epic Packaging ..."

"D:\Programs\Epic Games\UE_%1\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin=D:\Repos\GDi4K\unreal-fetch\UnrealFetchDevApp\Plugins\Fetch\Fetch.uplugin -Package=ToPackage -Rocket
"C:\Program Files\Epic Games\UE_%1\Engine\Build\BatchFiles\RunUAT.bat" BuildPlugin -Plugin=C:\Data\Repos\GDi4K\unreal-fetch\UnrealFetchDevApp\Plugins\Fetch\Fetch.uplugin -Package=ToPackage -Rocket
48 changes: 38 additions & 10 deletions package.bat
Original file line number Diff line number Diff line change
@@ -1,18 +1,46 @@
rmdir /S /Q ToPackage

md ToPackage
md ToPackage\Fetch
md ToPackage\Fetch_46

xcopy UnrealFetchDevApp\Plugins\Fetch\Fetch.uplugin ToPackage\Fetch
xcopy UnrealFetchDevApp\Plugins\Fetch\Fetch.uplugin ToPackage\Fetch_46

md ToPackage\Fetch\Config
xcopy UnrealFetchDevApp\Plugins\Fetch\Config ToPackage\Fetch\Config /E/H
md ToPackage\Fetch_46\Config
xcopy UnrealFetchDevApp\Plugins\Fetch\Config ToPackage\Fetch_46\Config /E/H

md ToPackage\Fetch\Resources
xcopy UnrealFetchDevApp\Plugins\Fetch\Resources ToPackage\Fetch\Resources /E/H
md ToPackage\Fetch_46\Resources
xcopy UnrealFetchDevApp\Plugins\Fetch\Resources ToPackage\Fetch_46\Resources /E/H

md ToPackage\Fetch\Source
xcopy UnrealFetchDevApp\Plugins\Fetch\Source ToPackage\Fetch\Source /E/H
md ToPackage\Fetch_46\Source
xcopy UnrealFetchDevApp\Plugins\Fetch\Source ToPackage\Fetch_46\Source /E/H

md ToPackage\Fetch\Content
xcopy UnrealFetchDevApp\Plugins\Fetch\Content ToPackage\Fetch\Content /E/H
md ToPackage\Fetch_46\Content
xcopy UnrealFetchDevApp\Plugins\Fetch\Content ToPackage\Fetch_46\Content /E/H

echo "Copying the 4.7 version"
md ToPackage\Fetch_47
xcopy ToPackage\Fetch_46 ToPackage\Fetch_47 /E/H

cscript //NoLogo sed.vbs s/(4.26.0)/4.27.0/ < ToPackage\Fetch_46\Fetch.uplugin > ToPackage\Fetch_47\Fetch.uplugin

echo "Copying the 5.0 version"
md ToPackage\Fetch_50
xcopy ToPackage\Fetch_46 ToPackage\Fetch_50 /E/H

cscript //NoLogo sed.vbs s/(4.26.0)/5.0.0/ < ToPackage\Fetch_46\Fetch.uplugin > ToPackage\Fetch_50\Fetch.uplugin

echo "Copying the 5.1 version"
md ToPackage\Fetch_51
xcopy ToPackage\Fetch_46 ToPackage\Fetch_51 /E/H

cscript //NoLogo sed.vbs s/(4.26.0)/5.1.0/ < ToPackage\Fetch_46\Fetch.uplugin > ToPackage\Fetch_51\Fetch.uplugin

@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 Fetch_51_%VERSION%.zip Fetch_51
tar.exe -a -c -f Fetch_50_%VERSION%.zip Fetch_50
tar.exe -a -c -f Fetch_47_%VERSION%.zip Fetch_47
tar.exe -a -c -f Fetch_46_%VERSION%.zip Fetch_46
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 0289d10

Please sign in to comment.