mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
doc: add SSID and PASS env sets, update deploy.sh accordingly
This commit is contained in:
10
deploy.sh
10
deploy.sh
@@ -22,6 +22,16 @@ then
|
|||||||
echo "install with this command: cargo install cargo-espflash"
|
echo "install with this command: cargo install cargo-espflash"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if [ -z "$SSID" ]
|
||||||
|
then
|
||||||
|
echo "Please set environment variable SSID to the SSID of the wifi you'll use to configure your sphinx-key."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [ -z "$PASS" ]
|
||||||
|
then
|
||||||
|
echo "Please set environment variable PASS to the password of the wifi you'll use to configure your sphinx-key."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
for FILE in /dev/tty.*
|
for FILE in /dev/tty.*
|
||||||
do
|
do
|
||||||
if check_port $FILE
|
if check_port $FILE
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ cargo generate --vcs none --git https://github.com/esp-rs/esp-idf-template cargo
|
|||||||
- `cd ~`
|
- `cd ~`
|
||||||
- `git clone https://github.com/stakwork/sphinx-key.git`
|
- `git clone https://github.com/stakwork/sphinx-key.git`
|
||||||
- `cd sphinx-key`
|
- `cd sphinx-key`
|
||||||
|
- `export SSID=wifi_name_you'll_use_to_configure_sphinx_key}`
|
||||||
|
- `export PASS=password_of_wifi_you'll_use_to_configure_sphinx_key`
|
||||||
- `./deploy.sh`. This commands takes a while, it builds and flashes everything!
|
- `./deploy.sh`. This commands takes a while, it builds and flashes everything!
|
||||||
- You will eventually be shown the logs of the signer.
|
- You will eventually be shown the logs of the signer.
|
||||||
- Wait for the message `Waiting for data from the phone!`. The LED should blink green.
|
- Wait for the message `Waiting for data from the phone!`. The LED should blink green.
|
||||||
|
|||||||
Reference in New Issue
Block a user