bili-archive
如何使用
运行可执行文件,打开浏览器localhost:8080
。
(请勿关闭 Console
)
如何构建
clone
该项目
git clone https://github.com/Yesterday17/bili-archive.git
cd ./bili-archive
- 获得
statik
go get github.com/rakyll/statik
- 编译前端
cd ./bili-archive-frontend
yarn install
yarn build
- 打包前端
statik -src=./public -f
- 构建
set CGO_ENABLED=0
# 选择架构(amd64, 386, arm)
set GOARCH=amd64
# 选择平台(windows, linux, darwin, freebsd)
set GOOS=windows
go build -o ./build/bili_archive_windows_x64.exe
set GOOS=darwin
go build -o ./build/bili_archive_darwin_amd64
set GOOS=linux
go build -o ./build/bili_archive_linux_amd64