Skip to content

Commit

Permalink
v1.4.2 released
Browse files Browse the repository at this point in the history
  • Loading branch information
lealife committed Dec 25, 2015
1 parent e685a99 commit 530f236
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 16 deletions.
6 changes: 3 additions & 3 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SP=$(cd "$(dirname "$0")"; pwd)
tmp="/Users/life/Desktop/leanote_release"

# version
V="v1.4.1"
V="v1.4.2"

##=================================
# 1. 先build 成 3个平台, 2种bit = 6种
Expand Down Expand Up @@ -124,9 +124,9 @@ function tarRelease()
suffix=""
if [ $2 = "arm" ]
then
cp ./bin/run_arm.sh $tmp/leanote/bin/run.sh
cp ./bin/run-arm.sh $tmp/leanote/bin/run.sh
else
cp ./bin/run.sh $tmp/leanote/bin/
cp ./bin/run-$1-$2.sh $tmp/leanote/bin/run.sh
fi
else
cp ./bin/run.bat $tmp/leanote/bin/
Expand Down
File renamed without changes.
13 changes: 1 addition & 12 deletions bin/run.sh → bin/run-darwin-amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote
# set GOPATH
export GOPATH=$SCRIPTPATH

# run
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"
script="$SCRIPTPATH/leanote-darwin-amd64"
chmod 777 $script
$script -importPath github.com/leanote/leanote
18 changes: 18 additions & 0 deletions bin/run-linux-386.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
SCRIPTPATH=$(cd "$(dirname "$0")"; pwd)

# set link

path="$SCRIPTPATH/src/github.com/leanote"
if [ ! -d "$path" ]; then
mkdir -p "$path"
fi
rm -rf $SCRIPTPATH/src/github.com/leanote/leanote # 先删除
ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote

# set GOPATH
export GOPATH=$SCRIPTPATH

script="$SCRIPTPATH/leanote-linux-386"
chmod 777 $script
$script -importPath github.com/leanote/leanote
18 changes: 18 additions & 0 deletions bin/run-linux-amd64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
SCRIPTPATH=$(cd "$(dirname "$0")"; pwd)

# set link

path="$SCRIPTPATH/src/github.com/leanote"
if [ ! -d "$path" ]; then
mkdir -p "$path"
fi
rm -rf $SCRIPTPATH/src/github.com/leanote/leanote # 先删除
ln -s ../../../../ $SCRIPTPATH/src/github.com/leanote/leanote

# set GOPATH
export GOPATH=$SCRIPTPATH

script="$SCRIPTPATH/leanote-linux-amd64"
chmod 777 $script
$script -importPath github.com/leanote/leanote
3 changes: 2 additions & 1 deletion public/js/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ function initEditor() {
// content_css 不再需要
// content_css : [LEA.sPath + "/css/editor/editor.css"], // .concat(em.getWritingCss()),
skin : "custom",
language: LEA.locale, // 语言
// tinymce just support en & zh lang currently
language: LEA.locale != 'en' && LEA.locale != 'zh' ? 'en' : LEA.locale,
plugins : [
"autolink link leaui_image lists hr", "paste",
"searchreplace leanote_nav leanote_code tabfocus",
Expand Down
1 change: 1 addition & 0 deletions public/js/i18n/blog.pt.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/js/i18n/msg.pt.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 530f236

Please sign in to comment.