diff --git a/script/build.sh b/script/build.sh index c616c6a..266d5f0 100755 --- a/script/build.sh +++ b/script/build.sh @@ -42,9 +42,9 @@ build linux 386 linux32 local build windows amd64 win64 local build windows 386 win32 local +build linux amd64 linux64 server +build linux 386 linux32 server #build darwin amd64 mac64 server -#build linux amd64 linux64 server -#build linux 386 linux32 server #build windows amd64 win64 server #build windows 386 win32 server diff --git a/script/shadowsocks-tray.exe b/script/shadowsocks-tray.exe index bcf285f..b1f343e 100755 Binary files a/script/shadowsocks-tray.exe and b/script/shadowsocks-tray.exe differ diff --git a/script/upload.sh b/script/upload.sh new file mode 100755 index 0000000..15507e5 --- /dev/null +++ b/script/upload.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +cd "$( dirname "${BASH_SOURCE[0]}" )/.." + +if [[ $# != 2 ]]; then + echo "upload.sh " + exit 1 +fi + +version=$(awk '/\tconst version =/ { print $4 }' shadowsocks/util.go | sed -e 's/"//g') +username=$1 +passwd=$2 + +upload() { + summary=$1 + file=$2 + googlecode_upload.py -l Featured -u "$username" -w "$passwd" -s "$summary" -p "shadowsocks-go" "$file" +} + +upload "$version OS X Client 64bit" bin/shadowsocks-local-mac64-$version.gz +upload "$version Linux Client 32bit" bin/shadowsocks-local-linux32-$version.gz +upload "$version Linux Client 64bit" bin/shadowsocks-local-linux64-$version.gz +upload "$version Windows Client 32bit" bin/shadowsocks-local-win64-$version.zip +upload "$version Windows Client 32bit" bin/shadowsocks-local-win32-$version.zip + +upload "$version Linux Server 32bit" bin/shadowsocks-server-linux32-$version.gz +upload "$version Linux Server 64bit" bin/shadowsocks-server-linux64-$version.gz + +upload "$version Linux Server deb 32bit" bin/shadowsocks-go_0.6.1-1-i386.deb +upload "$version Linux Server deb 64bit" bin/shadowsocks-go_0.6.1-1-amd64.deb +