打包的时候打包arm和amd64
continuous-integration/drone/push Build is passing Details

This commit is contained in:
giaogiao 2023-09-12 17:20:37 +08:00
parent ed66feaf52
commit a900f81019
1 changed files with 4 additions and 1 deletions

View File

@ -43,7 +43,10 @@ steps:
- sed -i 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html - sed -i 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html
- sed -i 's?/logo192.png?/static/logo192.png?g' ./app/index.html - sed -i 's?/logo192.png?/static/logo192.png?g' ./app/index.html
- sed -i 's?/manifest.json?/static/manifest.json?g' ./app/index.html - sed -i 's?/manifest.json?/static/manifest.json?g' ./app/index.html
- CGO_ENABLED=0 GOOS=windows go build -o /root/web/main.exe - CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o /root/web/windows_amd64_main.exe
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o /root/web/linux_arm64_main
- CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -o /root/web/linux_arm_main
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /root/web/linux_amd64_main
volumes: volumes:
- name: outdir - name: outdir
host: host: