-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpredeploy.sh
30 lines (26 loc) · 933 Bytes
/
predeploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# predeploy.sh
# remove the version hash from our base javascript file for a stable URL
find dist/assets -name "index*.js" -exec mv '{}' build/static/js/main.js \;
# do the same for the CSS file
find dist/assets -name "index*.css" -exec mv '{}' build/static/css/main.css \;
# move all the files from ./themes into ./static/css
cp -r ./themes/* ./build/static/css
# delete all folders that aren't ./static in ./build folder => don't delete the folder ./build
rm -rf "./build/audio"
rm -rf "./build/code"
rm -rf "./build/compressed_files"
rm -rf "./build/data"
rm -rf "./build/images"
rm -rf "./build/microsoft"
rm -rf "./build/pdf"
rm -rf "./build/video"
# log into the venv
source venv/Scripts/activate
# install the requirements
# pip install -r requirements.txt
# run the python script
# python ./get_all_versions_build.py
#remove the temp folder recursively
rm -rf "./temp"
#remove the temp.tar.gz file
rm -rf "./temp.tar.gz"