Application package generation method and device and computer storage medium

CN119225742APending Publication Date: 2024-12-31XIAMEN ZHUYUN ZONGHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411168013.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-31

Smart Images

  • Figure CN119225742A_ABST
    Figure CN119225742A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to an application package generation method and device and a computer storage medium. The method comprises the steps of obtaining a target generation instruction and an application package main body; the target generation instruction comprises a target application system identifier and target configuration information; the application package main body comprises an application configuration file and an application program file; determining a configuration modification sequence corresponding to the target application system based on the target application system identifier; modifying the application configuration file based on the target configuration information and the configuration modification sequence to obtain a modified application configuration file; performing package body construction based on the application program file and the modified application configuration file to obtain a target application package; the configuration modification process is determined through the application system identifier, the application configuration file is automatically modified, software development of the application package main body for different application systems is completed, the application development efficiency is improved, and the application development cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the prior art, due to the differences between different application systems, the same application software package cannot be adapted to all application systems; therefore, application software packages need to be developed for different application systems; however, in the current software package development, it is necessary to repeatedly develop corresponding application software packages for different application systems, which results in high development costs and low development efficiency for software packages adapted to different application systems. Summary of the invention

[0003] In response to the above-mentioned problems in the prior art, the purpose of this application is to determine the configuration modification process through the application system identification, automatically modify the application configuration file, complete the software development of the application package body for different application systems, thereby improving application development efficiency and reducing application development costs.

[0004] In order to solve the above problems, the present application provides a method for generating an application package, the method comprising:

[0005] Obtaining a target generation instruction and an application package body; the target generation instruction includes a target application system identifier and target configuration information; the application package body includes an application configuration file and an application program file;

[0006] Determining a configuration modification order corresponding to the target application system based on the target application system identifier; the configuration modification order refers to the order in which information in the application configuration file is modified;

[0007] Based on the target configuration information and the configuration modification order, modify the application configuration file to obtain a modified application configuration file;

[0008] A package body is constructed based on the application program file and the modified application configuration file to obtain a target application package.

[0009] In an embodiment of the present application, determining the configuration modification order corresponding to the target application system based on the target application system identifier includes:

[0010] Acquire multiple preset task nodes and node priorities corresponding to each of the multiple preset task nodes; the preset task node refers to a task node for modifying information in the application configuration file;

[0011] Determining a target task node from the plurality of preset task nodes based on the target application system identifier;

[0012] The target task nodes are sorted based on the node priorities corresponding to the target task nodes to obtain the configuration modification order.

[0013] In an embodiment of the present application, the application package generation method further includes:

[0014] Obtaining a node adding instruction; the node adding instruction includes the adding node information and the adding node priority;

[0015] Generate a new node based on the new node information;

[0016] Based on the priority of the newly added node and the node priority corresponding to the target task node, the newly added node and the target task node are sorted to obtain a modified configuration modification order.

[0017] In an embodiment of the present application, the application package generation method further includes:

[0018] Obtaining a node deletion instruction; the node deletion instruction includes information about the node to be deleted;

[0019] Determining the node to be deleted from the configuration modification sequence based on the information of the node to be deleted;

[0020] The target task nodes other than the to-be-deleted nodes are sorted based on the configuration modification order to obtain a modified configuration modification order.

[0021] In an embodiment of the present application, the target application system identifier includes a first application identifier, which corresponds to a software operating system; the target configuration information includes target package feature information, target permission declaration information, target icon information, target bottom-up configuration information, target bottom-up characteristic information and target vest information; the application configuration file includes a package feature file, a permission declaration file, a domain name file and a vest file; the vest file represents the download guide of the application package; the configuration modification order corresponding to the first application identifier is package feature file modification, permission declaration file modification, domain name file modification, icon file generation and addition, bottom-up configuration file generation and addition, bottom-up characteristic file generation and addition, vest file modification and signature file generation and addition; based on the target configuration information and the configuration modification order, the application configuration file is modified, and the modified application configuration file includes:

[0022] Based on the target package feature information and the target permission declaration information, respectively modify the package feature file, the permission declaration file, and the domain name file in the application configuration file to obtain a first modified configuration file;

[0023] Adding an icon file, a fallback configuration file and a fallback characteristic file to the first modified configuration file based on the target icon information, the target fallback configuration information and the target fallback characteristic information to obtain a second modified configuration file; the fallback configuration file represents the system configuration of the application package; the fallback characteristic file represents the functional configuration of the application package;

[0024] Based on the target vest information, modify the vest file in the second modified configuration file to obtain a third modified configuration file;

