2
2
set -euo pipefail
3
3
IFS=$' \n\t '
4
4
5
+ apt-get update
6
+ apt-get install -y git
7
+ git config --global --add safe.directory ' *'
8
+
5
9
steamdir=${STEAM_HOME:- $HOME / Steam}
6
10
# this is relative to the action
7
11
contentroot=$( pwd) /$rootPath
24
28
fi
25
29
26
30
i=1;
27
- export DEPOTS=" \n "
28
- until [ $i -gt 9 ]; do
29
- eval " currentDepotPath=\$ depot${i} Path"
30
- if [ -n " $currentDepotPath " ]; then
31
- # depot1Path uses firstDepotId, depot2Path uses firstDepotId + 1, depot3Path uses firstDepotId + 2...
32
- currentDepot=$(( firstDepotId + i - 1 ))
33
-
34
- echo " "
35
- echo " Adding depot${currentDepot} .vdf ..."
36
- echo " "
37
- export DEPOTS=" $DEPOTS \" $currentDepot \" \" depot${currentDepot} .vdf\" \n "
38
- cat << EOF > "depot${currentDepot} .vdf"
39
- "DepotBuildConfig"
40
- {
41
- "DepotID" "$currentDepot "
42
- "FileMapping"
43
- {
44
- "LocalPath" "./$currentDepotPath /*"
45
- "DepotPath" "."
46
- "recursive" "1"
47
- }
48
- "FileExclusion" "*.pdb"
49
- "FileExclusion" "**/*_BurstDebugInformation_DoNotShip*"
50
- "FileExclusion" "**/*_BackUpThisFolder_ButDontShipItWithYourGame*"
51
- }
52
- EOF
53
-
54
- cat depot${currentDepot} .vdf
55
- echo " "
56
- fi ;
57
-
58
- i=$(( i+ 1 ))
59
- done
31
+ # export DEPOTS="\n "
32
+ # until [ $i -gt 9 ]; do
33
+ # eval "currentDepotPath=\$depot${i}Path"
34
+ # if [ -n "$currentDepotPath" ]; then
35
+ # # depot1Path uses firstDepotId, depot2Path uses firstDepotId + 1, depot3Path uses firstDepotId + 2...
36
+ # currentDepot=$((firstDepotId + i - 1))
37
+
38
+ # echo ""
39
+ # echo "Adding depot${currentDepot}.vdf ..."
40
+ # echo ""
41
+ # export DEPOTS="$DEPOTS \"$currentDepot\" \"depot${currentDepot}.vdf\"\n "
42
+ # cat << EOF > "depot${currentDepot}.vdf"
43
+ # "DepotBuildConfig"
44
+ # {
45
+ # "DepotID" "$currentDepot"
46
+ # "FileMapping"
47
+ # {
48
+ # "LocalPath" "./$currentDepotPath/*"
49
+ # "DepotPath" "."
50
+ # "recursive" "1"
51
+ # }
52
+ # "FileExclusion" "*.pdb"
53
+ # "FileExclusion" "**/*_BurstDebugInformation_DoNotShip*"
54
+ # "FileExclusion" "**/*_BackUpThisFolder_ButDontShipItWithYourGame*"
55
+ # }
56
+ # EOF
57
+
58
+ # cat depot${currentDepot}.vdf
59
+ # echo ""
60
+ # fi;
61
+
62
+ # i=$((i+1))
63
+ # done
60
64
61
65
echo " "
62
66
echo " #################################"
63
67
echo " # Generating App Manifest #"
64
68
echo " #################################"
65
69
echo " "
66
70
71
+ GIT_SHOW=$( git show --quiet)
72
+
67
73
cat << EOF > "manifest.vdf"
68
74
"appbuild"
69
75
{
@@ -74,8 +80,9 @@ cat << EOF > "manifest.vdf"
74
80
"setlive" "$releaseBranch "
75
81
76
82
"depots"
77
- {$( echo " $DEPOTS " | sed ' s/\\n/\
78
- /g' ) }
83
+ {
84
+ "$customDepotId " "$customDepot "
85
+ }
79
86
}
80
87
EOF
81
88
0 commit comments