Expose wallet.sh as a Snap program temporarily

This commit is contained in:
Michael Vines 2018-07-02 16:54:44 -07:00 committed by Grimes
parent f95a79d145
commit 9ae283dc3a
2 changed files with 10 additions and 2 deletions

View File

@ -7,7 +7,13 @@ rsync=rsync
if [[ -d "$SNAP" ]]; then # Running inside a Linux Snap?
solana_program() {
declare program="$1"
printf "%s/command-%s.wrapper" "$SNAP" "$program"
if [[ "$program" = wallet ]]; then
# TODO: Merge wallet.sh functionality into solana-wallet proper and
# remove this special case
printf "%s/bin/solana-%s" "$SNAP" "$program"
else
printf "%s/command-%s.wrapper" "$SNAP" "$program"
fi
}
rsync="$SNAP"/bin/rsync
SOLANA_CUDA="$(snapctl get enable-cuda)"

View File

@ -44,7 +44,9 @@ apps:
client-demo:
command: solana-client-demo
wallet:
command: solana-wallet
# TODO: Merge wallet.sh functionality into solana-wallet proper
command: wallet.sh
#command: solana-wallet
daemon-validator:
daemon: simple