-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
27 lines (22 loc) · 717 Bytes
/
build.bat
File metadata and controls
27 lines (22 loc) · 717 Bytes
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
@echo off
echo Building OKX Quant Trading System...
set VERSION=1.0.0
set OUTPUT=release\okx-quant-%VERSION%
if exist %OUTPUT% rmdir /s /q %OUTPUT%
mkdir %OUTPUT%
mkdir %OUTPUT%\configs
mkdir %OUTPUT%\web\static\css
mkdir %OUTPUT%\web\static\js
mkdir %OUTPUT%\logs
echo Compiling...
go build -ldflags="-s -w" -o %OUTPUT%\trader.exe ./cmd/trader
echo Copying files...
copy configs\config.yaml.example %OUTPUT%\configs\ >nul
copy configs\config.yaml %OUTPUT%\configs\ >nul
copy web\index.html %OUTPUT%\web\ >nul
copy web\config.html %OUTPUT%\web\ >nul
copy web\static\css\style.css %OUTPUT%\web\static\css\ >nul
copy web\static\js\app.js %OUTPUT%\web\static\js\ >nul
echo Done! Output: %OUTPUT%
dir %OUTPUT%
pause