-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproxy.bat
More file actions
41 lines (39 loc) · 1.76 KB
/
proxy.bat
File metadata and controls
41 lines (39 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo
echo 开始安装依赖
set port=10808
set http_proxy=http://127.0.0.1:%port%
set https_proxy=http://127.0.0.1:%port%
git config http.proxy http://127.0.0.1:%port%
:: update=-u就是强制更新
set update=-u
go get %update% github.com/klauspost/asmfmt/cmd/asmfmt
go get %update% github.com/derekparker/delve/cmd/dlv
go get %update% github.com/kisielk/errcheck
go get %update% github.com/davidrjenni/reftools/cmd/fillstruct
go get %update% -u -ldflags -H=windowsgui github.com/stamblerre/gocode
:: go get %update% -u -ldflags -H=windowsgui github.com/mdempsky/gocode
:: go get %update% -ldflags -H=windowsgui github.com/nsf/gocode
go get %update% github.com/koron/iferr
go get %update% github.com/rogpeppe/godef
go get %update% github.com/zmb3/gogetdoc
go get %update% golang.org/x/tools/cmd/goimports
go get %update% github.com/golang/lint/golint
go get %update% github.com/alecthomas/gometalinter
go get %update% github.com/fatih/gomodifytags
go get %update% golang.org/x/tools/cmd/gorename
go get %update% github.com/jstemmer/gotags
go get %update% golang.org/x/tools/cmd/guru
go get %update% github.com/josharian/impl
go get %update% github.com/dominikh/go-tools/cmd/keyify
go get %update% github.com/fatih/motion
:: fzf 依赖
go get %update% github.com/junegunn/fzf
cd %USERPROFILE%/.fzf/
go build
mv .fzf.exe %USERPROFILE%/.fzf/bin/fzf.exe
::tools
echo 如果这一步不行得手动去下载放在能执行的目录
call curl -fLo %USERPROFILE%/Downloads/ag.zip https://github.com/k-takata/the_silver_searcher-win32/releases/download/2018-01-25%2F2.1.0-28-g4aa9f05/ag-2018-01-25_2.1.0-28-g4aa9f05-x64.zip
call unzip %USERPROFILE%/Downloads/ag.zip
EXIT /B
::goto :eof和 EXIT /B 都能返回到之前的call里 但是是不会返回到start里