-
Notifications
You must be signed in to change notification settings - Fork 86
/
install.bat
30 lines (21 loc) · 1.42 KB
/
install.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
md out\master && md out\server && md out\master\puppet && md out\master\stub
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
cd Orca_Master\ && go build -o ..\out\master\Orca_Master_win_x64.exe -ldflags "-s -w" && cd ..
cd Orca_Server\ && go build -o ..\out\server\Orca_Server_win_x64.exe -ldflags "-s -w" && cd ..
cd Orca_Puppet\ && go build -o ..\out\master\puppet\Orca_Puppet_win_x64.exe -ldflags "-s -w" && cd ..
cd Orca_Loader\windows && x86_64-w64-mingw32-gcc stub.c lib\x64\winhttp.lib -s -w -o stub_win_x64.exe && cd ..\..
cd Orca_Loader\windows && x86_64-w64-mingw32-gcc stub.c lib\x64\winhttp.lib -s -w -o stub_win_x64.dll -shared -s -DBUILD_DLL && cd ..\..
set GOOS=linux
cd Orca_Puppet\ && go build -o ..\out\master\puppet\Orca_Puppet_linux_x64 -ldflags "-s -w" && cd ..
set GOARCH=386
cd Orca_Puppet\ && go build -o ..\out\master\puppet\Orca_Puppet_linux_x86 -ldflags "-s -w" && cd ..
set GOOS=windows
cd Orca_Puppet\ && go build -o ..\out\master\puppet\Orca_Puppet_win_x86.exe -ldflags "-s -w" && cd ..
rem x86-stub.c needs to be compiled using visualstudio (msvc).
xcopy /s /y Orca_Master\3rd_party\ out\master\3rd_party\
xcopy /s /y Orca_Server\db\ out\server\db\
xcopy /s /y Orca_Server\conf\ out\server\conf\
move /y Orca_Loader\windows\stub_win_x64.exe out\master\stub\stub_win_x64.exe
move /y Orca_Loader\windows\stub_win_x64.dll out\master\stub\stub_win_x64.dll
pause