[0025] Based on the target package feature information, an added signature file is generated in the third modified configuration file to obtain a modified application configuration file.

[0026] In an embodiment of the present application, the target application system identifier includes a second application identifier, and the second application identifier corresponds to the website application system; the configuration modification order corresponding to the second application identifier is icon file generation and addition, bottom-line feature file generation and addition, domain name file modification, and vest file modification; based on the target configuration information and the configuration modification order, the application configuration file is modified, and the modified application configuration file includes:

[0027] Adding an icon file and a fallback characteristic file to the application configuration file based on the target icon information and the target fallback characteristic information to obtain a fourth modified configuration file;

[0028] Based on the target package feature information and the target vest information, the domain name file and the vest file in the fourth modified configuration file are modified respectively to obtain a modified application configuration file.

[0029] In an embodiment of the present application, the target application system identifier includes a third application identifier, and the third application identifier corresponds to the mini-program application system; the configuration modification order corresponding to the third application identifier is package feature file modification, permission declaration file modification, domain name file modification, icon file generation and addition, bottom-line feature file generation and addition, and vest file modification; based on the target configuration information and the configuration modification order, the application configuration file is modified, and the modified application configuration file includes:

[0030] Based on the target package feature information and the target permission declaration information, modify the package feature file, the permission declaration file, and the domain name file in the application configuration file respectively to obtain a fifth modified configuration file;

[0031] Adding an icon file and a backup characteristic file to the fifth modified configuration file based on the target icon information and the target backup characteristic information to obtain a sixth modified configuration file;

[0032] Based on the target vest information, the vest file in the sixth modified configuration file is modified to obtain a modified application configuration file.

[0033] On the other hand, the present application also provides an application package generation device, the generation device comprising:

[0034] An information acquisition module, used to acquire a target generation instruction and an application package body; the target generation instruction includes a target application system identifier and target configuration information; the application package body includes an application configuration file and an application program file;

[0035] A modification matching module, used to determine a configuration modification order corresponding to the target application system based on the target application system identifier; the configuration modification order refers to the order in which the information in the application configuration file is modified;

[0036] A modification module, used to modify the application configuration file based on the target configuration information and the configuration modification order to obtain a modified application configuration file;

[0037] The package body construction module is used to construct the package body based on the application program file and the modified application configuration file to obtain a target application package.

[0038] On the other hand, the present application also provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the application package generation method as described above.

[0039] On the other hand, the present application also provides a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the above-mentioned application package generation method.

[0040] Due to the above technical solution, the application package generation method described in this application has the following beneficial effects:

[0041] The configuration modification order of the application configuration file in the application package body is determined by the target application system identifier, and the application configuration file is modified based on the configuration modification order so that the modified application configuration file can meet the configuration requirements of the target application system, thereby ensuring that the target application package can run on the target application system and completing the development of the target application package; it can be seen that the above-mentioned application package generation method can generate an application package adapted to the operation of different application systems based on the application package body, thereby completing the development of the target application package of the application package body for different application systems, thereby improving the development efficiency of software packages adapted to different application systems and reducing development costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0043] Figure 1 It is a flowchart of the application package generation method provided in an embodiment of the present application;

[0044] Figure 2 It is a schematic diagram of the configuration modification order determination process in the application package generation method provided in an embodiment of the present application;

[0045] Figure 3 It is a schematic diagram of a newly added node process in the application package generation method provided in an embodiment of the present application;

[0046] Figure 4 This is a schematic diagram of a node deletion process in the application package generation method provided in an embodiment of the present application;

[0047] Figure 5 It is a schematic diagram of the modification process corresponding to the first application identifier in the application package generation method provided in an embodiment of the present application;

[0048] Figure 6 It is a schematic diagram of the modification process corresponding to the second application identifier in the application package generation method provided in an embodiment of the present application;

[0049] Figure 7 It is a schematic diagram of the modification process corresponding to the third application identifier in the application package generation method provided in an embodiment of the present application;

[0050] Figure 8 It is a schematic diagram of the structure of the application package generation device provided in an embodiment of the present application;

[0051] Fig. 9 It is a hardware structure block diagram of the application package generation method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 making creative work are within the scope of protection of this application.

[0053] The term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present application. In the description of the present application, it should be understood that the orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", "top", "bottom", etc. is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present application. In addition, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may include one or more of the features explicitly or implicitly. Moreover, the terms "first", "second", etc. 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 here can be implemented in an order other than those illustrated or described here.

[0054] Combination Figure 1 , introduces a method for generating an application package provided in an embodiment of the present application, the method comprising:

