Spaces:
Sleeping
Sleeping
Create render-build.sh
Browse files- render-build.sh +15 -0
render-build.sh
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set -o errexit
|
2 |
+
|
3 |
+
STORAGE_DIR=/opt/render/project/.render
|
4 |
+
|
5 |
+
if [[ ! -d $STORAGE_DIR/chrome ]]; then
|
6 |
+
echo "...Downloading Chrome"
|
7 |
+
mkdir -p $STORAGE_DIR/chrome
|
8 |
+
cd $STORAGE_DIR/chrome
|
9 |
+
wget -P ./ https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
10 |
+
dpkg -x ./google-chrome-stable_current_amd64.deb $STORAGE_DIR/chrome
|
11 |
+
rm ./google-chrome-stable_current_amd64.deb
|
12 |
+
cd $HOME/project/src # Make sure we return to where we were
|
13 |
+
else
|
14 |
+
echo "...Using Chrome from cache"
|
15 |
+
fi
|