-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.bat
41 lines (27 loc) · 801 Bytes
/
make.bat
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
@set PACKAGE_PATH=gitee.com\lwj8507\light-protoactor-go
@set WORK_DIR=%GOPATH%\src\%PACKAGE_PATH%
@set VENDOR_DIR=%WORK_DIR%\vendor
@IF "%1" == "glide-up" call :glide-up & goto :exit
@IF "%1" == "zip-vendor" call :zip-vendor & goto :exit
@IF "%1" == "unzip-vendor" call :unzip-vendor & goto :exit
@echo unsupported operate [%1]
@goto :exit
:glide-up
@echo glide up begin
glide up --strip-vendor
@echo glide up end
@goto :exit
:zip-vendor
@echo zip [vendor] begin
del "%VENDOR_DIR%.zip"
del "%VENDOR_DIR%\gitee.com\lwj8507\nggs\vendor.zip"
7z a -tzip "%VENDOR_DIR%.zip" "%VENDOR_DIR%"
@echo zip [vendor] end
@goto :exit
:unzip-vendor
@echo unzip [vendor] begin
rmdir /q /s "%WORK_DIR%\vendor"
7z x "%WORK_DIR%\vendor.zip" -y -aos -o"%WORK_DIR%"
@echo unzip [vendor] end
@goto :exit
:exit