Application package distribution method, device, equipment and storage medium

Through automated platform identity set processing and application package release process, the problem of low efficiency in application package distribution in the existing technology is solved, and automatic distribution without participation is realized.

CN111552484BActive Publication Date: 2025-03-28TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010355581.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-29
Publication Date
2025-03-28
Estimated Expiration
2040-04-29

AI Technical Summary

Technical Problem

In the prior art, the distribution efficiency of application packages is low because technicians need to manually distribute and summarize download links.

Method used

By obtaining the platform identity set, build the application package and mapping relationship of the application to be published, and automatically publish it to multiple application hosting platforms, generate the download link set, and update the target files on the download link management platform.

Benefits of technology

Automatic distribution of application packages is realized, and distribution efficiency is improved without manual participation by technicians.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111552484B_ABST
    Figure CN111552484B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an application package distribution method, apparatus, device and storage medium, the method comprising: obtaining a platform identification set, constructing N application packages of the application to be released and a first mapping relationship according to the platform identification set; respectively publishing the N application packages to N application hosting platforms according to the first mapping relationship; generating a download link set according to the download links of the application packages of the application to be released obtained from the N application hosting platforms; obtaining a target file from a download link management platform, updating the target file using the download link set, and publishing the updated target file to the download link management platform; the platform identification set includes the platform identifications of the N application hosting platforms for publishing the application to be released; the target file is used to record the download links of the historical application packages corresponding to the application to be released; the first mapping relationship is used to record the correspondence between the application package and the platform identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software development technology, and in particular to an application package distribution method, device, equipment and storage medium. Background Art

[0002] An application package refers to the installation package of an application. For example, an Android application package (apk) is an application package file format used by the Android operating system, and the apk includes compiled code files (*.dex files), file resources (resources), native resource files (assets), certificates (certificates), and a manifest file (manifest file).

[0003] In addition, users have many channels for downloading application packages. For example, users can download application packages from application hosting platforms such as App Store, Huawei App Market, and personal computer (PC) official websites.

[0004] At present, in order to enable users to download application packages from different application hosting platforms, technicians can manually distribute application packages to multiple application hosting platforms, and manually generate and publish a list file for recording the download links of each application package of the application, so that subsequent users can download the application package of the application with the help of the list file or each application hosting platform. However, since the manual distribution of application packages by technicians takes a long time, the distribution efficiency of application packages is low. Summary of the invention

[0005] The embodiments of the present application provide an application package distribution method, apparatus, device and storage medium, which can improve the distribution efficiency of application packages.

[0006] In view of this, the first aspect of the present application provides an application package distribution method, comprising:

[0007] Obtain a platform identification set, wherein the platform identification set includes platform identifications of N application hosting platforms for publishing the application to be published; N is a positive integer;

[0008] According to the platform identification set, constructing N application packages of the to-be-released application and a first mapping relationship; the first mapping relationship is used to record the correspondence between the application package and the platform identification;

[0009] According to the first mapping relationship, the N application packages are respectively published to the N application hosting platforms, and a download link set is generated according to the download links of the application packages of the to-be-published applications obtained from the N application hosting platforms;

[0010] After obtaining the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform; wherein the target file is used to record the download link of the historical application package corresponding to the application to be published.

[0011] A second aspect of the present application provides an application package distribution device, comprising:

[0012] A first acquisition unit is used to acquire a platform identification set, wherein the platform identification set includes platform identifications of N application hosting platforms used to publish the application to be published; N is a positive integer;

[0013] A first construction unit is used to construct N application packages of the to-be-released application and a first mapping relationship according to the platform identification set; the first mapping relationship is used to record the correspondence between the application package and the platform identification;

[0014] A first distribution unit is used to publish the N application packages to the N application hosting platforms respectively according to the first mapping relationship, and obtain a download link set, wherein the download link set includes download links of the application packages published on the N application hosting platforms;

[0015] The second distribution unit is used to update the target file using the download link set after obtaining the target file from the download link management platform, and publish the updated target file to the download link management platform; wherein the target file is used to record the download link of the historical application package corresponding to the application to be published.

[0016] A third aspect of the present application provides a device, the device comprising a processor and a memory:

[0017] The memory is used to store computer programs;

[0018] The processor is used to execute the application package distribution method described in the first aspect according to the computer program.

[0019] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the application package distribution method described in the first aspect above.

[0020] A fifth aspect of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the application package distribution method described in the first aspect.

[0021] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0022] In the application package distribution method provided in the embodiment of the present application, after obtaining the platform identification set, N application packages of the application to be released and a first mapping relationship are first constructed according to the platform identification set, and the N application packages are respectively released to N application hosting platforms according to the first mapping relationship; then a download link set is generated according to the download links of the application packages of the application to be released obtained from the N application hosting platforms, so that after obtaining the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform; wherein the platform identification set includes the platform identifications of the N application hosting platforms for publishing the application to be released; the target file is used to record the download links of the historical application packages corresponding to the application to be released; and the first mapping relationship is used to record the correspondence between the application package and the platform identification.

[0023] It can be seen that in the embodiment of the present application, after obtaining the platform identifiers of N application hosting platforms, the application package generation and release process can be automatically executed based on the N platform identifiers, and the download links of the application packages of the applications to be released can be automatically obtained from the N application hosting platforms, and the target files on the download link management platform can be automatically generated and updated based on these download links, so that the updated target files can accurately record the download links of each application package of the application to be released on the corresponding application hosting platform, thereby realizing the automatic distribution of application packages without the participation of technical personnel, thereby improving the distribution efficiency of application packages. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A schematic diagram of an application scenario of the application package distribution method provided in an embodiment of the present application;

[0025] Figure 2 A schematic diagram of another application scenario of the application package distribution method provided in an embodiment of the present application;

[0026] Figure 3 A flowchart of an application package distribution method provided in an embodiment of the present application;

[0027] Figure 4 The application provided in the embodiment of the present application is Figure 1 A flowchart of the application package distribution method in the illustrated scenario;

[0028] Figure 5 A schematic diagram of a distribution execution page for an application package on an application package distribution platform provided in an embodiment of the present application;

[0029] Figure 6 A schematic diagram of a configuration page for a multi-channel packaging plug-in provided in an embodiment of the present application;

[0030] Figure 7 A schematic diagram of a download link set provided in an embodiment of the present application;

[0031] Figure 8a A schematic diagram of a process for updating a download link and related information of an application package on a download link management platform provided in an embodiment of the present application;

[0032] Figure 8b A schematic diagram of a target file provided in an embodiment of the present application;

[0033] Fig. 9 A schematic diagram of the structure of an application package distribution device provided in an embodiment of the present application;

[0034] Fig.10 A schematic diagram of the structure of another application package distribution device provided in an embodiment of the present application;

[0035] Fig.11 A schematic diagram of the structure of another application package distribution device provided in an embodiment of the present application;

[0036] Fig.12 A schematic diagram of the structure of another application package distribution device provided in an embodiment of the present application

[0037] Fig.13 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0038] Fig.14 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0040] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0041] In the related art, the distribution process of the application package specifically includes: first, the technician manually triggers the construction process of the application package of the application to be released, and the technician publishes each application package on the corresponding application hosting platform through manual operations on each application hosting platform (for example, manually uploading the application package or manually clicking the release button, etc.); then the technician manually downloads the download link of the application package of the application to be released from each application hosting platform, so that the technician can summarize the obtained download links into a list file, and the technician manually publishes the list file to the download link management platform. It can be seen that the distribution process of the above-mentioned application package is implemented with the participation of the technician. However, because the process of manual distribution of the application package by the technician is time-consuming, the distribution efficiency of the application package is low.

[0042] In response to the technical problems existing in the above-mentioned related technologies, the embodiments of the present application also provide an application package distribution method, which can realize automatic distribution of application packages, thereby improving the distribution efficiency of application packages.

[0043] Specifically, in the application package distribution method provided in the embodiment of the present application, after obtaining the platform identification set, N application packages of the application to be released and a first mapping relationship are first constructed according to the platform identification set, and the N application packages are respectively released to N application hosting platforms according to the first mapping relationship; then, a download link set is generated according to the download links of the application packages of the application to be released obtained from the N application hosting platforms, so that after obtaining the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform; wherein, the platform identification set includes the platform identifications of the N application hosting platforms for publishing the application to be released; the target file is used to record the download links of the historical application packages corresponding to the application to be released; and the first mapping relationship is used to record the correspondence between the application package and the platform identification.

[0044] It can be seen that in the embodiment of the present application, after obtaining the platform identifiers of N application hosting platforms, the application package generation and release process can be automatically executed based on the N platform identifiers, and the download links of the application packages of the applications to be released can be automatically obtained from the N application hosting platforms, and the target files on the download link management platform can be automatically generated and updated based on these download links, so that the updated target files can accurately record the download links of each application package of the application to be released on the corresponding application hosting platform, thereby realizing the automatic distribution of application packages without the participation of technical personnel, thereby improving the distribution efficiency of application packages.

[0045] It should be understood that the application package distribution method provided in the embodiments of the present application can be applied to data processing devices, such as terminal devices, servers, etc.; wherein the terminal device can specifically be a smart phone, a computer, a personal digital assistant (PDA), a tablet computer, etc.; the server can specifically be an application server or a Web server. In actual deployment, the server can be an independent server or a cluster server.

[0046] If the application package distribution method provided in the embodiment of the present application is executed by a terminal device, the terminal device can directly perform the construction and release process of N application packages of the application to be released according to the obtained platform identification set, and update the target file on the download link management platform according to the download link of the application package of the application to be released obtained from the N application hosting platforms. If the application package distribution method provided in the embodiment of the present application is executed by a server, the server first performs the construction and release process of N application packages of the application to be released according to the platform identification set uploaded by the terminal device, and updates the target file on the download link management platform according to the download link of the application package of the application to be released obtained from the N application hosting platforms.

[0047] To facilitate understanding of the technical solution provided by the embodiments of the present application, the following uses the application package distribution method provided by the embodiments of the present application as an example of application to a terminal device to exemplify application scenarios to which the application package distribution method provided by the embodiments of the present application is applicable.

[0048] See also Figure 1 , Figure 1 A schematic diagram of an application scenario of the application package distribution method provided in the embodiment of the present application. Figure 1As shown, the application scenario includes: a terminal device 101 and a user 102; wherein the terminal device 101 is used to execute the application package distribution method provided in the embodiment of the present application to perform the application package distribution process. It should be noted that the user 102 may be a technician.

[0049] After the terminal device 101 obtains the application package distribution instruction triggered by the user 102, the terminal device 101 first obtains the platform identification set, and constructs N application packages of the application to be released and the first mapping relationship according to the platform identification set; the terminal device 101 then publishes the N application packages to the N application hosting platforms according to the first mapping relationship, and generates a download link set according to the download links of the application packages of the application to be released obtained from the N application hosting platforms, so that after the terminal device 101 obtains the target file from the download link management platform, it uses the download link set to update the target file and publishes the updated target file to the download link management platform. In this way, the demanders of the application to be released can download the application package of the application to be released with the help of the above-mentioned N application hosting platforms and the download link management platform.

[0050] It should be understood that in practical applications, the application package distribution method provided in the embodiment of the present application can also be applied to the server, see Figure 2 , which is a schematic diagram of another application scenario of the application package distribution method provided in the embodiment of the present application. Figure 2 As shown, after the server 201 obtains the application package distribution request sent by the terminal device 202, the server 201 first obtains the platform identification set, and constructs N application packages of the application to be released and the first mapping relationship according to the platform identification set; the server 201 then publishes the N application packages to the N application hosting platforms according to the first mapping relationship, and generates a download link set according to the download link of the application package of the application to be released obtained from the N application hosting platforms, so that after the server 201 obtains the target file from the download link management platform, it uses the download link set to update the target file and publishes the updated target file to the download link management platform. In this way, the demander of the application to be released can download the application package of the application to be released with the help of the above-mentioned N application hosting platforms and download link management platform. Among them, the application package distribution request sent by the terminal device 202 is generated according to the application package distribution instruction triggered by the user 203.

[0051] It should be understood that Figure 1 and Figure 2The application scenarios shown are only examples. In actual applications, the application package distribution method provided in the embodiments of the present application can also be applied to other application scenarios for application package distribution. No limitation is made to the application package distribution method provided in the embodiments of the present application.

[0052] The following is an introduction to the application package distribution method provided by the present application through embodiments.

[0053] Method Embodiment

[0054] See also Figure 3 , Figure 3 The following is a flow chart of an application package distribution method provided in an embodiment of the present application. For the sake of convenience, the following embodiment only takes the terminal device as the execution subject to introduce the application package distribution method. Figure 3 As shown, the application package distribution method includes S301-S304:

[0055] S301: Acquire a platform identification set, where the platform identification set includes platform identifications of N application hosting platforms used to publish the application to be published, where N is a positive integer.

[0056] The application to be released refers to an application that needs to be released to at least one application hosting platform; and the embodiments of the present application do not limit the application to be released. For example, the application to be released can be an application newly developed by a technician, or it can be an application after the technician has updated the function of an existing application.

[0057] An application hosting platform refers to a platform that can manage application packages of applications. That is, a user can download an application package using a download link of the application package in the application hosting platform. It should be noted that the embodiment of the present application is not limited to the application hosting platform. For example, the application hosting platform can be App Store, etc.

[0058] The platform identifier is used to uniquely identify the application hosting platform; moreover, the embodiment of the present application does not limit the platform identifier, for example, the platform identifier can be the name of the application hosting platform.

[0059] In addition, the embodiment of the present application does not limit the method for obtaining the platform identification set. For ease of understanding, two possible implementation methods are described below.

[0060] In a first possible implementation, S301 may specifically include: generating a platform identifier set according to platform identifiers of N application hosting platforms input by a user for publishing the application to be published.

[0061] In an embodiment of the present application, when a user wants to specify an application hosting platform corresponding to an application to be released, the user can input the platform identifiers of N application hosting platforms used to release the application to be released on the terminal device, so that the terminal device can generate a platform identifier set based on the platform identifiers of the N application hosting platforms input by the user, so that the platform identifier set can include the platform identifiers of the N application hosting platforms used to release the application to be released. Wherein, N is a positive integer. It can be seen that the embodiment of the present application can directly generate a platform identifier set based on the platform identifier corresponding to the application to be released input by the user, so that each application package subsequently constructed based on the platform identifier set is suitable for release to each application management platform specified by the user, meeting the user's needs.

[0062] In a second possible implementation, S301 may specifically be: obtaining a preset document according to the file path of the preset document, and generating a platform identifier set using the platform identifiers of N application hosting platforms recorded in the preset document for publishing the to-be-published application.

[0063] The preset document records the platform identifiers of the N application hosting platforms for publishing the application to be published. In addition, the file path of the preset document is used to represent the storage location of the preset document.

