1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-17 13:05:24 +00:00

release script relocation

This commit is contained in:
Darien Raymond 2017-12-25 21:54:44 +01:00
parent e8cad4a126
commit a82ca019b2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
13 changed files with 5 additions and 7 deletions

View File

@ -211,7 +211,7 @@ func loadGeoSite(country string) ([]*Domain, error) {
func TestChinaSites(t *testing.T) {
assert := With(t)
common.Must(sysio.CopyFile(platform.GetAssetLocation("geosite.dat"), filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "tools", "release", "config", "geosite.dat")))
common.Must(sysio.CopyFile(platform.GetAssetLocation("geosite.dat"), filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "release", "config", "geosite.dat")))
domains, err := loadGeoSite("CN")
assert(err, IsNil)

View File

@ -54,7 +54,7 @@ func TestIPNet(t *testing.T) {
func TestGeoIPCN(t *testing.T) {
assert := With(t)
common.Must(sysio.CopyFile(platform.GetAssetLocation("geoip.dat"), filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "tools", "release", "config", "geoip.dat")))
common.Must(sysio.CopyFile(platform.GetAssetLocation("geoip.dat"), filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "release", "config", "geoip.dat")))
ips, err := loadGeoIP("CN")
common.Must(err)
@ -87,7 +87,7 @@ func loadGeoIP(country string) ([]*router.CIDR, error) {
}
func BenchmarkIPNetQuery(b *testing.B) {
common.Must(sysio.CopyFile(platform.GetAssetLocation("geoip.dat"), filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "tools", "release", "config", "geoip.dat")))
common.Must(sysio.CopyFile(platform.GetAssetLocation("geoip.dat"), filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "release", "config", "geoip.dat")))
ips, err := loadGeoIP("CN")
common.Must(err)
@ -105,7 +105,7 @@ func BenchmarkIPNetQuery(b *testing.B) {
}
func BenchmarkCIDRQuery(b *testing.B) {
common.Must(sysio.CopyFile(platform.GetAssetLocation("geoip.dat"), filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "tools", "release", "config", "geoip.dat")))
common.Must(sysio.CopyFile(platform.GetAssetLocation("geoip.dat"), filepath.Join(os.Getenv("GOPATH"), "src", "v2ray.com", "core", "release", "config", "geoip.dat")))
ips, err := loadGeoIP("CN")
common.Must(err)

View File

@ -29,7 +29,7 @@ v2ray --config=<full path>
压缩包中的 .sig 文件为 GPG 签名文件,用来验证对应程序文件的真实性。签名公钥可以在下面的链接找到:
https://github.com/v2ray/v2ray-core/blob/master/tools/release/verify/official_release.asc
https://github.com/v2ray/v2ray-core/blob/master/release/verify/official_release.asc
## 问题反馈

View File

@ -1,2 +0,0 @@
// Package tools contains utilities that is not directly linked into V2Ray binary.
package tools