Skip to content

Commit

Permalink
move main.go to wssocks-ustb directory
Browse files Browse the repository at this point in the history
  • Loading branch information
genshen committed Mar 9, 2019
1 parent 18d6190 commit a8464ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
14 changes: 8 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
wssocks-ustb:
go build -o wssocks-ustb
PACKAGE=github.com/genshen/wssocks-plugin-ustb/wssocks-ustb

# wssocks-ustb:
# go build -o wssocks-ustb

all: wssocks-ustb-linux-amd64 wssocks-ustb-darwin-amd64 wssocks-ustb-windows-amd64.exe

wssocks-ustb-linux-amd64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o wssocks-ustb-linux-amd64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o wssocks-ustb-linux-amd64 ${PACKAGE}

wssocks-ustb-darwin-amd64:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o wssocks-ustb-darwin-amd64
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o wssocks-ustb-darwin-amd64 ${PACKAGE}

wssocks-ustb-windows-amd64.exe:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o wssocks-ustb-windows-amd64.exe
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o wssocks-ustb-windows-amd64.exe ${PACKAGE}


clean:
rm wssocks-ustb wssocks-ustb-linux-amd64 wssocks-ustb-darwin-amd64 wssocks-ustb-windows-amd64.exe
rm -f wssocks-ustb-linux-amd64 wssocks-ustb-darwin-amd64 wssocks-ustb-windows-amd64.exe
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ See more about wssocks: https://github.com/genshen/wssocks.

## install
```bash
go get -u github.com/genshen/wssocks-plugin-ustb
go get -u github.com/genshen/wssocks-plugin-ustb/wssocks-ustb
wssocks-ustb --help
```

Or download from [release](https://github.com/genshen/wssocks-plugin-ustb/release) page.
Expand Down
4 changes: 2 additions & 2 deletions main.go → wssocks-ustb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package main

import (
"github.com/genshen/cmds"
"github.com/genshen/wssocks-plugin-ustb/vpn_plugin"
"github.com/genshen/wssocks/client"
_ "github.com/genshen/wssocks/client"
_ "github.com/genshen/wssocks/server"
"log"
//_ "github.com/genshen/wssocks/version"
_ "github.com/genshen/wssocks-plugin-ustb/version"
"github.com/genshen/wssocks-plugin-ustb/vpn_plugin"
_ "github.com/genshen/wssocks-plugin-ustb/wssocks-ustb/version"
)

// initialize USTB vpn (n.ustb.edu.cn) plugin
Expand Down
File renamed without changes.

0 comments on commit a8464ad

Please sign in to comment.