[0064] Based on the above content, it can be known that in the embodiment of the present application, if there is a preset document in the storage space that records the platform identifiers of N application hosting platforms for publishing the application to be published, the preset document can be first obtained according to the file path of the preset document, and then the platform identifiers of the N application hosting platforms for publishing the application to be published can be read from the preset document, and the set of platform identifiers of the N application hosting platforms can be determined as the platform identifier set. It can be seen that the embodiment of the present application can generate a platform identifier set using the platform identifiers recorded in the pre-stored preset document.

[0065] In a third possible implementation, S301 may specifically be: receiving an application distribution request, and generating a platform identifier set according to platform identifiers of N application hosting platforms for publishing the to-be-published application carried in the application distribution request.

[0066] The application distribution request carries the platform identifiers of the N application hosting platforms for publishing the application to be published. In addition, the embodiment of the present application does not limit the sender of the application distribution request. For example, the sender of the application distribution request may be an application management platform, and the application management platform is used to manage the application hosting platform.

[0067] Based on the above content, it can be known that in the embodiment of the present application, after receiving the application distribution request, the platform identifiers of the N application hosting platforms used to publish the application to be published can be obtained from the application distribution request, and the set of platform identifiers of the N application hosting platforms is determined as the platform identifier set. It can be seen that the embodiment of the present application can generate a platform identifier set based on the application distribution request, so that each application package subsequently constructed based on the platform identifier set is suitable for publishing to each application management platform corresponding to the application distribution request, meeting the needs of the sender of the application distribution request.

[0068] Based on the content of S301 above, it can be known that in an embodiment of the present application, after a user (such as a technician) triggers an application package distribution instruction on a terminal device, the terminal device can first obtain the platform identifiers of N application hosting platforms used to publish the application to be published, and determine the set of the N platform identifiers as a platform identifier set, so that N application packages of the application to be published can be constructed based on the platform identifier set subsequently.

[0069] S302: Constructing N application packages of the application to be released and a first mapping relationship according to the platform identification set.

[0070] The first mapping relationship is used to record the correspondence between the application package and the platform identifier. In addition, the embodiment of the present application does not limit the representation method of the first mapping relationship. For example, the first mapping relationship can be represented in a table, and the table records the correspondence between the application package identifier and the platform identifier. Among them, the application package identifier is used to uniquely mark the application package.

[0071] In addition, the embodiment of the present application further provides a possible implementation of S302. In this implementation, S302 specifically includes S3021-S3023:

[0072] S3021: Obtain the file path of the benchmark package.

[0073] The base package refers to the basic package required to generate the application package; and the base package includes the common files required to install the application to be released. It should be noted that the difference between the base package and the application package is that the application package includes the files corresponding to the application hosting platform used to release the application package, so that the application package is suitable for being released to the application hosting platform; however, the base package only includes the common files required to install the application to be released, and does not include any files related to the application hosting platform.

[0074] The file path of the benchmark package is used to represent the storage path of the benchmark package.

[0075] S3022: Acquire the benchmark program package according to the file path of the benchmark program package.

[0076] In the embodiment of the present application, after the file path of the benchmark program package is obtained, the benchmark program package can be obtained based on the file path of the benchmark program package, so that each application package can be subsequently generated based on the benchmark program package.

[0077] It should be noted that the embodiment of the present application does not limit the execution time of S3021-S3022, and S3021-S3022 only need to be completed before S2023 is executed. In other words, S3021-S3022 can be executed before S301 or after S302.

[0078] S3023: Construct the i-th application package of the application to be released according to the platform identifier and the benchmark package of the i-th application hosting platform, and construct a first mapping relationship according to the correspondence between the platform identifier of the i-th application hosting platform and the i-th application package; i is a positive integer, i≤N.

[0079] In an embodiment of the present application, after obtaining the platform identification set and the benchmark program package, an application package corresponding to each platform identification in the platform identification set can be constructed based on the benchmark program package. The specific process can be: first, according to the platform identification and the benchmark program package of the first application hosting platform, the first application package of the application to be released is constructed, so that the first application package is suitable for being released to the first application hosting platform; according to the platform identification and the benchmark program package of the second application hosting platform, the second application package of the application to be released is constructed, so that the second application package is suitable for being released to the second application hosting platform; ... (and so on); according to the platform identification and the benchmark program package of the Nth application hosting platform, the Nth application package of the application to be released is constructed, so that the Nth application package is suitable for being released to the Nth application hosting platform. Then, based on the correspondence between the first application package and the platform identifier of the first application hosting platform, the correspondence between the second application package and the platform identifier of the second application hosting platform, and so on, the correspondence between the Nth application package and the platform identifier of the Nth application hosting platform, a first mapping relationship is constructed so that the first mapping relationship can record the correspondence between the application packages and the platform identifiers.

[0080] Based on the above content, it can be known that in an embodiment of the present application, after obtaining the platform identification set, N application packages and a first mapping relationship of the application to be released can be constructed according to the N platform identifications recorded in the platform identification set, so that the correspondence between the application package and the application hosting platform can be accurately known based on the first mapping relationship.

[0081] S303: According to the first mapping relationship, N application packages are respectively published to N application hosting platforms, and a download link set is generated according to the download links of the application packages of the to-be-published applications obtained from the N application hosting platforms.

[0082] The download link is used to indicate the download location of the application package. In addition, the download link may carry a platform identifier and / or a version number of the application package. The version number of the application package is a version identifier of the application package, and the version number of the application package is used to indicate the version information of the application package.

[0083] In the embodiment of the present application, after obtaining N application packages of the application to be released and the first mapping relationship, the N application packages can be respectively released to N application hosting platforms according to the first mapping relationship, and then the download links of the application packages of the application to be released can be obtained from the N application hosting platforms, so as to determine the set of these download links as the download link set. For example, when the first mapping relationship records the corresponding relationship between the platform identifier of the i-th application hosting platform and the i-th application package, i is a positive integer, and i≤N, then S303 can be specifically: first, publish the first application package to the first application hosting platform, and obtain the download link of the application package of the application to be released from the first application hosting platform; publish the second application package to the second application hosting platform, and obtain the download link of the application package of the application to be released from the second application hosting platform; ... (and so on); publish the N-th application package to the N-th application hosting platform, and obtain the download link of the application package of the application to be released from the N-th application hosting platform. Then, a set of download links of the application packages of the application to be released obtained from the first to the Nth application hosting platforms is determined as a download link set. In this way, each application package of the application to be released can be automatically released to the application hosting platform corresponding to the application package, and the download link of the application package of the application to be released can be automatically obtained from the application hosting platform, so that a file for recording these download links can be generated based on these download links for release later.

[0084] S304: After acquiring the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform.

[0085] The download link management platform is used to manage the download links of all application packages of the application. That is, the user can find the download links of the application packages of the application on various application hosting platforms on the download link management platform.

[0086] The target file is used to record the download link of the historical application package corresponding to the application to be released; and the release time of the historical application package recorded in the target file is the time closest to the current time. That is, the target file includes the latest version of the historical application package corresponding to the application to be released.

[0087] In addition, the target file can be downloaded from the download link management platform. It should be noted that the embodiment of the present application does not limit the target file, for example, the target file can be a JavaScript Object Notation (JSON) file.

[0088] The embodiment of the present application also provides a possible implementation method for updating the target file. In this implementation method, when the download link carries a platform identifier, the update process of the target file can be specifically as follows: determine whether there is a download link carrying the platform identifier of the jth application hosting platform in the target file, and if so, replace the download link carrying the platform identifier of the jth application hosting platform in the target file with a download link carrying the platform identifier of the jth application hosting platform in the download link set; if not, add the download link carrying the platform identifier of the jth application hosting platform in the download link set to the target file. Wherein, j is a positive integer, j≤N.

