-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapit
More file actions
executable file
·30 lines (25 loc) · 908 Bytes
/
Copy pathsnapit
File metadata and controls
executable file
·30 lines (25 loc) · 908 Bytes
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 xjs_0.1_amd64.snap --devmode --dangerous
# OLD CMDS
# source testit
# snapcraft push --release=beta ./xjs_beta2_amd64.snap
# ln xjs_beta2_amd64.snap ~/sp.snap