mirror of
https://github.com/edgebox-iot/edgeboxctl.git
synced 2026-09-24 05:41:43 +02:00
Compare commits
2
Commits
f0047a7a0c
...
db56530311
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db56530311 | ||
|
|
319acbd0e1 |
@@ -21,6 +21,10 @@ build-arm64:
|
||||
build-armhf:
|
||||
GOOS=linux GOARCH=arm RELEASE=prod make build
|
||||
|
||||
build-amd64:
|
||||
GOOS=linux GOARCH=amd64 RELEASE=prod make build
|
||||
|
||||
|
||||
build:
|
||||
@echo "Building ${GOOS}-${GOARCH}"
|
||||
GOOS=${GOOS} GOARCH=${GOARCH} go build \
|
||||
@@ -41,7 +45,7 @@ test-with-coverage:
|
||||
go test -tags=unit -timeout=600s -v ./... -coverprofile=coverage.out
|
||||
|
||||
install:
|
||||
sudo systemctl stop edgeboxctl
|
||||
sudo systemctl stop edgeboxctl || true
|
||||
sudo rm -rf /usr/local/bin/edgeboxctl /usr/local/sbin/edgeboctl /lib/systemd/system/edgeboxctl.service
|
||||
sudo cp ./bin/edgeboxctl /usr/local/bin/edgeboxctl
|
||||
sudo cp ./bin/edgeboxctl /usr/local/sbin/edgeboxctl
|
||||
@@ -54,6 +58,7 @@ install-prod: build-prod install
|
||||
install-cloud: build-cloud install
|
||||
install-arm64: build-arm64 install
|
||||
install-armhf: build-armhf install
|
||||
install-amd64: build-amd64 install
|
||||
|
||||
start:
|
||||
systemctl start edgeboxctl
|
||||
|
||||
Reference in New Issue
Block a user