修改sed脚本
continuous-integration/drone/push Build is failing Details

This commit is contained in:
giaogiao 2023-09-12 11:33:01 +08:00
parent f7cc3dc5cf
commit 5b22ff9cb2
1 changed files with 4 additions and 4 deletions

View File

@ -42,10 +42,10 @@ steps:
- pwd
- rm -rf ./app/*
- cp -r /go/web/build ./app
- sed 's/\/static/\/static\/static/g' ./app/index.html
- sed 's/\/favicon.ico/\/static\/favicon.ico/g' ./app/index.html
- sed 's/\/logo192.png/\/static\/logo192.png/g' ./app/index.html
- sed 's/\/manifest.json/\/static\/manifest.json/g' ./app/index.html
- sed 's?/static?/static/static?g' ./app/index.html
- sed 's?/favicon.ico?/static/favicon.ico?g' ./app/index.html
- sed 's?/logo192.png?/static/logo192.png?g' ./app/index.html
- sed 's?/manifest.json?/static/manifest.json?g' ./app/index.html
- go build -o main
- cp main /root/web/
volumes: