Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ixre committed Dec 2, 2020
1 parent 676658c commit d9f828c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

// 版本号
const BuildVersion = "0.3.23"
const BuildVersion = "0.4.0"

// 代码页
const ReleaseCodeHome = "https://github.com/ixre/tto"
Expand Down
13 changes: 10 additions & 3 deletions install
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/usr/bin/env sh

mkdir -p ~/.tto
curl -L https://github.com/ixre/tto/releases/download/v0.3.23/tto-generator-bin.tar.gz | tar xz -C ~/.tto
set -e && mkdir -p ~/.tto
curl -L https://github.com/ixre/tto/releases/download/v0.4.0/tto-generator-bin.tar.gz | tar xz -C ~/.tto

echo '============================'
echo 'check access..'
sudo -i
echo 'installing...'

GOOS=$(uname)
if [ "$GOOS" = 'Darwin' ]; then
sudo mv ~/.tto/mac-tto /usr/local/bin/tto
Expand All @@ -12,7 +18,8 @@ elif [ "$GOOS" = 'Windows' ] || \
else
sudo mv ~/.tto/tto /usr/local/bin
fi
rm -rf ~/.tto && echo "恭喜,安装成功!"

rm -rf ~/.tto && echo "install finished!"



0 comments on commit d9f828c

Please sign in to comment.