[0089] In an embodiment of the present application, after obtaining the target file, the target file can be updated using the download link set so that the target file can include the download link in the download link set. For example, when the download link set includes N download links, and the jth download link refers to a download link carrying the platform identifier of the jth application hosting platform, j is a positive integer, j≤N, then the update process of the target file is: determine whether there is a download link carrying the platform identifier of the first application hosting platform in the target file, if so, replace the download link carrying the platform identifier of the first application hosting platform in the target file with the first download link in the download link set; if not, add the first download link to the target file. Determine whether there is a download link carrying the platform identifier of the second application hosting platform in the target file, if so, replace the download link carrying the platform identifier of the second application hosting platform in the target file with the second download link in the download link set; if not, add the second download link to the target file. ... (and so on). Determine whether there is a download link carrying the platform identifier of the Nth application hosting platform in the target file. If so, replace the download link carrying the platform identifier of the Nth application hosting platform in the target file with the Nth download link in the download link set; if not, add the Nth download link to the target file. It can be seen that in this way, the updated target file includes the N download links in the download link set, that is, the updated target file records the download links of the latest version of the application package of the application to be released in the above N application hosting platforms.

[0090] Based on the above content, it can be known that in an embodiment of the present application, the target file can be first obtained from the download link management platform, and then the target file can be updated using the obtained download link set, so that the updated target file records the download link of the latest version of the application package of the application to be released in the above-mentioned N application hosting platforms, so that the updated target file can be subsequently published on the download link management platform, so that the demanders of the application to be released can query the download link of the latest version of the application package of the application to be released in each application hosting platform on the download link management platform.

[0091] In addition, in some cases, if the target file is also used to record the version number of the application package, the version number of the application package in the target file can also be updated according to the version number of the application package carried by each download link. Based on this, the embodiment of the present application also provides another possible implementation method for updating the target file. In this implementation method, when the download link carries the platform identifier and the version number of the application package, the update process of the target file can be specifically as follows: determine whether there is a download link carrying the platform identifier of the jth application hosting platform in the target file, and if so, replace the download link carrying the platform identifier of the jth application hosting platform in the target file with the download link carrying the platform identifier of the jth application hosting platform in the download link set, and use the version number of the application corresponding to the download link carrying the platform identifier of the jth application hosting platform in the target file to replace the version number of the application carried in the download link carrying the platform identifier of the jth application hosting platform in the download link set; if not, add the download link carrying the platform identifier of the jth application hosting platform in the download link set and the version number of the application carried by the download link carrying the platform identifier of the jth application hosting platform in the download link set to the target file. Wherein, j is a positive integer, j≤N.

[0092] In an embodiment of the present application, after obtaining the target file, the target file can be updated using the download link set, so that the target file can include the download link in the download link set and the version number of the application carried by the download link. For example, when the download link set includes N download links, and the jth download link refers to the download link carrying the platform identifier of the jth application hosting platform, j is a positive integer, j≤N, then the update process of the target file is: determine whether there is a download link carrying the platform identifier of the first application hosting platform in the target file, if so, replace the download link carrying the platform identifier of the first application hosting platform in the target file with the first download link in the download link set, and replace the version number of the application corresponding to the download link carrying the platform identifier of the first application hosting platform in the target file with the version number of the application carried in the first download link; if not, add the first download link and the version number of the application carried in the first download link to the target file. Determine whether there is a download link carrying the platform identifier of the second application hosting platform in the target file. If so, replace the download link carrying the platform identifier of the second application hosting platform in the target file with the second download link in the download link set, and replace the version number of the application corresponding to the download link carrying the platform identifier of the second application hosting platform in the target file with the version number of the application carried in the second download link; if not, add the second download link and the version number of the application carried by the second download link to the target file. ... (and so on). Determine whether there is a download link carrying the platform identifier of the Nth application hosting platform in the target file. If so, replace the download link carrying the platform identifier of the Nth application hosting platform in the target file with the Nth download link in the download link set, and replace the version number of the application corresponding to the download link carrying the platform identifier of the Nth application hosting platform in the target file with the version number of the application carried in the Nth download link; if not, add the Nth download link and the version number of the application carried by the Nth download link to the target file. It can be seen that the updated target file includes N download links in the download link set and the version numbers of the applications corresponding to the N download links, that is, the updated target file records the download links of the latest version of the application package of the application to be released in the above-mentioned N application hosting platforms and the version number of the latest version of the application package.

[0093] Based on the relevant contents of S301 to S304 above, it can be known that in the application package distribution method provided in the embodiment of the present application, after obtaining the platform identification set, N application packages of the application to be released and the first mapping relationship are first constructed according to the platform identification set, and the N application packages are respectively released to N application hosting platforms according to the first mapping relationship; then, a download link set is generated according to the download links of the application packages of the application to be released obtained from the N application hosting platforms, so that after obtaining the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform; wherein, the platform identification set includes the platform identifications of the N application hosting platforms for publishing the application to be released; the target file is used to record the download links of the historical application packages corresponding to the application to be released; and the first mapping relationship is used to record the correspondence between the application package and the platform identification.

[0094] It can be seen that in the embodiment of the present application, after obtaining the platform identifiers of N application hosting platforms, the application package generation and release process can be automatically executed based on the N platform identifiers, and the download links of the application packages of the applications to be released can be automatically obtained from the N application hosting platforms, and the target files on the download link management platform can be automatically generated and updated based on these download links, so that the updated target files can accurately record the download links of each application package of the application to be released on the corresponding application hosting platform, thereby realizing the automatic distribution of application packages without the participation of technical personnel, thereby improving the distribution efficiency of application packages.

[0095] Method Example 2

[0096] In some cases, in order to ensure that the download link management platform can provide the correct download link of the application package of the application to be released, the download link in the download link set can be checked. Based on this, the embodiment of the present application also provides an implementation of the application package distribution method. In this implementation, when the download link carries a platform identifier, the application package distribution method includes S305 and S306 in addition to the above S301-S304:

[0097] S305: Check whether there is a download link with access abnormality in the download link set.

[0098] In an embodiment of the present application, after obtaining the download link set, it is possible to check whether the download links in the download link set can be accessed normally. If all download links in the download link set can be accessed normally, it means that all download links in the download link set are usable connections; if there are download links with abnormal access in the download link set, it means that there are inaccessible download links in the download link set, which indicates that there is a problem in the acquisition process of the download link set. At this time, the application package publishing process can be exited, and the technical staff can check whether there is a problem in the acquisition process of the download link set. In this way, it can be ensured that there are no download links with abnormal access in the download link set used when the target file is subsequently updated, so that the updated target file accurately records the download links of each application package that can be accessed.

[0099] In addition, the embodiment of the present application does not limit the method for checking whether the download link can be accessed normally. As an example, the preset function in the preset programming language can be called to check whether the download link can be accessed normally. For example, when the preset programming language is Python, and the preset function is the get function of the Requests library, S305 can be specifically: calling the get function of the Requests library in Python to check whether the target download link can be accessed normally. If so, the detection result of the target download link is returned as 200; if not, the detection result of the target download link is returned as a value other than 200. Among them, the target download link is any download link in the download link set.

[0100] S306: Generate a to-be-checked identifier set according to the platform identifier carried by each download link in the download link set, and check whether the to-be-checked identifier set matches the platform identifier set.

[0101] The identification set to be checked is used to record the platform identifications carried by all download links in the download link set.

[0102] In the embodiment of the present application, after obtaining the download link set, it is necessary to detect whether the download link set includes the download links of the N application packages of the application to be released on the corresponding application hosting platform. Specifically, it can be: first extract the platform identifier carried by each download link from the download link set, and determine the set of platform identifiers extracted as the identifier set to be checked; then check whether the identifier set to be checked matches the platform identifier set, that is, check whether the identifier set to be checked includes all the platform identifiers in the platform identifier set. If the match is successful, it means that the identifier set to be checked includes all the platform identifiers in the platform identifier set; if the match fails, it means that the identifier set to be checked does not include all the platform identifiers in the platform identifier set, so that the download link is incomplete, which means that there is a problem in the acquisition process of the download link set. At this time, the release process of the application package can be exited, and the technicians can detect whether there is a problem in the acquisition process of the download link set. In this way, it can be ensured that the download link set used for the subsequent update of the target file can include the download links of the N application packages of the application to be released, so that the updated target file accurately records the download links of the application packages of the application to be released on N application hosting platforms.

[0103] It should be noted that the embodiment of the present application does not limit the execution order of S305 and S306. For example, S305 and S306 may be executed in sequence, S306 and S305 may be executed in sequence, or S305 and S306 may be executed simultaneously. In addition, the embodiment of the present application does not limit the execution time of S305-S306, and S305-S306 may be executed after S303.

[0104] Based on the relevant contents of S305 and S306 above, it can be known that when it is determined that there are no download links with abnormal access in the download link set, and it is determined that the identification set to be checked matches the platform identification set successfully, the target file is updated using the download link set. It can be seen that S304 above can be specifically: after it is determined that there are no download links with abnormal access in the download link set, it is determined that the identification set to be checked matches the platform identification set successfully, and the target file is obtained from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform.

[0105] Based on the above contents of S304 to S306, it can be known that in the embodiment of the present application, after obtaining the download link set, the above two tests can be performed on the download link set, so that when it is determined that the download link set passes the double test, it is determined that the download link set can correctly represent the download links of the N application packages of the application to be released, so that the target file subsequently updated based on the download link set can more accurately record the download links of the application packages of the application to be released on the N application hosting platforms. This is conducive to improving the distribution accuracy of the application package.

[0106] In some cases, the download link set may include some other download links besides the download links of the N application packages of the application to be released. In this case, in order to better update the target file, the other download links in the download link set may be deleted. Based on this, the embodiment of the present application also provides another implementation of the application package distribution method. In this implementation, when the download link carries a platform identifier, the application package distribution method includes S307 in addition to the above S301-S306:

[0107] S307: When it is determined that there is no download link with access abnormality in the download link set and it is determined that the identification set to be checked successfully matches the platform identification set, the redundant download links are deleted from the download link set to obtain the target download link set; wherein the platform identification carried by the redundant download link does not belong to the platform identification set.

[0108] The target download link set includes N download links, and the platform identifier carried by each download link in the target download link set belongs to the platform identifier set.

[0109] In addition, based on S307, the above-mentioned updating the target file by using the download link set may specifically be: updating the target file by using the target download link set.

[0110] Based on the relevant contents of S307 above, it can be known that in the embodiment of the present application, after determining that the download link set has passed the above double inspection, the download links other than the download links of the N application packages of the application to be released can be first removed from the download link set based on the platform identification set, so as to obtain a target download link set that only includes the download links of the N application packages of the application to be released, and use the target download link set to update the target file. Among them, because the target download link set only includes the download links of the N application packages of the application to be released, when the target file is updated, it is only updated based on the download links of the N application packages of the application to be released, so that the updated target file can accurately represent the download links of the N application packages. This is conducive to improving the update efficiency and update accuracy of the target file.

[0111] In some cases (for example, there is an application management platform as described above), it is necessary to pre-set the distribution format of N application packages so that the N application packages can be distributed according to the distribution format later. Based on this, the embodiment of the present application also provides another implementation of the application package distribution method. In this implementation, in addition to all or part of the above steps, the application package distribution method also includes S308 and S309:

[0112] S308: Obtaining preset format requirements.

[0113] The preset format requirement is used to characterize the distribution format of the N application packages. In addition, the preset format requirement can be file compression or file non-compression. It should be noted that the preset format requirement can be set in advance by the user according to application requirements.

[0114] S309: If the preset format requirement is file compression, the N application packages are compressed to obtain a target compressed file.

[0115] The embodiment of the present application does not limit the file compression method. For example, N application packages can be compressed into a zip file.

[0116] In addition, based on the above S308 and S309, the above-mentioned N application packages are respectively published to N application hosting platforms according to the first mapping relationship. Specifically, it can be: sending the target compressed file and the first mapping relationship to the application management platform, so that the application management platform decompresses the target compressed file to obtain N application packages, and according to the first mapping relationship, publishes the N application packages to N application hosting platforms respectively.

[0117] Based on the above S308 and S309, it can be known that in the embodiment of the present application, after obtaining N application packages of the application to be released and the first mapping relationship, it can be determined whether to perform file compression on the N application packages according to the preset format requirements obtained, so that when it is determined that the preset format requirements are file compression, the N application packages are first compressed to obtain the target compressed file, and then the target compressed file and the first mapping relationship are sent to the application management platform, so that the application management platform decompresses the target compressed file to obtain N application packages, and according to the first mapping relationship, the N application packages are respectively published to the N application hosting platforms. In this way, the purpose of distributing application packages with the help of the application management platform is achieved.

[0118] In order to further understand the application package distribution method provided in the embodiment of the present application, the scenario embodiment will be combined with Figure 4 An overall introduction to the application package distribution method provided in the embodiment of the present application is given.

[0119] Scenario Example

[0120] The scenario embodiment is an exemplary introduction to the application package distribution method provided by the method embodiment. For the sake of brevity, some contents in the scenario embodiment are the same as those in the method embodiment and will not be repeated here. For technical details of the parts that are the same, please refer to the relevant contents in the method embodiment.

[0121] See also Figure 4 , which is an example of an embodiment of the present application provided for application Figure 1 Flowchart of the application package distribution method in the illustrated scenario.

[0122] The application package distribution method provided in the embodiment of the present application includes S401-S408:

[0123] S401: After receiving the application package distribution instruction triggered by the user, the terminal device obtains the platform identification set corresponding to the application to be released, the file path of the reference program package and the preset format requirement.

[0124] The application package distribution instruction is used to request to build and publish the application package of the application to be published.

[0125] The embodiment of the present application does not limit the triggering method of the user triggering the application package distribution instruction. For ease of understanding, it will be explained below with examples.

[0126] As an example, the user can use a preset application package distribution platform to achieve this, and the application package distribution platform is a platform that supports a single build of multiple plug-ins working in series. Figure 5 The distribution execution page of the application package on the application package distribution platform shown in the figure, each black frame and white grid is a plug-in used to complete the preset function, and the output of the upstream plug-in can be used as the input of the downstream plug-in. Among them, the preset function of the plug-in is pre-set. Based on this, it can be seen that after the user completes the configuration of the plug-in on the preset application package distribution platform, the user can trigger the application package distribution instruction by clicking the button used to trigger the application package distribution instruction.

[0127] It should be noted that Figure 5In the GitHub repository, GIT is the English name of the open source distributed version control system; CDN is the abbreviation of content distribution network, and the full name of CDN in English is Content Delivery Network; LINUX is an operating system. In addition, the function of pulling the git plug-in is to pull the code from the git code hosting platform to the build machine, and publishing CDN means publishing the application package to the application hosting platform through the CDN plug-in, and then the plug-in will return the download link list of the application package for use by downstream plug-ins. The function of the multi-channel packaging plug-in is to build each application package of the application to be released. The function of updating the channel package link is to update the target file.

