-
Notifications
You must be signed in to change notification settings - Fork 16
/
update.sh
executable file
·35 lines (27 loc) · 1.33 KB
/
update.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
35
#!/usr/bin/env sh
wget https://download.tiny.cloud/tinymce/community/languagepacks/7/langs.zip -O langs7.zip
# wget https://download.tiny.cloud/tinymce/community/languagepacks/6/langs.zip -O langs6.zip
#wget https://download.tiny.cloud/tinymce/community/languagepacks/5/langs.zip -O langs5.zip
wget https://www.tiny.cloud/tinymce-services-azure/1/i18n/download?langs=ar,az,bg_BG,bn_BD,ca,cs,cy,da,de,dv,el,eo,es,es_,es_ES,es_MX,et,eu,fa,fa_IR,fi,fr_FR,ga,gl,he_IL,hi,hr,hu_HU,hy,id,is_IS,it,it_IT,ja,kab,kk,ko_KR,ku,lt,lv,nb_NO,ne,nl,nl_BE,oc,pl,pt_BR,pt_PT,ro,ro_RO,ru,ru_RU,sk,sl,sl_SI,sq,sr,sv_SE,ta,ta_IN,tg,th_TH,tr,tr_TR,ug,uk,vi,zh-Hans,zh_CN,zh_TW -O langs5.zip
wget https://download.tiny.cloud/tinymce/community/languagepacks/4/langs.zip -O langs4.zip
npm install
rm -rf ./langs
rm -rf ./langs5
# rm -rf ./langs6
rm -rf ./langs7
unzip -q langs7.zip
mv langs langs7
./node_modules/.bin/js-beautify -q langs7/*
# langs6 - disabled due to mismatch with langs7
# unzip -q langs6.zip
# mv langs langs6
# ./node_modules/.bin/js-beautify -q langs6/*
# langs5
unzip -q langs5.zip
mv langs langs5
# langs4
unzip -q langs4.zip
git apply patches/*
jq ".version = \"`date +%y.%-m.%-d`\"" package.json > tmp.$$.json && mv tmp.$$.json package.json
jq ".version = \"`date +%y.%-m.%-d`\"" composer.json > tmp.$$.json && mv tmp.$$.json composer.json
npm install