[0055] S1001, obtaining a target generation instruction and an application package body; the target generation instruction includes a target application system identifier and target configuration information; the application package body includes an application configuration file and an application program file.

[0056] In an embodiment of the present application, a target generation instruction refers to an instruction for generating a target application package; wherein the target application package and the application package body are respectively targeted at different application systems, and specifically, the core functions of the target application package are consistent with the core functions of the application package body; the application package body may be a basic package of a group of related classes in a project or system; the application package body may also be an application that can run on a preset application system, i.e., a native app (App li cat i on); the target application system identifier refers to the system on which the application package runs, such as a new type of installation-free quick application system developed based on industry standards, a web h5 (HyperText Markup Language, HTML5) application system, and a small program application system that can be used without downloading and installing; target configuration information refers to instruction information for modifying the content of an application configuration file, for example, the target configuration information includes modification location information and modification content information, etc.; an application configuration file is a file used to store configuration parameters and initial settings of an application; an application file is a file used to reflect the functions of the application package body.

[0057] S1002. Determine a configuration modification order corresponding to the target application system based on the target application system identifier; the configuration modification order refers to the order in which information in the application configuration file is modified.

[0058] In a specific embodiment of the present application, the configuration modification sequence includes an operating environment identifier corresponding to the target application system; the operating environment identifier refers to the identifier of the operating environment; the operating environment refers to the execution environment of the system or application that has been deployed and is available for users. The operating environment includes an operating system, hardware devices, library files, and configuration files.

[0059] In a specific embodiment of the present application, the operating environment may be a Node environment; which is the operating environment of "Node.js".

[0060] In a specific embodiment of the present application, S1002 includes:

[0061] When the operating environment corresponding to the target application system does not exist, the operating environment corresponding to the target application system is installed from the preset configuration based on the operating environment identifier; the preset configuration can be a local configuration pre-stored locally, or a cloud configuration obtained from the cloud.

[0062] S1003: Modify the application configuration file based on the target configuration information and the configuration modification order to obtain a modified application configuration file.

[0063] S1004: Build a package body based on the application program file and the modified application configuration file to obtain a target application package.

[0064] In an embodiment of the present application, the configuration modification order of the application configuration file in the application package body is determined by the target application system identifier, and the application configuration file is modified based on the configuration modification order so that the modified application configuration file can meet the configuration requirements of the target application system, thereby ensuring that the target application package can run on the target application system and completing the development of the target application package; it can be seen that the above-mentioned application package generation method can generate an application package adapted to the operation of different application systems based on the application package body, thereby completing the target application development of the application package body for different application systems, thereby improving the development efficiency of software packages adapted to different application systems and reducing development costs.

[0065] refer to Figure 2 In the embodiment of the present application, S1002 includes:

[0066] S2001. Obtain multiple preset task nodes and node priorities corresponding to each of the multiple preset task nodes; the preset task node refers to the task node that modifies information in the application configuration file; the node priority represents the execution priority of the task node.

[0067] S2002: Determine a target task node from a plurality of preset task nodes based on a target application system identifier.

[0068] In the embodiment of the present application, different application systems correspond to different target task nodes, and the target task node is a plurality of task nodes.

[0069] S2003. Sort the target task nodes based on the node priorities corresponding to the target task nodes to obtain a configuration modification order.

[0070] In an embodiment of the present application, since the application configuration modifications corresponding to different application systems may overlap, the configuration modification process is defined as a preset task node, and the configuration modification order is automatically generated based on the target application system identifier, thereby avoiding redundant data storage caused by different configuration modification orders of different application systems, reducing data storage pressure and increasing the flexibility of application configuration modification, thereby improving application development efficiency.

[0071] In a specific embodiment of the present application, S2003 includes:

[0072] When the node priorities corresponding to any two target task nodes are the same, the any two target task nodes are randomly sorted or sorted in parallel.

[0073] In a specific embodiment of the present application, it is assumed that multiple preset task nodes include task node 1, task node 2, ..., task node 10, wherein the target task nodes corresponding to the target application system are: task node 1, task node 3, task node 4, task node 6 and task node 10; wherein, the node priority of task node 1 is higher than the node priority of task node 3, the node priority of task node 3, the node priority of task node 4 and the node priority of task node 6 are the same, and the node priority of task node 3 is higher than the node priority of task node 10, then the configuration modification order can be task node 1-task node 3-task node 4-task node 6-task node 10; the configuration modification order can also be task node 1-task node 3 (task node 4 and task node 6)-task node 10, wherein task node 3 (task node 4 and task node 6) represents the ability to execute task node 3, task node 4 and task node 6 simultaneously.

