Skip to content

Commit

Permalink
Another test for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Sep 18, 2015
1 parent a73d791 commit f27e830
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ deploy:
provider: releases
api_key:
secure: "Nbno1ibFpq0DC6y0mkN6NFTbDQinRAEQo2Jl5lvsbiaX9m4CK59xG8XOcmZ3mqqdeioj6m9X5BVe2UtCZjmXmnyPq0FYNFHAPTfd2VrcOpi0fWLD9ndTYAsqjxrqPGK62XVjPbG8U2pGdq2yCOb0qQ9DlahDhVIMzQ/GYuRDps25fPGftepdPwlrwOfYCIvAHoi3GEozuS67WNEx/YtmZTce/2Qebdmwf44hUNaQibeXEspu9wQcp9M/i7aTuX/tUbn7rVCQ4TfoIJU1C1qKedUw0QYMjqP08Wn6UjwwhbblsJKFv8Kc0nx+i2K9CvvLyaBBIVY2Ggxj4Niy+X4VbyWWzdKx+0FXlmKh3U/hJdMZU3OrnwliBns2X3tCHSq7/+7ynLs3UZ4wCkCl7rQYucJ2mlvGquohQV6MX2vjl73y+pYljf+PKYbSDBb7iUOjllisRD+HmDmGQl81BvdEpN/K/BlfsTwHoHxsALSTjRljSngH51SUvjnaVbi/JolJ3lomTr1vCHl4WUiQVLnh7O2Cg7QLNMNieoblnh9yDQG9wC4xuzOJ/AaxRd/pRZMeIooQ1zsHOe+47C1YAep88b+9xtRqVMozAjk/XgNzWjuT2R8G7lZDq0mL9VajD/NUjM3Yrswoft9A3DRmR+lIFJR+fJb8tNf+k1OczE4lesg="
file: "$GOPATH/bin/v2ray-latest.zip"
file: "$GOPATH/bin/v2ray.zip"
skip_cleanup: true
on:
tags: true
Expand Down
2 changes: 1 addition & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package core

const (
Version = "0.1"
Version = "0.3"
Codename = "Post Apocalypse"
Intro = "A stable and unbreakable connection for every one."
)
9 changes: 4 additions & 5 deletions release/release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION=$(sed -n 's/.*Version = \"\([^"]*\)\"*/\1/p' $GOPATH/src/github.com/v2ray/v2ray-core/core.go)
VERSION=$(sed -n 's/.*Version.*=.*\"\([^"]*\)\".*/\1/p' $GOPATH/src/github.com/v2ray/v2ray-core/core.go)

REL_PATH=$GOPATH/bin/$VERSION
if [ -d "$REL_PATH" ]; then
Expand All @@ -25,12 +25,11 @@ build "windows" "amd64" "-windows-64.exe"
build "linux" "amd64" "-linux-64"
build "linux" "386" "-linux-32"

ZIP_FILE=$GOPATH/bin/v2ray-$VERSION.zip
ZIP_FILE=$GOPATH/bin/v2ray.zip
if [ -f $ZIP_FILE ]; then
rm -f $ZIP_FILE
fi

pushd $REL_PATH
zip -r $GOPATH/bin/v2ray-$VERSION.zip *
cp $GOPATH/bin/v2ray-$VERSION.zip $GOPATH/bin/v2ray-latest.zip
pushd $GOPATH/bin/
zip -r $ZIP_FILE ./$VERSION/*
popd

0 comments on commit f27e830

Please sign in to comment.