-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.bat
22 lines (16 loc) · 1 KB
/
deploy.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
call npm run --prefix C:\Users\davel\Desktop\git\star_pi_runner\src\gui build
:: cargo build --target=armv7-unknown-linux-gnueabihf --release
cross build --target armv7-unknown-linux-gnueabihf --release
:: kill all running instance of the star_pi_runner
ssh [email protected] pkill star_pi_runner
:: copy the whole folder to the pi for compiling
scp C:\Users\davel\Desktop\git\star_pi_runner\config.json [email protected]:/home/pi/config.json
scp C:\Users\davel\Desktop\git\star_pi_runner\layout.json [email protected]:/home/pi/layout.json
:: scp C:\Users\davel\Desktop\git\star_pi_runner\layout.json [email protected]:/home/pi/star_pi_runner/layout.json
scp .\target\armv7-unknown-linux-gnueabihf\release\star_pi_runner [email protected]:/home/pi/star_pi_runner
:: scp -p .\src\gui\dist\* pi@raspberrypi:/home/pi/star_pi_runner
:: give the ?necesary? rights
ssh [email protected] chmod +x /home/pi/star_pi_runner
:: ssh [email protected] export DISPLAY=:0
:: run the program
:: ssh pi@raspberrypi /home/pi/star_pi_runner/star_pi_runner