[0128] The embodiment of the present application does not limit the way in which the terminal device obtains the platform identification set corresponding to the application to be released, the file path of the benchmark package, and the preset format requirements. Figure 6 Configure the platform identifier set corresponding to the application to be published on the configuration page of the multi-channel packaging plug-in shown in the figure (that is, Figure 6 ), the file path of the benchmark package (that is, Figure 6 ) and the default format requirements (that is, Figure 6 Generate zip package option in the configuration page) so that the terminal device can obtain this information directly from the configuration page.

[0129] Based on the above content, it can be seen that in an embodiment of the present application, after the terminal device receives an application package distribution instruction triggered by a user, the terminal device can obtain the platform identification set corresponding to the application to be released, the file path of the benchmark package and the preset format requirements, so as to subsequently build and release the application package based on this information.

[0130] S402: The terminal device obtains a reference program package according to the file path of the reference program package, and constructs N application packages of the application to be released and a first mapping relationship according to the platform identification set and the reference program package.

[0131] S403: The terminal device publishes N application packages to N application hosting platforms respectively according to the preset format requirement and the first mapping relationship, and generates a download link set according to the download links of the application packages of the to-be-published applications obtained from the N application hosting platforms.

[0132] In the embodiment of the present application, after the terminal device obtains the preset format requirement and the first mapping relationship, the terminal device first publishes N application packages to N application hosting platforms respectively according to the preset format requirement and the first mapping relationship, and then generates a download link set according to the download link of the application package of the application to be published obtained from the N application hosting platforms. Among them, the publishing process of N application packages is specifically as follows: if the preset format requirement is file compression, it is necessary to first compress the N application packages into a target compressed file, and then send the target compressed file and the first mapping relationship to the application management platform, so that the application management platform decompresses the target compressed file to obtain N application packages, and according to the first mapping relationship, publish the N application packages to N application hosting platforms respectively; if the preset format requirement is that the file is not compressed, it is necessary to publish the N application packages to N application hosting platforms respectively according to the first mapping relationship.

[0133] In addition, the embodiment of the present application does not limit the representation method of the download link set. For example, Figure 7 As shown, when the platform identification set includes platform identification test1 and platform identification test2, then Figure 7 The download link set at least includes download links carrying platform identifiers test1 and test2. Figure 7 "url" here means the download link.

[0134] It should be noted that when using Figure 5 When the application package distribution platform shown in the figure releases an application, the CDN plug-in can obtain the download link of the application package of the application to be released from each application hosting platform, so that subsequent Figure 5 The application package distribution platform shown is based on Figure 8a The download link update process shown updates the download link and related information on the download link management platform.

[0135] S404: The terminal device checks whether there is a download link with access abnormality in the download link set.

[0136] S405: The terminal device generates a to-be-verified identification set according to the platform identification carried by each download link in the download link set, and verifies whether the to-be-verified identification set matches the platform identification set.

[0137] S406: When the terminal device determines that there is no download link with access abnormality in the download link set and determines that the identification set to be checked successfully matches the platform identification set, the terminal device deletes the redundant download link from the download link set to obtain the target download link set; wherein the platform identification carried by the redundant download link does not belong to the platform identification set.

[0138] S407: The terminal device obtains the target file from the download link management platform, and updates the target file using the target download link set.

[0139] The embodiment of the present application does not limit the representation method of the target file. For example, when the platform identification set includes the platform identification test2, the updated target file may include Figure 8b As shown in the figure, Figure 8b In the target file, not only the download link needs to be updated, but also the version number of the application needs to be updated.

[0140] S408: The terminal device publishes the updated target file to the download link management platform.

[0141] Based on the above S401 to S408, it can be known that after the terminal device obtains the application package distribution instruction triggered by the user, the terminal device can automatically obtain the platform identification set corresponding to the application to be released, the file path of the benchmark package and the preset format requirements, and build and publish each application package of the application to be released according to the obtained information, so as to obtain the download link of each application package of the application to be released. It can be seen that the terminal device can automatically implement the application package distribution process without the participation of technical personnel, which can effectively improve the distribution efficiency of the application package.

[0142] Based on the relevant contents of the application package distribution method provided above, the embodiment of the present application also provides a corresponding application package distribution device, so that the application package distribution method provided above can be applied and implemented in practice.

[0143] Device Embodiment

[0144] It should be noted that the technical details of the application package distribution device provided in this embodiment can refer to the application package distribution method provided above.

[0145] See also Fig. 9 , which is a structural diagram of an application package distribution device provided in an embodiment of the present application.

[0146] The application package distribution device 900 provided in the embodiment of the present application includes:

[0147] The first acquisition unit 901 is used to acquire a platform identification set, where the platform identification set includes platform identifications of N application hosting platforms used to publish the application to be published; N is a positive integer;

[0148] A first construction unit 902 is used to construct N application packages of the to-be-released application and a first mapping relationship according to the platform identifier set; the first mapping relationship is used to record the correspondence between the application package and the platform identifier;

[0149] A first distribution unit 903 is used to publish the N application packages to the N application hosting platforms respectively according to the first mapping relationship, and obtain a download link set, where the download link set includes download links of the application packages published on the N application hosting platforms;

[0150] The second distribution unit 904 is used to update the target file using the download link set after obtaining the target file from the download link management platform, and publish the updated target file to the download link management platform; wherein the target file is used to record the download link of the historical application package corresponding to the application to be published.

[0151] Optional, in Fig. 9 Based on the application package distribution device 900 shown, the first construction unit 902 is specifically used to:

[0152] Get the file path of the benchmark package;

[0153] Acquire the benchmark program package according to the file path of the benchmark program package;

[0154] According to the platform identifier of the i-th application hosting platform and the benchmark package, the i-th application package of the application to be released is constructed, and according to the correspondence between the platform identifier of the i-th application hosting platform and the i-th application package, a first mapping relationship is constructed; i is a positive integer, i≤N.

[0155] Optional, in Fig. 9 On the basis of the application package distribution device 900 shown, the second distribution unit 904 is specifically used to: when the download link carries a platform identifier, determine whether there is a download link carrying the platform identifier of the j-th application hosting platform in the target file; the j is a positive integer, j≤N; if it is determined that there is a download link carrying the platform identifier of the j-th application hosting platform in the target file, then replace the download link carrying the platform identifier of the j-th application hosting platform in the target file with a download link carrying the platform identifier of the j-th application hosting platform in the download link set; if it is determined that there is no download link carrying the platform identifier of the j-th application hosting platform in the target file, then add the download link carrying the platform identifier of the j-th application hosting platform in the download link set to the target file.

[0156] Optional, in Fig. 9 On the basis of the application package distribution device 900 shown, the first acquisition unit 901 is specifically used to: generate the platform identification set according to the platform identifications of the N application hosting platforms input by the user for publishing the to-be-published application.

[0157] Optional, in Fig. 9 Based on the application package distribution device 900 shown, the first acquisition unit 901 is specifically used to: obtain the preset document according to the file path of the preset document, and use the platform identifiers of the N application hosting platforms recorded in the preset document for publishing the application to be released to generate the platform identifier set.

[0158] Optional, in Fig. 9 Based on the application package distribution device 900 shown, the first acquisition unit 901 is specifically used to: receive an application distribution request, and generate the platform identifier set according to the platform identifiers of N application hosting platforms for publishing the application to be released carried in the application distribution request.

[0159] Optional, in Fig. 9 Based on the application package distribution device 900 shown in FIG. 1 , when the download link carries a platform identifier, such as Fig.10 As shown, the application package distribution device 900 also includes:

[0160] A first checking unit 905 is used to check whether there is a download link with abnormal access in the download link set;

[0161] A second checking unit 906 is used to generate a to-be-checked identification set according to the platform identification carried by each download link in the download link set, and to check whether the to-be-checked identification set matches the platform identification set;

[0162] The second distribution unit 904 is specifically configured to update the target file using the download link set when it is determined that there is no download link with access exception in the download link set and when it is determined that the identification set to be checked successfully matches the platform identification set.

[0163] Optional, in Fig.10 Based on the application package distribution device 900 shown in FIG. Fig.11 As shown, the application package distribution device 900 also includes:

[0164] The deleting unit 907 is used to delete redundant download links from the download link set to obtain a target download link set when it is determined that there is no download link with abnormal access in the download link set and it is determined that the identification set to be checked matches the platform identification set successfully; wherein the platform identification carried by the redundant download link does not belong to the platform identification set;

[0165] The second distribution unit 904 is specifically configured to update the target file using the target download link set.

[0166] Optional, in Figure 9-11 Based on the application package distribution device 900 shown in any one of the items, as Fig.12 As shown, the application package distribution device 900 also includes:

[0167] A second acquisition unit 908, configured to acquire a preset format requirement, where the preset format requirement is used to characterize a distribution format of the N application packages;

[0168] A compression unit 909, configured to compress the N application packages to obtain a target compressed file if the preset format requirement is file compression;

[0169] The first distribution unit 903 is specifically used to send the target compressed file and the first mapping relationship to the application management platform, so that the application management platform decompresses the target compressed file to obtain the N application packages, and publishes the N application packages to the N application hosting platforms respectively according to the first mapping relationship.

[0170] Based on the relevant content of the above-mentioned application package distribution device 900, it can be known that after obtaining the platform identification set, N application packages of the application to be released and the first mapping relationship are first constructed according to the platform identification set, and the N application packages are respectively released to N application hosting platforms according to the first mapping relationship; then a download link set is generated according to the download link of the application package of the application to be released obtained from the N application hosting platforms, so that after obtaining the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform; wherein, the platform identification set includes the platform identifications of the N application hosting platforms for publishing the application to be released; the target file is used to record the download link of the historical application package corresponding to the application to be released; and the first mapping relationship is used to record the correspondence between the application package and the platform identification.

[0171] It can be seen that in the embodiment of the present application, after obtaining the platform identifiers of N application hosting platforms, the application package generation and release process can be automatically executed based on the N platform identifiers, and the download links of the application packages of the applications to be released can be automatically obtained from the N application hosting platforms, and the target files on the download link management platform can be automatically generated and updated based on these download links, so that the updated target files can accurately record the download links of each application package of the application to be released on the corresponding application hosting platform, thereby realizing the automatic distribution of application packages without the participation of technical personnel, thereby improving the distribution efficiency of application packages.

[0172] The embodiment of the present application also provides a terminal device and a server for distributing application packages. The terminal device and the server for distributing application packages provided in the embodiment of the present application will be introduced from the perspective of hardware instantiation.

[0173] See also Fig.13 , is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The terminal can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (full name in English: Personal Digital Assistant, English abbreviation: PDA), a sales terminal (full name in English: Point of Sales, English abbreviation: POS), a car computer, etc., taking the terminal as a tablet computer as an example:

[0174] Fig.13 FIG. 1 is a block diagram showing a partial structure of a tablet computer related to a terminal provided in an embodiment of the present application. Fig.13 The tablet computer includes: a radio frequency (RF) circuit 1310, a memory 1320, an input unit 1330, a display unit 1340, a sensor 1350, an audio circuit 1360, a wireless fidelity (WiFi) module 1370, a processor 1380, and a power supply 1390. Those skilled in the art will appreciate that Fig.13 The tablet computer structure shown in the figure does not constitute a limitation on the tablet computer, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0175] The memory 1320 can be used to store software programs and modules. The processor 1380 executes various functional applications and data processing of the tablet computer by running the software programs and modules stored in the memory 1320. The memory 1320 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the tablet computer (such as audio data, a phone book, etc.), etc. In addition, the memory 1320 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0176] The processor 1380 is the control center of the tablet computer. It uses various interfaces and lines to connect various parts of the entire tablet computer. By running or executing software programs and / or modules stored in the memory 1320 and calling data stored in the memory 1320, it executes various functions of the tablet computer and processes data, thereby monitoring the tablet computer as a whole. Optionally, the processor 1380 may include one or more processing units; preferably, the processor 1380 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1380.

[0177] In the embodiment of the present application, the processor 1380 included in the terminal also has the following functions:

[0178] Obtain a platform identification set, wherein the platform identification set includes platform identifications of N application hosting platforms for publishing the application to be published; N is a positive integer;

[0179] According to the platform identification set, constructing N application packages of the to-be-released application and a first mapping relationship; the first mapping relationship is used to record the correspondence between the application package and the platform identification;

[0180] According to the first mapping relationship, the N application packages are respectively published to the N application hosting platforms, and a download link set is generated according to the download links of the application packages of the to-be-published applications obtained from the N application hosting platforms;

[0181] After obtaining the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform; wherein the target file is used to record the download link of the historical application package corresponding to the application to be published.

[0182] Optionally, the processor 1380 is also used to execute the steps of any implementation method of the application package distribution method provided in the embodiments of the present application.

[0183] The embodiment of the present application also provides a server, Fig.14 14 is a schematic diagram of the structure of a server provided in an embodiment of the present application. The server 1400 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1422 (for example, one or more processors) and memory 1432, and one or more storage media 1430 (for example, one or more mass storage devices) storing application programs 1442 or data 1444. Among them, the memory 1432 and the storage medium 1430 may be short-term storage or permanent storage. The program stored in the storage medium 1430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1422 may be configured to communicate with the storage medium 1430 to execute a series of instruction operations in the storage medium 1430 on the server 1400.

[0184] The server 1400 may also include one or more power supplies 1426, one or more wired or wireless network interfaces 1450, one or more input and output interfaces 1458, and / or one or more operating systems 1441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0185] The steps performed by the server in the above embodiment can be based on the Fig.14 The server structure shown.

[0186] The CPU 1422 is used to perform the following steps:

[0187] Obtain a platform identification set, wherein the platform identification set includes platform identifications of N application hosting platforms for publishing the application to be published; N is a positive integer;

[0188] According to the platform identification set, constructing N application packages of the to-be-released application and a first mapping relationship; the first mapping relationship is used to record the correspondence between the application package and the platform identification;

[0189] According to the first mapping relationship, the N application packages are respectively published to the N application hosting platforms, and a download link set is generated according to the download links of the application packages of the to-be-published applications obtained from the N application hosting platforms;

[0190] After obtaining the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform; wherein the target file is used to record the download link of the historical application package corresponding to the application to be published.

[0191] Optionally, CPU 1422 may also be used to execute steps of any implementation of the application package distribution method in the embodiments of the present application.

[0192] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the implementation methods of an application package distribution method described in the aforementioned embodiments.

[0193] An embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any one of the implementations of the application package distribution method described in the aforementioned embodiments.

[0194] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0195] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0196] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0197] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0198] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store computer programs.