[0074] In a specific embodiment of the present application, the user can customize the correspondence between the target application system and the configuration modification order based on multiple preset task nodes, thereby saving the development cost of the target application package and improving the development efficiency of the target application package.

[0075] refer to Figure 3 In the embodiment of the present application, the application package generation method further includes:

[0076] S3001. Obtain a node adding instruction; the node adding instruction includes the new node information and the new node priority; the node adding instruction refers to an instruction for adding a preset task node.

[0077] In a specific embodiment of the present application, the node adding instruction can be a text instruction or a voice instruction.

[0078] S3002. Generate a new node based on the new node information.

[0079] S3003. Based on the priority of the newly added node and the node priority corresponding to the target task node, the newly added node and the target task node are sorted to obtain a modified configuration modification order.

[0080] In an embodiment of the present application, the configuration modification order is modified by adding node new instructions to meet the personalized needs of application development, thereby improving the personalization of the target application.

[0081] In a specific embodiment of the present application, it is assumed that the configuration modification order is task node 1-task node 3-task node 4-task node 6-task node 10, wherein the node priority of task node 1 is higher than the node priority of task node 3, the node priority of task node 3, the node priority of task node 4 and the node priority of task node 6 are the same, and the node priority of task node 3 is higher than the node priority of task node 10; task node 11 is generated based on the newly added node information in the node addition instruction, and the node priority of task node 11 is higher than the node priority of task node 3, and the node priority of task node 11 is lower than the node priority of task node 3, therefore, task node 11 should be between task node 1 and task node 3; therefore, the modified configuration modification order is: task node 1-task node 11-task node 3-task node 4-task node 6-task node 10.

[0082] refer to Figure 4 In the embodiment of the present application, the application package generation method further includes:

[0083] S4001. Obtain a node deletion instruction; the node deletion instruction includes information about the node to be deleted; the node deletion instruction refers to an instruction to delete a preset task node.

[0084] In a specific embodiment of the present application, the node deletion instruction can be a text instruction or a voice instruction.

[0085] S4002. Determine the node to be deleted from the configuration modification order based on the information of the node to be deleted.

[0086] S4003. Sort the target task nodes except the to-be-deleted nodes based on the configuration modification order to obtain a modified configuration modification order.

[0087] In an embodiment of the present application, the configuration modification order is modified through a node deletion instruction to meet the personalized needs of application development, thereby improving the personalization of the target application.

[0088] In a specific embodiment of the present application, it is assumed that the configuration modification order is task node 1-task node 3-task node 4-task node 6-task node 10, wherein the node priority of task node 1 is higher than the node priority of task node 3, the node priority of task node 3, the node priority of task node 4 and the node priority of task node 6 are the same, and the node priority of task node 3 is higher than the node priority of task node 10; based on the node deletion instruction, it can be determined that the node to be deleted is task node 6, therefore, the modified configuration modification order is: task node 1-task node 3-task node 4-task node 10.

[0089] In a specific embodiment of the present application, multiple preset task nodes can be package feature file modification, permission declaration file modification, domain name file modification, icon file generation and addition, backup configuration file generation and addition, backup feature file generation and addition, vest file modification and signature file generation and addition, and the newly added nodes can be application hardening and application internationalization; among them, application hardening is used to improve the security of the software system, prevent the code from being maliciously tampered with, prevent sensitive information leakage, and prevent unauthorized access, etc.; internationalization (Internationalization) refers to the way of designing and manufacturing products that adapt to the requirements of different regions.

[0090] In an embodiment of the present application, the target application system identifier includes a first application identifier, which corresponds to a software operating system; the software operating system may specifically be a mobile operating system, which includes but is not limited to an Apple application system, an Android application system, and a quick application system; wherein a quick application system refers to a system in which software functions can be used without downloading an installation package.

[0091] In an embodiment of the present application, the target configuration information includes target package feature information, target permission declaration information, target icon information, target backup configuration information, target backup characteristic information and target vest information; the application configuration file includes a package feature file, a permission declaration file, a domain name file and a vest file; the vest file represents the download instructions for the application package.

[0092] In a specific embodiment of the present application, the target package feature information is instruction information for modifying the package feature file, the target permission declaration information is instruction information for modifying the permission declaration file, the target icon information is instruction information for generating an icon file, the target backup configuration information is instruction information for generating a backup configuration file, the target backup characteristic information is instruction information for generating a backup characteristic file, and the target vest information is instruction information for modifying the vest file; the target package feature information includes feature modification location information and feature modification content information, the target permission declaration information includes permission modification location information and permission modification content information, and the target vest information includes vest modification location information and vest modification content information.

