File tree 1 file changed +19
-0
lines changed 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,23 @@ PI_INSTALL_PATH=$UPDATE_PATH/sample_update/files/install/home/pi
14
14
echo " Copying pre folder"
15
15
cp pre/* sample_update/files/install/ -r
16
16
17
+ echo " Creating manifest file"
18
+
19
+ cd $BACKEND
20
+
21
+ backendGIT=$( git rev-parse HEAD)
22
+
23
+ cat > ./manifest.json << EOF
24
+ {
25
+ "backendCommit": "$backendGIT "
26
+ }
27
+ EOF
28
+
29
+ echo " Produced manifest.json:"
30
+ cat manifest.json
31
+
32
+ cd $UPDATE_PATH
33
+
17
34
echo " Copying backend"
18
35
cp $BACKEND $PI_INSTALL_PATH /coderbot -r
19
36
echo " Cleaning up virtualenv and git artifacts"
@@ -22,6 +39,8 @@ rm -rf $PI_INSTALL_PATH/coderbot/__pycache__
22
39
rm -rf $PI_INSTALL_PATH /coderbot/lib64
23
40
rm -rf $PI_INSTALL_PATH /coderbot/.git
24
41
42
+ rm $BACKEND /manifest.json
43
+
25
44
# TODO: generate backend metadata
26
45
27
46
echo " Building frontend"
You can’t perform that action at this time.
0 commit comments