v1.0-beta release

This commit is contained in:
life
2014-10-23 11:41:02 +08:00
parent e4323d0cb2
commit 86ecc55f41

View File

@ -10,6 +10,8 @@ cd ../
# tmp path to store leanote release files # tmp path to store leanote release files
tmp="/Users/life/Desktop/leanote_release" tmp="/Users/life/Desktop/leanote_release"
version=x86_64.v1.0-beta
rm -rf $tmp/leanote rm -rf $tmp/leanote
mkdir -p $tmp/leanote/app mkdir -p $tmp/leanote/app
mkdir -p $tmp/leanote/conf mkdir -p $tmp/leanote/conf
@ -19,6 +21,9 @@ mkdir -p $tmp/leanote/bin
cp -r ./bin/src $tmp/leanote/bin/ cp -r ./bin/src $tmp/leanote/bin/
cp ./bin/run.sh $tmp/leanote/bin/ cp ./bin/run.sh $tmp/leanote/bin/
# LICENSE
cp ./LICENSE $tmp/leanote/
# views # views
cp -r ./app/views $tmp/leanote/app cp -r ./app/views $tmp/leanote/app
# 可不要 # 可不要
@ -39,12 +44,14 @@ cp -r ./messages ./public ./mongodb_backup $tmp/leanote/
rm -r $tmp/leanote/public/tinymce/classes rm -r $tmp/leanote/public/tinymce/classes
rm -r $tmp/leanote/public/upload rm -r $tmp/leanote/public/upload
mkdir $tmp/leanote/public/upload mkdir $tmp/leanote/public/upload
mkdir $tmp/leanote/files
rm -r $tmp/leanote/public/.codekit-cache rm -r $tmp/leanote/public/.codekit-cache
rm $tmp/leanote/public/.DS_Store rm $tmp/leanote/public/.DS_Store
rm $tmp/leanote/public/config.codekit rm $tmp/leanote/public/config.codekit
# make link # make link
cd $tmp/leanote/bin cd $tmp/leanote/bin
mkdir ./src/github.com/leanote
ln -s ../../../../ ./src/github.com/leanote/leanote ln -s ../../../../ ./src/github.com/leanote/leanote
# archieve # archieve
@ -54,8 +61,8 @@ cd $SP
cd ../ cd ../
cp ./bin/leanote-linux $tmp/leanote/bin/ cp ./bin/leanote-linux $tmp/leanote/bin/
cd $tmp cd $tmp
tar -cvf $tmp/leanote-linux-v0.4.bin.tar leanote tar -cvf $tmp/leanote-linux-$version.bin.tar leanote
gzip $tmp/leanote-linux-v0.4.bin.tar gzip $tmp/leanote-linux-$version.bin.tar
# mac # mac
rm $tmp/leanote/bin/leanote-linux rm $tmp/leanote/bin/leanote-linux
@ -63,7 +70,7 @@ cd $SP
cd ../ cd ../
cp ./bin/leanote-mac $tmp/leanote/bin/ cp ./bin/leanote-mac $tmp/leanote/bin/
cd $tmp cd $tmp
tar -cvf $tmp/leanote-mac-v0.4.bin.tar leanote tar -cvf $tmp/leanote-mac-$version.bin.tar leanote
gzip $tmp/leanote-mac-v0.4.bin.tar gzip $tmp/leanote-mac-$version.bin.tar
# BLOCK' # BLOCK'