1
0
mirror of https://github.com/fumiama/paper-manager.git synced 2026-06-04 23:40:24 +08:00
This commit is contained in:
源文雨
2023-05-01 01:04:45 +08:00
parent b7bcea4cd6
commit e9c4b9975f
2 changed files with 3 additions and 5 deletions

View File

@@ -39,7 +39,9 @@ jobs:
npm install pnpm -g
cd frontend/vben
pnpm i
go generate main.go
npm run build
ls dist
zip -9 -r -D dist.zip dist -x "dist/.DS_Store" "dist/*/.DS_Store"
- name: Build linux-x64
run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -trimpath -o artifacts/paper-manager-linux-x64

View File

@@ -8,10 +8,6 @@ import (
"net/http"
)
//go:generate npm run build
//go:generate zip -9 -r -D dist.zip dist/* -x "dist/.DS_Store" "dist/*/.DS_Store"
//go:embed dist.zip
var distzipbytes []byte