File tree 7 files changed +40
-17
lines changed
7 files changed +40
-17
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ cd "$(dirname "$0")/.."
5
5
6
6
rm -rf dist
7
7
cp -r public dist
8
- script/download_js_sdk
8
+ script/download_js_ble_sdk
9
+ script/download_js_serial_sdk
9
10
10
11
NODE_ENV=production npm exec -- eleventy
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ cd "$(dirname "$0")/.."
5
5
6
6
rm -rf dist
7
7
cp -r public dist
8
- script/download_js_sdk
8
+ script/download_js_ble_sdk
9
+ script/download_js_serial_sdk
9
10
10
11
# Quit all background tasks when script exits
11
12
trap "kill 0" EXIT
Original file line number Diff line number Diff line change
1
+ # Stop on errors
2
+ set -e
3
+
4
+ cd "$(dirname "$0")/.."
5
+
6
+ SDK_VER=latest
7
+
8
+ DOWNLOAD_URL=$(npm view improv-wifi-sdk@$SDK_VER dist.tarball)
9
+
10
+ rm -rf dist/sdk-ble-js
11
+ mkdir -p dist/sdk-ble-js
12
+
13
+ curl $DOWNLOAD_URL | tar zx -C dist/sdk-ble-js --strip-components 3 package/dist/web
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # Stop on errors
2
+ set -e
3
+
4
+ cd "$(dirname "$0")/.."
5
+
6
+ SDK_VER=latest
7
+
8
+ DOWNLOAD_URL=$(npm view improv-wifi-serial-sdk@$SDK_VER dist.tarball)
9
+
10
+ rm -rf dist/sdk-serial-js
11
+ mkdir -p dist/sdk-serial-js
12
+
13
+ curl $DOWNLOAD_URL | tar zx -C dist/sdk-serial-js --strip-components 3 package/dist/web
Original file line number Diff line number Diff line change 51
51
name ="twitter:image "
52
52
content ="https://www.improv-wifi.com/images/social.png "
53
53
/>
54
- < script type ="module " src ="/sdk-js/launch-button.js "> </ script >
54
+ < script type ="module " src ="/sdk-ble-js/launch-button.js "> </ script >
55
+ < script type ="module " src ="/sdk-serial-js/serial-launch-button.js "> </ script >
55
56
</ head >
56
57
< body >
57
58
< div class ="container ">
Original file line number Diff line number Diff line change 29
29
Both protocols can also be used from a browser.
30
30
</ p >
31
31
< div >
32
+ < h3 > Improv via BLE</ h3 >
32
33
< improv-wifi-launch-button >
33
34
< span slot ="unsupported ">
34
35
Your browser is not supported. To try it out, visit this page with Google
37
38
> .
38
39
</ span >
39
40
</ improv-wifi-launch-button >
41
+ < h3 > Improv via Serial</ h3 >
40
42
< improv-wifi-serial-launch-button >
41
- < span slot ="unsupported "> </ span >
43
+ < span slot ="unsupported ">
44
+ Your browser is not supported. To try it out, visit this page with Google
45
+ Chrome or Microsoft Edge< span class ="not-supported-i hidden ">
46
+ (but not on your iOS device)</ span
47
+ > .
48
+ </ span >
42
49
</ improv-wifi-serial-launch-button >
43
50
</ div >
44
51
< p >
You can’t perform that action at this time.
0 commit comments