From 1dd1bf8bac5544ad1e19d9f7841e83535cad197b Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Thu, 2 Dec 2021 10:07:41 -0800 Subject: [PATCH] Add Snap targets to Linux makefile --- make-linux.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/make-linux.mk b/make-linux.mk index ca304db7f..0ed644d22 100644 --- a/make-linux.mk +++ b/make-linux.mk @@ -425,4 +425,20 @@ centos-7-setup: FORCE yum install -y centos-release-scl yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ +snap: FORCE + snapcraft + +snap-remote: FORCE + snapcraft remote-build --build-on=amd64,arm64,s390x,ppc64el,armhf,i386 + +snap-upload-beta: FORCE + for SNAPFILE in ./*.snap; do\ + snapcraft upload --release=beta,edge,candidate $${SNAPFILE};\ + done + +snap-upload-stable: FORCE + for SNAPFILE in ./*.snap; do\ + snapcraft upload --release=stable $${SNAPFILE};\ + done + FORCE: