# US 2022/0283795 A1 · Package deployment method and apparatus, terminal device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0283795 A1
- Document ID: US20220283795A1
- Status: Published application
- Kind: A1
- Application number: 17/825,897
- Filed: 2022-05-26
- Published: 2022-09-08
- Earliest claimed: 2019-11-27
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Wei HUANG
- Web page: https://patentgrep.com/patent/US20220283795A1

## CPC

- G06F 8/61: Installation
- G06F 8/447: {Target code generation}
- G06F 8/76: Adapting program code to run in a different environment; Porting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A package deployment method and apparatus, a terminal device, and a storage medium are disclosed, which are applicable to the field of computer technologies. The method includes: searching, for a plurality of registered devices, for a package adapted to each of the plurality of devices, where a registration operation of the plurality of devices is completed by using a pre-constructed integrated development environment (IDE) tool; and distributing and deploying a found package to a corresponding device, where the corresponding device is a device in the plurality of devices. The constructed IDE tool each time can register with and be connected to a plurality of different devices; searches, for the plurality of registered devices, for a package adapted to each device; and then distributes and deploys a found package to each corresponding device.

## Claims

### Claim 1

A package deployment method, comprising:
searching for a package adapted to each of a plurality of devices, wherein a registration operation of the plurality of devices is performed using an integrated development environment (IDE) tool; and
distributing and deploying a found package to a corresponding device, wherein the corresponding device is a device in the plurality of devices.

### Claim 2 (depends on 1)

The package deployment method according to claim 1, wherein the registration operation of the plurality of devices comprises:
establishing communications connection to the plurality of devices by using the IDE tool;
after the communications connection is successfully established, receiving status information of each device of the plurality of devices; and
displaying the status information of each device of the plurality of devices in a device list interface of the IDE tool to complete the registration operation.

### Claim 3 (depends on 2)

The package deployment method according to claim 2, wherein the distributing and deploying the found package to the corresponding device comprises:
determining whether one or more devices of the plurality of devices meets a preset package distribution and deployment condition; and
for a first device in the plurality of devices that meets the package distribution and deployment condition, distributing and deploying, to the first device, a package adapted to the first device.

### Claim 4 (depends on 3)

The package deployment method according to claim 3, wherein the determining whether one or more devices of the plurality of devices meet the preset package distribution and deployment condition comprises:
obtaining a device identification code of a target device, wherein the target device is any device of the plurality of devices;
searching a specified storage path for a package corresponding to the device identification code; and
in response to the package corresponding to the device identification code being found at the storage path and status information of the target device is a normal state, determining that the target device meets the package distribution and deployment condition.

### Claim 5 (depends on 3)

The package deployment method according to claim 3, wherein the determining whether one or more devices of the plurality of devices meet the preset package distribution and deployment condition comprises:
obtaining a device identification code of a target device, wherein the target device is any device of the plurality of devices;
searching a specified storage path for a package corresponding to the device identification code; and
in response to the package corresponding to the device identification code being not found at the storage path, determining that the target device does not meet the package distribution and deployment condition.

### Claim 6 (depends on 3)

The package deployment method according to claim 3, wherein the determining whether one or more devices of the plurality of devices meet the preset package distribution and deployment condition comprises:
obtaining a device identification code of a target device, wherein the target device is any device of the plurality of devices;
searching a specified storage path for a package corresponding to the device identification code; and
in response to the status information of the target device being an abnormal state, determining that the target device does not meet the package distribution and deployment condition.

### Claim 7 (depends on 3)

The package deployment method according to claim 3, after the determining whether one or more devices of the plurality of devices meets the preset package distribution and deployment condition, the method further comprising:
for a second device in the plurality of devices that does not meet the package distribution and deployment condition, adding, to an icon of the second device in the device list interface, a mark indicating that package deployment fails, and outputting preset prompt information.

### Claim 8 (depends on 3)

The package deployment method according to claim 3, wherein the distributing and deploying, to the first device, the package adapted to the first device comprises:
in response to a first operation instruction being received, distributing and deploying the package to the first device.

### Claim 9 (depends on 3)

The package deployment method according to claim 3, wherein the distributing and deploying, to the first device, the package adapted to the first device comprises:
in response to a second operation instruction being received, selecting at least one device other than the first device, and distributing and deploying the package to the at least one device other than the first device.

