From f3a0a786c514bee0b5c57a7c1e60c9ff2fcf4505 Mon Sep 17 00:00:00 2001 From: life Date: Mon, 20 Apr 2015 20:51:03 +0800 Subject: [PATCH] release --- app/views/home/header.html | 1 - bin/release.sh | 4 ++++ bin/run.sh | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/app/views/home/header.html b/app/views/home/header.html index 99b4558..ffc8bab 100644 --- a/app/views/home/header.html +++ b/app/views/home/header.html @@ -42,7 +42,6 @@ function log(o) { -
  • {{msg . "download"}}
  • {{msg . "donate"}}
  • lea++
  • diff --git a/bin/release.sh b/bin/release.sh index 6fd1b83..78802e3 100644 --- a/bin/release.sh +++ b/bin/release.sh @@ -75,6 +75,10 @@ cp -r ./app/views $tmp/leanote/app # conf cp ./conf/app.conf $tmp/leanote/conf/app.conf cp ./conf/routes $tmp/leanote/conf/routes +# 处理app.conf, 还原配置 +cat $tmp/leanote/conf/app.conf | sed 's/db.dbname=leanote.*#/db.dbname=leanote #/' > $tmp/leanote/conf/app.conf2 # 不能直接覆盖 +rm $tmp/leanote/conf/app.conf +mv $tmp/leanote/conf/app.conf2 $tmp/leanote/conf/app.conf # others cp -r ./messages ./public ./mongodb_backup $tmp/leanote/ diff --git a/bin/run.sh b/bin/run.sh index 2832656..887f64e 100644 --- a/bin/run.sh +++ b/bin/run.sh @@ -17,6 +17,13 @@ export GOPATH=$GOPATH:$SCRIPTPATH osName=`uname` # Darwin or Linux osName=`tr '[A-Z]' '[a-z]' <<<"$osName"` # toLowerCase bit=`getconf LONG_BIT` # 32, 64 +if [ $bit = "64" ] +then + bit="amd64" +else + bit="386" +fi + script="$SCRIPTPATH/leanote-$osName-$bit" chmod 777 $script $script -importPath github.com/leanote/leanote \ No newline at end of file