[0199] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for distributing an application package, characterized in that: include: Acquire a platform identification set, where the platform identification set includes platform identifications of N application hosting platforms used to publish the application to be published; N is a positive integer; Get the file path of the benchmark package; Acquire the benchmark program package according to the file path of the benchmark program package; According to the platform identifier of the i-th application hosting platform and the reference program package, construct the i-th application package of the application to be released, and according to the corresponding relationship between the platform identifier of the i-th application hosting platform and the i-th application package, construct a first mapping relationship; The i is a positive integer, i≤N; the first mapping relationship is used to record the correspondence between the application package and the platform identifier; According to the first mapping relationship, the N application packages are automatically published to the N application hosting platforms respectively, and a download link set is generated according to the download links of the application packages of the to-be-published applications automatically obtained from the N application hosting platforms; After obtaining the target file from the download link management platform, the target file is updated using the download link set, and the updated target file is published to the download link management platform; wherein the target file is used to record the download link of the historical application package corresponding to the application to be published, and the publishing time of the historical application package recorded in the target file is the time from the current moment, and the download link management platform is used to manage the download links of all application packages of the application; When the download link carries a platform identifier, the step of updating the target file by using the download link set includes: Determine whether there is a download link carrying the platform identifier of the j-th application hosting platform in the target file; j is a positive integer, j≤N; If it is determined that there is a download link carrying the platform identifier of the j-th application hosting platform in the target file, the download link carrying the platform identifier of the j-th application hosting platform in the target file is replaced with a download link in the download link set carrying the platform identifier of the j-th application hosting platform; If it is determined that there is no download link carrying the platform identifier of the j-th application hosting platform in the target file, then adding the download link carrying the platform identifier of the j-th application hosting platform in the download link set to the target file; Checking whether there is a download link with access abnormality in the download link set; Generate a to-be-verified identification set according to the platform identification carried by each download link in the download link set, and verify whether the to-be-verified identification set matches the platform identification set; The updating of the target file by using the download link set is specifically as follows: When it is determined that there is no download link with abnormal access in the download link set and it is determined that the identification set to be checked successfully matches the platform identification set, the target file is updated using the download link set.

2. The method according to claim 1, characterized in that The step of obtaining the platform identification set includes: Generate the platform identification set according to the platform identifications of the N application hosting platforms input by the user for publishing the to-be-published application; or, Acquire the preset document according to the file path of the preset document, and generate the platform identifier set by using the platform identifiers of the N application hosting platforms used to publish the to-be-published application recorded in the preset document; or, An application distribution request is received, and the platform identifier set is generated according to the platform identifiers of the N application hosting platforms used to publish the to-be-published application carried in the application distribution request.

3. The method according to claim 1, characterized in that The method further comprises: When it is determined that there is no download link with abnormal access in the download link set, and it is determined that the identification set to be checked successfully matches the platform identification set, redundant download links are deleted from the download link set to obtain a target download link set; wherein the platform identification carried by the redundant download link does not belong to the platform identification set; The updating of the target file by using the download link set is specifically as follows: The target file is updated using the target download link set.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining a preset format requirement, where the preset format requirement is used to characterize a distribution format of the N application packages; If the preset format requirement is file compression, compressing the N application packages to obtain a target compressed file; The step of publishing the N application packages to the N application hosting platforms respectively according to the first mapping relationship specifically includes: The target compressed file and the first mapping relationship are sent to the application management platform, so that the application management platform decompresses the target compressed file to obtain the N application packages, and publishes the N application packages to the N application hosting platforms respectively according to the first mapping relationship.

5. An application package distribution device, characterized in that: include: A first acquisition unit is used to acquire a platform identification set, where the platform identification set includes platform identifications of N application hosting platforms used to publish the application to be published; N is a positive integer; A first construction unit is configured to obtain a file path of a reference program package; and obtain the reference program package according to the file path of the reference program package; According to the platform identifier of the i-th application hosting platform and the reference program package, construct the i-th application package of the application to be released, and according to the corresponding relationship between the platform identifier of the i-th application hosting platform and the i-th application package, construct a first mapping relationship; The i is a positive integer, i≤N; the first mapping relationship is used to record the correspondence between the application package and the platform identifier; a first distribution unit, configured to automatically publish the N application packages to the N application hosting platforms respectively according to the first mapping relationship, and automatically obtain a download link set, wherein the download link set includes download links of the application packages published on the N application hosting platforms; The second distribution unit is used to update the target file using the download link set after acquiring the target file from the download link management platform, and publish the updated target file to the download link management platform; wherein the target file is used to record the download link of the historical application package corresponding to the application to be published, and the publishing time of the historical application package recorded in the target file is the time from the current moment, and the download link management platform is used to manage the download links of all application packages of the application; The second distribution unit is specifically used to: when the download link carries a platform identifier, determine whether there is a download link carrying the platform identifier of the j-th application hosting platform in the target file; j is a positive integer, j≤N; if it is determined that there is a download link carrying the platform identifier of the j-th application hosting platform in the target file, replace the download link carrying the platform identifier of the j-th application hosting platform in the target file with a download link carrying the platform identifier of the j-th application hosting platform in the download link set; if it is determined that there is no download link carrying the platform identifier of the j-th application hosting platform in the target file, add the download link carrying the platform identifier of the j-th application hosting platform in the download link set to the target file; A first checking unit, used for checking whether there is a download link with abnormal access in the download link set; A second checking unit is used to generate a to-be-checked identification set according to the platform identification carried by each download link in the download link set, and to check whether the to-be-checked identification set matches the platform identification set; The second distribution unit is specifically configured to update the target file using the download link set when it is determined that there is no download link with access abnormality in the download link set and when it is determined that the identification set to be checked successfully matches the platform identification set.

6. The device according to claim 5, characterized in that The first building block is specifically used for: Get the file path of the benchmark package; Acquire the benchmark program package according to the file path of the benchmark program package; According to the platform identifier of the i-th application hosting platform and the reference program package, construct the i-th application package of the application to be released, and according to the corresponding relationship between the platform identifier of the i-th application hosting platform and the i-th application package, construct a first mapping relationship; The i is a positive integer, i≤N.

7. The device according to claim 5, characterized in that The first acquisition unit is specifically used to: generate the platform identification set according to the platform identifications of the N application hosting platforms input by the user for publishing the to-be-published application; The first acquisition unit is specifically used to: acquire the preset document according to the file path of the preset document, and generate the platform identification set by using the platform identifications of the N application hosting platforms used to publish the application to be published recorded in the preset document; The first acquisition unit is specifically used to: receive an application distribution request, and generate the platform identifier set according to the platform identifiers of the N application hosting platforms used to publish the to-be-published application carried in the application distribution request.

8. The device according to claim 5, characterized in that The application package distribution device also includes: a deleting unit, configured to, when it is determined that there is no download link with abnormal access in the download link set and it is determined that the identification set to be checked matches the platform identification set successfully, delete redundant download links from the download link set to obtain a target download link set; wherein the platform identification carried by the redundant download link does not belong to the platform identification set; The second distribution unit is specifically configured to update the target file using the target download link set.

9. The device according to claim 5, characterized in that The application package distribution device also includes: A second acquisition unit, used to acquire a preset format requirement, where the preset format requirement is used to characterize a distribution format of the N application packages; A compression unit, configured to compress the N application packages to obtain a target compressed file if the preset format requirement is file compression; The first distribution unit is specifically used to send the target compressed file and the first mapping relationship to the application management platform, so that the application management platform decompresses the target compressed file to obtain the N application packages, and publishes the N application packages to the N application hosting platforms respectively according to the first mapping relationship.

10. A device, characterized in that: The device comprises a processor and a memory: The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 4 according to the computer program.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and apparatus for intelligently differentiating systems and selecting downloads on page

    CN105677753A

  • Method and system for channel information adding of application program package and channel packaging server

    CN106020789A

  • Method for releasing application installation package, terminal device and medium

    CN109542461A