-
Notifications
You must be signed in to change notification settings - Fork 189
/
quickUpdate.sh
executable file
·34 lines (29 loc) · 1.15 KB
/
quickUpdate.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
31
32
33
34
#!/bin/sh
cd ../mypdf.js
FOLDER="assets"
BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$BRANCH" == "bleeding-edge" ]]; then
FOLDER="bleeding-edge"
fi
gulp minified
cd ../ngx-extended-pdf-viewer
# cd inlineImageFiles
# node index.js $FOLDER
# cd ..
rm -R ./projects/ngx-extended-pdf-viewer/$FOLDER/pdf*.
rm -R ./projects/ngx-extended-pdf-viewer/$FOLDER/viewer*.
mv ../mypdf.js/build/minified/web/pdf.viewer.mjs ../mypdf.js/build/minified/web/viewer.min.mjs
cp -R ../mypdf.js/build/minified/web/locale/* ./projects/ngx-extended-pdf-viewer/$FOLDER/locale/
cp -R ../mypdf.js/build/minified/web/cmaps/* ./projects/ngx-extended-pdf-viewer/$FOLDER/cmaps/
cp -R ../mypdf.js/build/minified/build/pdf.* ./projects/ngx-extended-pdf-viewer/$FOLDER/
cp -R ../mypdf.js/build/minified/web/viewer.mjs* ./projects/ngx-extended-pdf-viewer/$FOLDER/
cp -R ../mypdf.js/build/minified/web/viewer.min* ./projects/ngx-extended-pdf-viewer/$FOLDER/
rm -R ./projects/ngx-extended-pdf-viewer/$FOLDER/*.d.mts
cd addBaseLanguages
# node index.js $FOLDER
node add-additional-translations.js $FOLDER
cd ..
cd add-version-number-to-file-name
node run-outside-ngzone.js
node add-version-number.js
cd ..