[0093] In a specific embodiment of the present application, the package feature file represents the characteristics of the application package and the information that controls the installation process. The package feature file may include package name information. Specifically, the package feature file is a "pkgInfo.js" file; the permission declaration file represents the application permissions of the application package. Specifically, in the quick application system, the permission declaration file is a "manifest.json" file, and in the mini-program application system, the permission declaration file is an "app.json" file; the domain name file represents the access location identifier of the application package; the vest file is used to adapt to different download strategies or circumvent download restrictions.

[0094] refer to Figure 5 In the embodiment of the present application, the configuration modification order corresponding to the first application identifier is package body feature file modification, permission declaration file modification, domain name file modification, icon file generation and addition, bottom-line configuration file generation and addition, bottom-line feature file generation and addition, vest file modification, and signature file generation and addition. S1003 includes:

[0095] S5001. Based on the target package feature information and the target permission declaration information, the package feature file, the permission declaration file and the domain name file in the application configuration file are modified respectively to obtain a first modified configuration file.

[0096] S5002. Generate an added icon file, a fallback configuration file, and a fallback characteristic file in the first modified configuration file based on the target icon information, the target fallback configuration information, and the target fallback characteristic information to obtain a second modified configuration file; the fallback configuration file represents the system configuration of the application package; the fallback characteristic file represents the functional configuration of the application package.

[0097] In a specific embodiment of the present application, the icon file may be a picture, a theme color, etc.; the backup configuration file includes but is not limited to a blacklist, an advertiser list, and an advertising network configuration, etc.

[0098] S5003. Based on the target vest information, modify the vest file in the second modified configuration file to obtain a third modified configuration file.

[0099] S5004. Generate an added signature file in the third modified configuration file based on the target package body feature information to obtain a modified application configuration file; the signature file represents the authenticity of the application package or the integrity of the application package.

[0100] In a specific embodiment of the present application, the software operating system may be a quick application system.

[0101] In the specific embodiment of the present application, the backup configuration file refers to an information file used to store the configuration of the program when the program is started during the software development process; the backup feature file refers to an information file in the functional configuration of the software; the signature file is a measure to digitally sign the executable file or script to confirm the software author and ensure that the software has not been modified or damaged after signing.

[0102] In an embodiment of the present application, in the configuration modification order corresponding to the first application identifier, the node priority corresponding to the package feature file modification is higher than the node priority corresponding to the permission declaration file modification, the node priority corresponding to the permission declaration file modification is higher than the node priority corresponding to the domain name file modification, the node priority corresponding to the domain name file modification is the same as the node priority corresponding to the icon file generation and addition, the node priority corresponding to the domain name file modification is the same as the node priority corresponding to the backup configuration file generation and addition, and the node priority corresponding to the domain name file modification is the same as the node priority corresponding to the backup characteristic file generation and addition; that is, the order of domain name file modification, icon file generation and addition, backup configuration file generation and addition, and backup characteristic file generation and addition can be performed simultaneously or in sequence; the node priority corresponding to the domain name file modification is higher than the node priority corresponding to the vest file modification, and the node priority corresponding to the vest file modification is higher than the node priority corresponding to the signature file.

[0103] In an embodiment of the present application, by setting a first application identifier corresponding to the software operating system, an application that can run on the software operating system can be automatically generated, thereby completing the application package body and completing the application development of the application package body for the software operating system, thereby improving application development efficiency and reducing application development costs.

[0104] refer to Figure 6 In an embodiment of the present application, the target application system identifier includes a second application identifier, which corresponds to the website application system; the configuration modification order corresponding to the second application identifier is icon file generation and addition, bottom-line feature file generation and addition, domain name file modification, and vest file modification.

[0105] In the embodiment of the present application, S1003 includes:

[0106] S6001. Generate an added icon file and a backup characteristic file in the application configuration file based on the target icon information and the target backup characteristic information to obtain a fourth modified configuration file.

[0107] S6002: Based on the target package feature information and the target vest information, modify the domain name file and the vest file in the fourth modification configuration file respectively to obtain a modified application configuration file.

[0108] In a specific embodiment of the present application, the website application system may be a web page h5 system.

[0109] In an embodiment of the present application, in the configuration modification order corresponding to the second application identifier, the node priority corresponding to the domain name file modification is the same as the node priority corresponding to the icon file generation and addition, and the node priority corresponding to the domain name file modification is the same as the node priority corresponding to the backup feature file generation and addition; that is, the order of domain name file modification, icon file generation and addition, and backup feature file generation and addition can be performed simultaneously or in sequence; the node priority corresponding to the domain name file modification is higher than the node priority corresponding to the vest file modification.

