forked from viamrobotics/rdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packaging.make
32 lines (26 loc) · 1.17 KB
/
packaging.make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
BUILD_CHANNEL?=local
appimage: NO_UPX=1
appimage: server-static
cd etc/packaging/appimages && BUILD_CHANNEL=${BUILD_CHANNEL} appimage-builder --recipe viam-server-`uname -m`.yml
if [ "${RELEASE_TYPE}" = "stable" ]; then \
cd etc/packaging/appimages; \
BUILD_CHANNEL=stable appimage-builder --recipe viam-server-`uname -m`.yml; \
fi
mkdir -p etc/packaging/appimages/deploy/
mv etc/packaging/appimages/*.AppImage* etc/packaging/appimages/deploy/
chmod 755 etc/packaging/appimages/deploy/*.AppImage
# AppImage packaging targets run in canon docker
appimage-multiarch: appimage-amd64 appimage-arm64
appimage-amd64:
canon --arch amd64 make appimage
appimage-arm64:
canon --arch arm64 make appimage
appimage-deploy:
gsutil -m -h "Cache-Control: no-cache" cp etc/packaging/appimages/deploy/* gs://packages.viam.com/apps/viam-server/
static-release: server-static
rm -rf etc/packaging/static/deploy/
mkdir -p etc/packaging/static/deploy/
cp $(BIN_OUTPUT_PATH)/viam-server etc/packaging/static/deploy/viam-server-${BUILD_CHANNEL}-`uname -m`
if [ "${RELEASE_TYPE}" = "stable" ]; then \
cp $(BIN_OUTPUT_PATH)/viam-server etc/packaging/static/deploy/viam-server-stable-`uname -m`; \
fi