-
Notifications
You must be signed in to change notification settings - Fork 2
/
snapit
executable file
·30 lines (25 loc) · 917 Bytes
/
snapit
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
#!/bin/bash
# Snapcraft Build Script
# Test commands may be appended
##############################################################################
# SnapCraft VM Setup CMDS
# git clone git+ssh://katamo@git.launchpad.net/~canonical-support-eng/+git/sftp-scripts
# cd sftp-scripts/
# sudo apt update
# sudo apt install python-pip
# sudo snap install snapcraft --classic
#
##############################################################################
# Define build option [lxd, multipass, host]
export SNAPCRAFT_BUILD_ENVIRONMENT=host
# Remove previous snap build
rm ./xjs*amd64.snap
# Build snap with debug enabled & clean build components when done
snapcraft --debug
snapcraft clean
# Install with:
# sudo snap install supctl_0.1_amd64.snap --devmode --dangerous
# OLD CMDS
# source testit
# snapcraft push --release=beta ./supctl_beta2_amd64.snap
# ln supctl_beta2_amd64.snap ~/sp.snap