[0110] In an embodiment of the present application, by setting a second application identifier corresponding to the website application system, an application that can run on the website application system can be automatically generated, thereby completing the application development of the application package body for the website application system, thereby improving application development efficiency and reducing application development costs.

[0111] refer to Figure 7 In an embodiment of the present application, the target application system identifier includes a third application identifier, and the third application identifier corresponds to the mini-program application system; the configuration modification order corresponding to the third application identifier is package feature file modification, permission declaration file modification, domain name file modification, icon file generation and addition, bottom-line feature file generation and addition, and vest file modification.

[0112] In the embodiment of the present application, S1003 includes:

[0113] S7001. Based on the target package feature information and the target permission declaration information, modify the package feature file, the permission declaration file and the domain name file in the application configuration file respectively to obtain a fifth modified configuration file.

[0114] S7002. Add an icon file and a backup characteristic file to the fifth modified configuration file based on the target icon information and the target backup characteristic information to obtain a sixth modified configuration file.

[0115] S7003. Based on the target vest information, modify the vest file in the sixth modified configuration file to obtain a modified application configuration file.

[0116] In an embodiment of the present application, in the configuration modification order corresponding to the third application identifier, the node priority corresponding to the package body feature file modification is higher than the node priority corresponding to the permission declaration file modification, the node priority corresponding to the permission declaration file modification is higher than the node priority corresponding to the domain name file modification, the node priority corresponding to the domain name file modification is the same as the node priority corresponding to the icon file generation and addition, and the node priority corresponding to the domain name file modification is the same as the node priority corresponding to the backup feature file generation and addition; that is, the order of domain name file modification, icon file generation and addition, and backup feature file generation and addition can be performed simultaneously or in sequence; the node priority corresponding to the domain name file modification is higher than the node priority corresponding to the vest file modification.

[0117] In an embodiment of the present application, by setting a third application identifier corresponding to the mini-program application system, an application that can run on the mini-program application system can be automatically generated, thereby completing the application development of the application package body for the mini-program application system, thereby improving application development efficiency and reducing application development costs.

[0118] The application package generation method in the embodiment of the present application has the following beneficial effects:

[0119] The configuration modification order of the application configuration file in the application package body is determined by the target application system identifier, and the application configuration file is modified based on the configuration modification order so that the modified application configuration file can meet the configuration requirements of the target application system, thereby ensuring that the target application package can run on the target application system and completing the development of the target application package; it can be seen that the above-mentioned application package generation method can generate an application package adapted to the operation of different application systems based on the application package body, thereby completing the target application development of the application package body for different application systems, thereby improving the development efficiency of software packages adapted to different application systems and reducing development costs.

[0120] refer to Figure 8 The embodiment of the present application also provides an application package generation device, the device comprising:

[0121] The information acquisition module 101 is used to acquire a target generation instruction and an application package body; the target generation instruction includes a target application system identifier and target configuration information; the application package body includes an application configuration file and an application program file.

[0122] The modification matching module 102 is used to determine the configuration modification sequence corresponding to the target application system based on the target application system identifier; the configuration modification sequence refers to the sequence of modifying the information in the application configuration file.

[0123] The modification module 103 is used to modify the application configuration file based on the target configuration information and the configuration modification order to obtain a modified application configuration file.

[0124] The package body construction module 104 is used to construct the package body based on the application program file and the modified application configuration file to obtain a target application package.

[0125] Modify the matching module to include:

[0126] The node acquisition unit is used to acquire multiple preset task nodes and the node priorities corresponding to each of the multiple preset task nodes; the preset task node refers to the task node that modifies the information in the application configuration file.

[0127] The target determination unit is used to determine a target task node from a plurality of preset task nodes based on a target application system identifier.

[0128] The node sorting unit is used to sort the target task nodes based on the node priorities corresponding to the target task nodes to obtain a configuration modification order.

[0129] The application package generating device also includes:

[0130] The first instruction acquisition module is used to acquire a node addition instruction; the node addition instruction includes the new node information and the new node priority.

[0131] The node generation module is used to generate a new node based on the new node information.

[0132] The first modification module is used to sort the newly added nodes and the target task nodes based on the priority of the newly added nodes and the node priority corresponding to the target task nodes to obtain a modified configuration modification order.

[0133] The second instruction acquisition module is used to acquire a node deletion instruction; the node deletion instruction includes information about the node to be deleted.

