From 1e914ff517c5da0b964f0a72d8e5dadb85aba5a9 Mon Sep 17 00:00:00 2001 From: liutuantuan Date: Mon, 21 Oct 2024 09:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96go=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liutuantuan --- tools/fotff/README.md | 4 +- tools/fotff/go.mod | 48 +- .../manifest_tag.xml | 1451 ++++++++++++----- 3 files changed, 1070 insertions(+), 433 deletions(-) diff --git a/tools/fotff/README.md b/tools/fotff/README.md index fb295d4..686c86f 100644 --- a/tools/fotff/README.md +++ b/tools/fotff/README.md @@ -53,7 +53,9 @@ example: ```fotff flash -p pkgDir -d 7001005458323933328a01fce1dc3800``` ###### tips -1. 刷机、测试具体实现可能涉及到[hdc_std](https://gitee.com/openharmony/developtools_hdc)、[xdevice](https://gitee.com/openharmony/testfwk_xdevice),安装和配置请参考对应工具的相关页面。 +1. +刷机、测试具体实现可能涉及到[hdc_std](https://gitee.com/openharmony/developtools_hdc)、[xdevice](https://gitee.com/openharmony/testfwk_xdevice) +,安装和配置请参考对应工具的相关页面。 2. xdevice运行需要Python运行环境,请提前安装。 3. 刷机、测试过程需要对应开发板的驱动程序,请提前安装。 diff --git a/tools/fotff/go.mod b/tools/fotff/go.mod index ab14fc5..477fb7c 100644 --- a/tools/fotff/go.mod +++ b/tools/fotff/go.mod @@ -1,28 +1,28 @@ module fotff -go 1.19 + go 1.19 -require ( - code.cloudfoundry.org/archiver v0.0.0-20221114120234-625eff81a7ef - github.com/Unknwon/goconfig v1.0.0 - github.com/huandu/go-clone v1.4.1 - github.com/jedib0t/go-pretty/v6 v6.4.3 - github.com/patrickmn/go-cache v2.1.0+incompatible - github.com/pkg/sftp v1.13.5 - github.com/sirupsen/logrus v1.9.0 - github.com/spf13/cobra v1.6.1 - golang.org/x/crypto v0.3.0 - gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df -) + require ( + code.cloudfoundry.org/archiver v0.0.0-20221114120234-625eff81a7ef + github.com/Unknwon/goconfig v1.0.0 + github.com/huandu/go-clone v1.4.1 + github.com/jedib0t/go-pretty/v6 v6.4.3 + github.com/patrickmn/go-cache v2.1.0+incompatible + github.com/pkg/sftp v1.13.5 + github.com/sirupsen/logrus v1.9.0 + github.com/spf13/cobra v1.6.1 + golang.org/x/crypto v0.3.0 + gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df + ) -require ( - github.com/cyphar/filepath-securejoin v0.2.3 // indirect - github.com/inconshreveable/mousetrap v1.0.1 // indirect - github.com/kr/fs v0.1.0 // indirect - github.com/mattn/go-runewidth v0.0.13 // indirect - github.com/rivo/uniseg v0.2.0 // indirect - github.com/smartystreets/goconvey v1.7.2 // indirect - github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/sys v0.2.0 // indirect - gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect -) + require ( + github.com/cyphar/filepath-securejoin v0.2.3 // indirect + github.com/inconshreveable/mousetrap v1.0.1 // indirect + github.com/kr/fs v0.1.0 // indirect + github.com/mattn/go-runewidth v0.0.13 // indirect + github.com/rivo/uniseg v0.2.0 // indirect + github.com/smartystreets/goconvey v1.7.2 // indirect + github.com/spf13/pflag v1.0.5 // indirect + golang.org/x/sys v0.2.0 // indirect + gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect + ) diff --git a/tools/fotff/pkg/gitee_common/testdata/version-Daily_Version-dayu200-20221201_080109-dayu200/manifest_tag.xml b/tools/fotff/pkg/gitee_common/testdata/version-Daily_Version-dayu200-20221201_080109-dayu200/manifest_tag.xml index d6cddc4..5f10a37 100644 --- a/tools/fotff/pkg/gitee_common/testdata/version-Daily_Version-dayu200-20221201_080109-dayu200/manifest_tag.xml +++ b/tools/fotff/pkg/gitee_common/testdata/version-Daily_Version-dayu200-20221201_080109-dayu200/manifest_tag.xml @@ -1,411 +1,1046 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +