Skip to content

Commit

Permalink
update:斐讯r1安装脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
matteriot committed Jul 4, 2020
1 parent 9bf3e16 commit b43b6b6
Show file tree
Hide file tree
Showing 9 changed files with 70 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
- ./flutter/bin/flutter pub get
- ./flutter/bin/flutter clean
- ./flutter/bin/flutter -v build apk --release --split-per-abi
- cp build/app/outputs/apk/release/app-armeabi-v7a-release.apk ./phicomm-r1-install-gateway
- zip –q –r release/phicomm-r1-install-gateway.zip ./phicomm-r1-install-gateway
- mv build/app/outputs/apk/release/app-armeabi-v7a-release.apk ./release
- mv build/app/outputs/apk/release/app-arm64-v8a-release.apk ./release
- mv build/app/outputs/apk/release/app-x86_64-release.apk ./release
Expand All @@ -86,6 +88,7 @@ jobs:
- release/app-arm64-v8a-release.apk
- release/app-x86_64-release.apk
- release/app-release.apk
- release/phicomm-r1-install-gateway.zip
on:
tags: true
before_install:
Expand Down
1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ void main() => runApp(new MyApp());
//TODO 开机自启,配置保存,斐讯r1安装网关脚本
class MyApp extends StatelessWidget {
var gatewayPortService = PortService(
portConfig: null,
isLocal: true,
info: {
"name": "网关",
Expand Down
Binary file added phicomm-r1-install-gateway/AdbWinApi.dll
Binary file not shown.
Binary file added phicomm-r1-install-gateway/AdbWinUsbApi.dll
Binary file not shown.
Binary file added phicomm-r1-install-gateway/adb.exe
Binary file not shown.
4 changes: 4 additions & 0 deletions phicomm-r1-install-gateway/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*****如果需要安装新版本的网关,请将新版本网关(arm架构)命名为"app-armeabi-v7a-release.apk"并覆盖本目录的“app-armeabi-v7a-release.apk”文件
#操作:
###第一步:安装本文件夹中第一步配网软件到手机,按照软件操作给r1配网
###第二步:双击本文件夹的第二步文件,按照提示输入之前连上wifi的r1的ip地址,然后按照提示等待安装完成。
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@echo off
echo R1-云易连网关软件安装自启工具
echo *
echo 将安装云易连网关到R1并打开自启动
echo *
adb kill-server
adb start-server
echo 需要查看R1的IP地址
set /p ip=请输入IP地址:
if "%ip%" == "" echo 提示:请输入正确的IP地址
echo 开始通过网络进行ADB连接……
echo *
adb connect %ip%
echo *
adb shell settings put secure install_non_market_apps 1
echo *
echo 安装包上传中……
adb push app-armeabi-v7a-release.apk /data/local/tmp/
echo *
echo 应用程序安装中……
adb shell /system/bin/pm install -t /data/local/tmp/app-armeabi-v7a-release.apk

echo 打开软件
adb shell am start -n com.iotserv.gateway/.MainActivity
echo *
ping -n 5 127.1>nul
echo 截屏中 gateway.png 查看是否已打开软件
echo *
adb shell screencap -p /data/local/tmp/gateway.png
echo 图片下载中……
adb pull /data/local/tmp/gateway.png
echo *
adb shell rm /data/local/tmp/gateway.png
echo 缓存图片已清理
echo 自行检查是否成功打开软件
echo *

:end
echo 按任意键退出...
pause > nul
32 changes: 23 additions & 9 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@ packages:
name: connectivity
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.4.8+6"
version: "0.4.9"
connectivity_for_web:
dependency: transitive
description:
name: connectivity_for_web
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.3.0"
connectivity_macos:
dependency: transitive
description:
Expand Down Expand Up @@ -105,14 +112,14 @@ packages:
name: file
url: "https://pub.flutter-io.cn"
source: hosted
version: "5.1.0"
version: "5.2.1"
file_picker:
dependency: transitive
description:
name: file_picker
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.11.0+2"
version: "1.12.0"
file_picker_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -248,6 +255,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.16.1"
js:
dependency: transitive
description:
name: js
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.6.2"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -281,7 +295,7 @@ packages:
description:
path: "."
ref: HEAD
resolved-ref: "5f2268bdb468a0b3af862460233db92896e3c5ad"
resolved-ref: "548a3e1e664f70bbc540fe6d37c5df9657f91758"
url: "https://github.com/OpenIoTHub/modules"
source: git
version: "0.0.1"
Expand Down Expand Up @@ -328,14 +342,14 @@ packages:
name: path_provider
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.6.10"
version: "1.6.11"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.1+1"
version: "0.0.1+2"
path_provider_macos:
dependency: transitive
description:
Expand Down Expand Up @@ -538,7 +552,7 @@ packages:
name: url_launcher
url: "https://pub.flutter-io.cn"
source: hosted
version: "5.4.10"
version: "5.4.11"
url_launcher_macos:
dependency: transitive
description:
Expand All @@ -559,14 +573,14 @@ packages:
name: url_launcher_web
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.1.1+6"
version: "0.1.2"
uuid:
dependency: transitive
description:
name: uuid
url: "https://pub.flutter-io.cn"
source: hosted
version: "2.1.0"
version: "2.2.0"
vector_math:
dependency: transitive
description:
Expand Down

0 comments on commit b43b6b6

Please sign in to comment.