[0134] The deletion determination module is used to determine the node to be deleted from the configuration modification sequence based on the information of the node to be deleted.

[0135] The second modification module is used to sort the target task nodes except the nodes to be deleted based on the configuration modification order to obtain a modified configuration modification order.

[0136] Modification modules include:

[0137] The first modification unit is used to modify the package feature file, the permission declaration file and the domain name file in the application configuration file based on the target package feature information and the target permission declaration information to obtain a first modified configuration file.

[0138] The first generation unit is used to generate an added icon file, a fallback configuration file and a fallback characteristic file in a first modification configuration file based on target icon information, target fallback configuration information and target fallback characteristic information to obtain a second modification configuration file; the fallback configuration file represents the system configuration of the application package; the fallback characteristic file represents the functional configuration of the application package.

[0139] The second modification unit is used to modify the vest file in the second modification configuration file based on the target vest information to obtain a third modification configuration file.

[0140] The second generating unit is used to generate an added signature file in the third modified configuration file based on the target package body feature information to obtain a modified application configuration file; the signature file represents the authenticity of the application package or the integrity of the application package.

[0141] The third generating unit is used to generate an added icon file and a backup characteristic file in the application configuration file based on the target icon information and the target backup characteristic information to obtain a fourth modified configuration file.

[0142] The third modification unit is used to modify the domain name file and the vest file in the fourth modification configuration file based on the target package feature information and the target vest information, respectively, to obtain a modified application configuration file.

[0143] The fourth modification unit is used to modify the package feature file, the permission declaration file and the domain name file in the application configuration file based on the target package feature information and the target permission declaration information, so as to obtain a fifth modified configuration file.

[0144] The fourth generating unit is configured to add the icon file and the backup characteristic file to the fifth modified configuration file based on the target icon information and the target backup characteristic information to obtain a sixth modified configuration file.

[0145] The fifth modification unit is used to modify the vest file in the sixth modification configuration file based on the target vest information to obtain a modified application configuration file.

[0146] An embodiment of the present application also provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the application package generation method as described above.

[0147] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one hard disk storage device, a flash memory device or other volatile solid-state storage device. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.

