Skip to content

Commit 5176e75

Browse files
committed
Updated snapcraft
1 parent abb76b0 commit 5176e75

File tree

2 files changed

+56
-3
lines changed

2 files changed

+56
-3
lines changed

Makefile

+29-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,22 @@ clean:
4242
deps: | $(BASE)
4343
@echo Downloading dependencies
4444
@cd $(BASE) && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
45+
@echo Deps for SatHelperApp
4546
@cd $(BASE)/cmd/SatHelperApp && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
47+
@echo Deps for DemuxReplay
4648
@cd $(BASE)/cmd/demuxReplay && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
49+
@echo Deps for xritparse
4750
@cd $(BASE)/cmd/xritparse && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
51+
@echo Deps for xritcat
52+
@cd $(BASE)/cmd/xritcat && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
53+
@echo Deps for xritimg
54+
@cd $(BASE)/cmd/xritimg && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
55+
@echo Deps for xritpdcs
56+
@cd $(BASE)/cmd/xritpdcs && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
57+
@echo Deps for MultiSegmentDump
58+
@cd $(BASE)/cmd/MultiSegmentDump && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
59+
@echo Deps for rpcClient
60+
@cd $(BASE)/cmd/rpcClient && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) get
4861

4962
do-static: | $(BASE)
5063
@echo "Updating Code to have static libLimeSuite"
@@ -61,23 +74,34 @@ update: | do-static $(BASE)
6174
build: | $(BASE)
6275
@echo Building SatHelperApp
6376
@cd $(BASE)/cmd/SatHelperApp && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) build $(GOBUILD_VERSION_ARGS) -o $(BASEDIR)/SatHelperApp
77+
6478
@echo Building DemuxReplay
6579
@cd $(BASE)/cmd/demuxReplay && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) build $(GOBUILD_VERSION_ARGS) -o $(BASEDIR)/DemuxReplay
80+
6681
@echo Building xritparse
6782
@cd $(BASE)/cmd/xritparse && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) build $(GOBUILD_VERSION_ARGS) -o $(BASEDIR)/xritparse
83+
6884
@echo Building xritcat
6985
@cd $(BASE)/cmd/xritcat && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) build $(GOBUILD_VERSION_ARGS) -o $(BASEDIR)/xritcat
86+
7087
@echo Building xritimg
7188
@cd $(BASE)/cmd/xritimg && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) build $(GOBUILD_VERSION_ARGS) -o $(BASEDIR)/xritimg
89+
7290
@echo Building xritpdcs
7391
@cd $(BASE)/cmd/xritpdcs && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) build $(GOBUILD_VERSION_ARGS) -o $(BASEDIR)/xritpdcs
7492

93+
@echo Building MultiSegmentDump
94+
@cd $(BASE)/cmd/MultiSegmentDump && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) build $(GOBUILD_VERSION_ARGS) -o $(BASEDIR)/SatHelperDump
95+
96+
@echo Building rpcClient
97+
@cd $(BASE)/cmd/rpcClient && GO111MODULE=on GOPATH=$(GOPATH) $(GOBIN) build $(GOBUILD_VERSION_ARGS) -o $(BASEDIR)/SatHelperClient
98+
7599

76100
install: | $(BASE)
77101
@echo Installing
78102
@cd $(BASE) && cp $(BASEDIR)/SatHelperApp $(DESTDIR)/SatHelperApp
79103
@chmod +x $(DESTDIR)/SatHelperApp
80-
@cd $(BASE) && cp $(BASEDIR)/SatHelperApp $(DESTDIR)/DemuxReplay
104+
@cd $(BASE) && cp $(BASEDIR)/DemuxReplay $(DESTDIR)/DemuxReplay
81105
@chmod +x $(DESTDIR)/DemuxReplay
82106
@cd $(BASE) && cp $(BASEDIR)/xritparse $(DESTDIR)/xritparse
83107
@chmod +x $(DESTDIR)/xritparse
@@ -87,6 +111,10 @@ install: | $(BASE)
87111
@chmod +x $(DESTDIR)/xritimg
88112
@cd $(BASE) && cp $(BASEDIR)/xritpdcs $(DESTDIR)/xritpdcs
89113
@chmod +x $(DESTDIR)/xritpdcs
114+
@cd $(BASE) && cp $(BASEDIR)/SatHelperDump $(DESTDIR)/SatHelperDump
115+
@chmod +x $(DESTDIR)/SatHelperDump
116+
@cd $(BASE) && cp $(BASEDIR)/SatHelperClient $(DESTDIR)/SatHelperClient
117+
@chmod +x $(DESTDIR)/SatHelperClient
90118

91119
test:
92120
go test -v -race $(shell go list ./... | grep -v /parts/ | grep -v /prime/ | grep -v /snap/ | grep -v /stage/ | grep -v /tmp/ | grep -v /librtlsdr/ )

snap/snapcraft.yaml

+27-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ grade: devel
99
confinement: devmode
1010

1111
architectures:
12-
- build-on: [arm64, amd64]
13-
run-on: [arm64, amd64]
12+
- arm64
13+
- amd64
1414

1515
parts:
1616
ppaadd:
@@ -49,3 +49,28 @@ apps:
4949
sathelperapp:
5050
plugs: [network-bind, network, raw-usb]
5151
command: SatHelperApp
52+
demuxreplay:
53+
plugs: [raw-usb]
54+
command: DemuxReplay
55+
xritparse:
56+
plugs: [raw-usb]
57+
command: xritparse
58+
xritcat:
59+
plugs: [raw-usb]
60+
command: xritcat
61+
xritimg:
62+
plugs: [raw-usb]
63+
command: xritimg
64+
xritimg:
65+
plugs: [raw-usb]
66+
command: xritimg
67+
xritpdcs:
68+
plugs: [raw-usb]
69+
command: xritpdcs
70+
sathelperdump:
71+
plugs: [raw-usb]
72+
command: SatHelperDump
73+
sathelperclient:
74+
plugs: [network-bind, network, raw-usb]
75+
command: SatHelperClient
76+

0 commit comments

Comments
 (0)