-
Notifications
You must be signed in to change notification settings - Fork 9
/
upload.sh
executable file
·43 lines (42 loc) · 2.45 KB
/
upload.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#/bin/sh
baud=$2
if [ -z "$1" ]; then
echo "This script requires an argument: USB device port"
exit 1;
fi
if [ -z "$2" ]; then
echo "Setting baudrate to default: 115200"
baud=115200
#Default nodemcu 1.5+ baudrate
fi
nodemcu-tool upload espress.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload espress_init.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_default_handler.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_getondata.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_prototypes.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_request.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_request_buffer.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_request_processor.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_response_send.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_response_sendfile.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload http_response.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload plugins/auth_api_key.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload plugins/router.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload plugins/routes_auto.lua --port $1 --compile --optimize --baud $baud
nodemcu-tool upload status-codes/http-200 --port $1 --baud $baud
nodemcu-tool upload status-codes/http-302 --port $1 --baud $baud
nodemcu-tool upload status-codes/http-400 --port $1 --baud $baud
nodemcu-tool upload status-codes/http-401 --port $1 --baud $baud
nodemcu-tool upload status-codes/http-403 --port $1 --baud $baud
nodemcu-tool upload status-codes/http-404 --port $1 --baud $baud
nodemcu-tool upload status-codes/http-405 --port $1 --baud $baud
nodemcu-tool upload status-codes/http-500 --port $1 --baud $baud
nodemcu-tool upload status-codes/http-503 --port $1 --baud $baud
nodemcu-tool upload mime-types/type-css --port $1 --baud $baud
nodemcu-tool upload mime-types/type-html --port $1 --baud $baud
nodemcu-tool upload mime-types/type-jpg --port $1 --baud $baud
nodemcu-tool upload mime-types/type-gif --port $1 --baud $baud
nodemcu-tool upload mime-types/type-js --port $1 --baud $baud
nodemcu-tool upload mime-types/type-json --port $1 --baud $baud
nodemcu-tool upload mime-types/type-png --port $1 --baud $baud
nodemcu-tool upload mime-types/type-ico --port $1 --baud $baud