[0148] The method embodiments provided in the embodiments of the present application can be executed in electronic devices such as mobile terminals, computer terminals, servers or similar computing devices. Fig. 9 is an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 910 (the processor 910 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 930 for storing data, and one or more storage media 920 (such as one or more mass storage devices) for storing application programs 923 or data 922. Among them, the memory 930 and the storage medium 920 can be short-term storage or permanent storage. The program stored in the storage medium 920 may include one or more modules, and each module may include a series of instruction operations in the electronic device. Furthermore, the central processing unit 910 can be configured to communicate with the storage medium 920 to execute a series of instruction operations in the storage medium 920 on the electronic device 900. The electronic device 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input and output interfaces 940, and / or one or more operating systems 921, such as Wi ndows ServerTM, Mac OS application package generation methodTM, Uni application package generation methodTM, Linux application package generation methodTM, FreeBSDTM, etc.

[0149] The input / output interface 940 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the electronic device 900. In one example, the input / output interface 940 includes a network adapter (NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 940 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0150] It can be understood by those skilled in the art that Fig. 9 The structure shown is only for illustration and does not limit the structure of the above electronic device. Fig. 9 More or fewer components as shown, or with Fig. 9 Different configurations are shown.

[0151] An embodiment of the present application also provides a storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the application package generation method as described above.

[0152] The above description has fully disclosed the specific implementation methods of the present application. It should be pointed out that any changes made by technicians familiar with the field to the specific implementation methods of the present application do not deviate from the scope of the claims of the present application. Accordingly, the scope of the claims of the present application is not limited to the above specific implementation methods.

Claims

1. A method for generating an application package, characterized in that: The method comprises: Obtaining a target generation instruction and an application package body; the target generation instruction includes a target application system identifier and target configuration information; the application package body includes an application configuration file and an application program file; Determining a configuration modification order corresponding to the target application system based on the target application system identifier; the configuration modification order refers to the order in which information in the application configuration file is modified; Based on the target configuration information and the configuration modification order, modify the application configuration file to obtain a modified application configuration file; A package body is constructed based on the application program file and the modified application configuration file to obtain a target application package.

2. The method for generating an application package according to claim 1, characterized in that: Determining the configuration modification order corresponding to the target application system based on the target application system identifier includes: Acquire multiple preset task nodes and node priorities corresponding to each of the multiple preset task nodes; the preset task node refers to a task node for modifying information in the application configuration file; Determining a target task node from the plurality of preset task nodes based on the target application system identifier; The target task nodes are sorted based on the node priorities corresponding to the target task nodes to obtain the configuration modification order.

3. The method for generating an application package according to claim 2, characterized in that: The method further comprises: Obtaining a node adding instruction; the node adding instruction includes the adding node information and the adding node priority; Generate a new node based on the new node information; Based on the priority of the newly added node and the node priority corresponding to the target task node, the newly added node and the target task node are sorted to obtain a modified configuration modification order.

4. The method for generating an application package according to claim 2, wherein: The method further comprises: Obtaining a node deletion instruction; the node deletion instruction includes information about the node to be deleted; Determining the node to be deleted from the configuration modification sequence based on the information of the node to be deleted; The target task nodes other than the to-be-deleted nodes are sorted based on the configuration modification order to obtain a modified configuration modification order.

5. The method for generating an application package according to claim 1, wherein: The target application system identifier includes a first application identifier, which corresponds to a software operating system; the target configuration information includes target package feature information, target permission declaration information, target icon information, target bottom-line configuration information, target bottom-line characteristic information and target vest information; the application configuration file includes a package feature file, a permission declaration file, a domain name file and a vest file; the vest file represents the download guide of the application package; the configuration modification order corresponding to the first application identifier is package feature file modification, permission declaration file modification, domain name file modification, icon file generation and addition, bottom-line configuration file generation and addition, bottom-line characteristic file generation and addition, vest file modification and signature file generation and addition; The modifying the application configuration file based on the target configuration information and the configuration modification order to obtain the modified application configuration file includes: Based on the target package feature information and the target permission declaration information, respectively modify the package feature file, the permission declaration file, and the domain name file in the application configuration file to obtain a first modified configuration file; Generate an added icon file, a fallback configuration file and a fallback characteristic file in the first modified configuration file based on the target icon information, the target fallback configuration information and the target fallback characteristic information, to obtain a second modified configuration file; the fallback configuration file represents the system configuration of the application package; the fallback characteristic file represents the functional configuration of the application package; Based on the target vest information, modify the vest file in the second modified configuration file to obtain a third modified configuration file; Based on the target package feature information, a signature file is generated and added to the third modified configuration file to obtain a modified application configuration file; the signature file represents the authenticity of the application package or the integrity of the application package.

6. The method for generating an application package according to claim 5, characterized in that: The target application system identifier includes a second application identifier, and the second application identifier corresponds to the website application system; the configuration modification order corresponding to the second application identifier is icon file generation and addition, backup feature file generation and addition, domain name file modification, and vest file modification; The modifying the application configuration file based on the target configuration information and the configuration modification order to obtain the modified application configuration file includes: Generate an added icon file and a backup characteristic file in the application configuration file based on the target icon information and the target backup characteristic information to obtain a fourth modified configuration file; Based on the target package feature information and the target vest information, the domain name file and the vest file in the fourth modified configuration file are modified respectively to obtain a modified application configuration file.

7. The method for generating an application package according to claim 5, characterized in that: The target application system identifier includes a third application identifier, and the third application identifier corresponds to the mini-program application system; the configuration modification order corresponding to the third application identifier is package body feature file modification, permission declaration file modification, domain name file modification, icon file generation and addition, bottom-line feature file generation and addition, and vest file modification; The modifying the application configuration file based on the target configuration information and the configuration modification order to obtain the modified application configuration file includes: Based on the target package feature information and the target permission declaration information, modify the package feature file, the permission declaration file, and the domain name file in the application configuration file respectively to obtain a fifth modified configuration file; Adding an icon file and a backup characteristic file to the fifth modified configuration file based on the target icon information and the target backup characteristic information to obtain a sixth modified configuration file; Based on the target vest information, the vest file in the sixth modified configuration file is modified to obtain a modified application configuration file.

8. An application package generating device, characterized in that: include: An information acquisition module is used to obtain target generation instructions and application package body; The target generation instruction includes a target application system identifier and target configuration information; The application package body includes an application configuration file and an application program file; A modification matching module, used to determine a configuration modification order corresponding to the target application system based on the target application system identifier; the configuration modification order refers to the order in which the information in the application configuration file is modified; A modification module, used to modify the application configuration file based on the target configuration information and the configuration modification order to obtain a modified application configuration file; The package body construction module is used to construct the package body based on the application program file and the modified application configuration file to obtain a target application package.

9. A computer storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the application package generation method as described in any one of claims 1-7.

10. An electronic device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the application package generation method according to any one of claims 1-7.