forked from shadowsocks/shadowsocks-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
85 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: shadowsocks-go | ||
Version: 0.6-1 | ||
Version: 0.6.1-1 | ||
Section: net | ||
Priority: optional | ||
Architecture: any | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
cd "$( dirname "${BASH_SOURCE[0]}" )/.." | ||
|
||
version=`grep 'const version = ' ./shadowsocks/util.go | sed -e 's/.*= //' | sed -e 's/"//g'` | ||
echo "creating shadowsocks binary version $version" | ||
|
||
export CGO_ENABLED=0 | ||
|
||
ROOT=`pwd` | ||
bindir=$ROOT/bin | ||
mkdir -p $bindir | ||
|
||
build() { | ||
local name | ||
local GOOS | ||
local GOARCH | ||
|
||
prog=shadowsocks-$4 | ||
pushd cmd/$prog | ||
name=$prog-$3-$version | ||
echo "building $name" | ||
GOOS=$1 GOARCH=$2 go build -a || exit 1 | ||
if [[ $1 == "windows" ]]; then | ||
mv $prog.exe $ROOT/script/ | ||
pushd $ROOT/script/ | ||
zip $name.zip $prog.exe shadowsocks-tray.exe | ||
rm -f $prog.exe | ||
mv $name.zip $bindir | ||
popd | ||
else | ||
mv $prog $name | ||
gzip -f $name | ||
mv $name.gz $bindir | ||
fi | ||
popd | ||
} | ||
|
||
build darwin amd64 mac64 local | ||
build linux amd64 linux64 local | ||
build linux 386 linux32 local | ||
build windows amd64 win64 local | ||
build windows 386 win32 local | ||
|
||
#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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters