Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (44 sloc) 1.21 KB
name: s17-turbo-switch
base: core18
adopt-info: s17-turbo-switch
summary: Remotely switch the work mode of an S17 miner
description: |
Remotely switch the work mode of an S17 miner. Requires the S17 miner allow SSH access.
architectures:
- build-on: amd64
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
apps:
s17-turbo-switch:
command: wrapper.sh
plugs:
- network
- ssh-keys
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib
parts:
s17-turbo-switch:
# See 'snapcraft plugins'
plugin: nil
source: .
override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(grep version package.yaml | awk '{ print $NF }')"
override-build: |
if [ ! -x "$(command -v stack)" ]; then
curl -sSL https://get.haskellstack.org/ | sh
fi
stack build --copy-bins
organize:
/root/.local/bin/s17-turbo-switch: bin/s17-turbo-switch
stage-packages:
- libssh2-1
build-packages:
- curl
- libssh2-1-dev
- pkg-config
wrapper:
plugin: dump
source: snap/local
organize:
wrapper.sh: bin/wrapper.sh
You can’t perform that action at this time.