mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-29 20:36:40 +00:00
chore: add build test for windows
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
(cd webui && npm i && npm run build)
|
||||
|
||||
for bin in backrest-*; do
|
||||
rm -f $bin
|
||||
done
|
||||
|
||||
find webui/dist -name '*.map' -exec rm ./{} \;
|
||||
|
||||
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o backrest-linux-amd64
|
||||
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o backrest-linux-arm64
|
||||
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o backrest-darwin-amd64
|
||||
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o backrest-darwin-arm64
|
||||
|
||||
for bin in backrest-*; do
|
||||
rice append --exec $bin
|
||||
done
|
||||
@@ -1,7 +0,0 @@
|
||||
#! /bin/sh
|
||||
set -x
|
||||
|
||||
(cd webui && npm i && npm run build)
|
||||
rm -f backrest
|
||||
go build .
|
||||
rice append --exec backrest
|
||||
@@ -1,4 +0,0 @@
|
||||
#! /bin/sh
|
||||
set -x
|
||||
|
||||
go install github.com/GeertJohan/go.rice/rice@latest
|
||||
@@ -1,4 +0,0 @@
|
||||
#! /bin/sh
|
||||
set -x
|
||||
|
||||
DEBUG=1 go run .
|
||||
Reference in New Issue
Block a user