### Claim 10 (depends on 1)

The package deployment method according to claim 1, after the distributing and deploying the found package to the corresponding device, the method further comprising:
receiving a debugging and running result of each of the devices for a package deployed on the device; and
adding the debugging and running result to a device list interface of the IDE tool.

### Claim 11

A package deployment apparatus, comprising:
a processor; and
a non-transitory computer readable medium storing computer-executable instructions, wherein the processor is configured to execute the computer-executable instructions to enable the package deployment apparatus to perform operations comprising:
searching for a package adapted to each of a plurality of devices, wherein a registration operation of the plurality of devices is performed using an integrated development environment (IDE) tool; and
distributing and deploying a found package to a corresponding device, wherein the corresponding device is a device in the plurality of devices.

### Claim 12 (depends on 11)

The package deployment apparatus according to claim 11, wherein the registration operation of the plurality of devices comprises:
establishing communications connection to the plurality of devices by using the IDE tool;
after the communications connection is successfully established, receiving status information of each device of the plurality of devices; and
displaying the status information of each device of the plurality of devices in a device list interface of the IDE tool to complete the registration operation.

### Claim 13 (depends on 12)

The package deployment apparatus according to claim 12, wherein the distributing and deploying the found package to the corresponding device comprises:
determining whether one or more devices of the plurality of devices meets a preset package distribution and deployment condition; and
for a first device in the plurality of devices that meets the package distribution and deployment condition, distributing and deploying, to the first device, a package adapted to the first device.

### Claim 14 (depends on 13)

The package deployment apparatus according to claim 13, wherein the determining whether one or more devices of the plurality of devices meets the preset package distribution and deployment condition comprises:
obtaining a device identification code of a target device, wherein the target device is any device of the plurality of devices;
searching a specified storage path for a package corresponding to the device identification code; and
in response to the package corresponding to the device identification code being found at the storage path and status information of the target device is a normal state, determining that the target device meets the package distribution and deployment condition.

### Claim 15 (depends on 13)

The package deployment apparatus according to claim 13, wherein the determining whether one or more devices of the plurality of devices meets the preset package distribution and deployment condition comprises:
obtaining a device identification code of a target device, wherein the target device is any device of the plurality of devices;
searching a specified storage path for a package corresponding to the device identification code; and
in response to the package corresponding to the device identification code being not found at the storage path, determining that the target device does not meet the package distribution and deployment condition.

### Claim 16 (depends on 13)

The package deployment apparatus according to claim 13, wherein the determining whether one or more devices of the plurality of devices meets the preset package distribution and deployment condition comprises:
obtaining a device identification code of a target device, wherein the target device is any device of the plurality of devices;
searching a specified storage path for a package corresponding to the device identification code; and
in response to the status information of the target device being an abnormal state, determining that the target device does not meet the package distribution and deployment condition.

### Claim 17 (depends on 13)

The package deployment apparatus according to claim 13, after the determining whether one or more devices of the plurality of devices meets the preset package distribution and deployment condition, the processor is further configured to execute the computer-executable instructions to enable the package deployment apparatus to perform operations comprising:
for a second device in the plurality of devices that does not meet the package distribution and deployment condition, adding, to an icon of the second device in the device list interface, a mark indicating that package deployment fails, and outputting preset prompt information.

### Claim 18 (depends on 13)

The package deployment apparatus according to claim 13, wherein the distributing and deploying, to the first device, the package adapted to the first device comprises:
in response to a first operation instruction being received, distributing and deploying the package to the first device.

### Claim 19 (depends on 13)

The package deployment apparatus according to claim 13, wherein the distributing and deploying, to the first device, the package adapted to the first device comprises:
in response to a second operation instruction being received, selecting at least one device other than the first device, and distributing and deploying the package to the at least one device other than the first device.

### Claim 20

A non-transitory computer-readable medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, enables a package deployment apparatus to perform operations comprising:
searching for a package adapted to each of a plurality of devices, wherein a registration operation of the plurality of devices is performed using an integrated development environment (IDE) tool; and
distributing and deploying a found package to a corresponding device, wherein the corresponding device is a device in the plurality of devices.
