Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Embed app.hex into installer
Browse files Browse the repository at this point in the history
  • Loading branch information
garious committed Mar 3, 2020
1 parent 173b6f0 commit 34920a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ deploy:
- provider: releases
skip_cleanup: true
file:
- solana-ledger-app.tar.gz
- install.sh
api_key:
secure: PL336gAG73GcuxkvZDvRaBtKYyv4Oc7aOj8PlMkh4YrOcnjkTWhBsVZqx9u4vvFX8CIBWc4a9mVY3vHRk2w9ygUF9eo/Gwked7MN444SGLx1vcK+ojkiKv5FON2UQk3D9AnTQ6eLUYLQgGIOr0hN+UXVW36iZ8CGN84Ei2wzeyqRv24DeZel5spvY7Nt8X8KAhGGoenQlKAYxXc8UgTyOLlmVAwLEgMZYsuc8ju8q+JuwxJYFrZidWmXts6StfJ3nuB8j4OQnTvHWUs6gtFMk0phazmYWUOjeHyzORIOcyXT2KNSCux9F4sV0j0n+53lgeLID/SmLRtIwo8O6WSmmDeOwiqRFV0/DT1KdG4z2X/7y9VTIfmwQwy3xQjLnSczvlR3jXoNbDfd+R13srBFY13FXT+dAiGpp82nTWqwytkBeVjz/9pSWxiAFDF8B8cHCNIlRH+zTKr9VhUZNPSx9tPK3lftT+mUTJNt5a5Ksb5jy+/SX5HirtUgXTy3Ui8MrqpNiytz5wnb3mapIMsfy1ZBfjbYWXjrPZ5zVfuSVAWkPXRm3YSi4h5TZ8kaeag7LTl85D5im74vsQ442dnTGS71nOzkAcr8MXBO2nFOQw1jzBsXVrJFlLvHNwyN11VsBw210H9G4qibmVQPB5YZ2hleMN48/Bkj4MzHpTxFm94=
on:
Expand Down
10 changes: 6 additions & 4 deletions host.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ delete:
python3 -m ledgerblue.deleteApp $(COMMON_DELETE_PARAMS)

release:
@echo "#!/usr/bin/env bash" > install.sh
@echo "mkdir -p bin && cat <<EOF >> bin/app.hex" >> install.sh
@cat bin/app.hex >> install.sh
@echo "EOF" >> install.sh
export APP_LOAD_PARAMS_EVALUATED="$(shell printf '\\"%s\\" ' $(APP_LOAD_PARAMS))"; \
cat load-template.sh | envsubst > load.sh
chmod +x load.sh
tar -zcf solana-ledger-app.tar.gz load.sh bin/app.hex
rm load.sh
cat install-template.sh | envsubst >> install.sh
chmod +x install.sh

deps:
python3 -mpip install ledgerblue
1 change: 1 addition & 0 deletions load-template.sh → install-template.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
python3 -m venv ledger-env
ledger-env/bin/pip3 install ledgerblue
ledger-env/bin/python3 -m ledgerblue.loadApp $APP_LOAD_PARAMS_EVALUATED
rm -rf ledger-env

0 comments on commit 34920a5

Please sign in to comment.