-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathrelex
35 lines (30 loc) · 949 Bytes
/
relex
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
#!/bin/sh
#Move
echo "....../ Start to Copy File /......."
rm -rf ~/release/* ;
cp -R ~/studio/rabbook/rabbook-pro/* ~/release/ ;
rm ~/release/tags;
mv ~/release/rabbook-pro.pem.backup ~/rabbook-pro.pem;
echo "....../ Copy File Done /......."
#COMPRESS
echo "....../ Start to Compress File /......."
for x in ~/release/js/*.js ~/release/css/*.css ~/release/plugins/*.js
do
echo "-> " $x
java -jar ~/bin/yuicomp.jar $x -o $x --charset utf-8
done
echo "....../ Compress Done /......."
if [ $1 = "zip" ]
then
cd ~/release && zip -r ~/release.zip * && rm -rf ~/release/* && mv ~/release.zip ~/release/
rm ~/rabbook-pro.pem;
echo "....../ Generate Done /......."
fi
##Pack
if [ $1 = "crx" ]
then
echo "Start to PACK =====>"
chromium --pack-extension="/home/claud/release" --pack-extension-key="/home/claud/rabbook-pro.pem" && rm -rf ~/release/* && mv ~/release.* ~/release && rm ~/rabbook-pro.pem
rm ~/rabbook-pro.pem;
echo "PACK DONE!"
fi