Skip to content

Instantly share code, notes, and snippets.

@sleepdefic1t
Created February 25, 2020 22:26
Show Gist options
  • Save sleepdefic1t/ca8752b21546e7dd50ba123a1afb317f to your computer and use it in GitHub Desktop.
Save sleepdefic1t/ca8752b21546e7dd50ba123a1afb317f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Linker doesn't play nice with Vagrants directory mapping when building for the NanoX.
# credit to @patriksletmo for the tip.
# clean the current project
make clean
# clear the NanoX build destination
sudo rm -rf /home/ubuntu/ledger-app-ark
# copy recursively and take ownership
sudo cp -R ~/apps/ledger-app-ark /home/ubuntu/
sudo chown $USER -R /home/ubuntu/ledger-app-ark
# move to the build directory
cd /home/ubuntu/ledger-app-ark
make
make delete
make load
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment