1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-10 22:36:04 -05:00

Another test for travis

This commit is contained in:
V2Ray 2015-09-18 14:35:50 +02:00
parent a73d791af0
commit f27e8308cb
3 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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."
)

View File

@ -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
@ -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