Skip to content

Commit

Permalink
Include sample config in windows zip bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed May 17, 2013
1 parent 2424372 commit 8dddaf7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions script/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ build() {
if [[ $1 == "windows" ]]; then
mv $prog.exe $ROOT/script/
pushd $ROOT/script/
zip $name.zip $prog.exe shadowsocks.exe
rm -f $prog.exe
cp $ROOT/config.json sample-config.json
cp $ROOT/sample-config/client-multi-server.json multi-server.json
zip $name.zip $prog.exe shadowsocks.exe sample-config.json multi-server.json
rm -f $prog.exe sample-config.json multi-server.json
mv $name.zip $bindir
popd
else
Expand All @@ -48,3 +50,7 @@ build linux 386 linux32 server
#build windows amd64 win64 server
#build windows 386 win32 server

script/createdeb.sh amd64
script/createdeb.sh 386
mv shadowsocks-go_$version-1-*.deb bin/
rm -rf shadowsocks-go_$version-1*
2 changes: 1 addition & 1 deletion script/createdeb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export GOOS=linux

arch=$1
case $arch in
i386)
386)
export GOARCH=386
;;
amd64)
Expand Down
4 changes: 2 additions & 2 deletions script/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ 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
upload "$version Linux Server deb 32bit" bin/shadowsocks-go_$version-1-i386.deb
upload "$version Linux Server deb 64bit" bin/shadowsocks-go_$version-1-amd64.deb

0 comments on commit 8dddaf7

Please sign in to comment.