Application package generation method, software development equipment and storage medium
By setting up a folder structure for public and personalized code collections in software development equipment, the problems of high resource consumption and time cost in generating application packages for electronic devices of different models are solved, code sharing and efficient compilation are achieved, the accuracy of compilation is improved and the process is simplified.
Patent Information
- Application Number
- CN202510506263.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-09-12
AI Technical Summary
In the prior art, when generating target application packages for different types of electronic devices, it is necessary to obtain and compile different versions of code resources respectively, resulting in a large amount of code resources being occupied, high time cost, cumbersome process and prone to errors.
An application package generation method is adopted, which stores a public code set in a first folder and stores personalized code sets in multiple second folders, extracts and compiles the public code and personalized code sets in response to a compilation instruction, and generates application packages for various models.
It enables different versions of target applications to share a common code set, saving code resources, reducing the number of compilations, reducing the time and labor costs of developers, and improving the accuracy and reliability of compilation.
Smart Images

Figure CN120631364A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software development technology, and in particular to an application package generation method, software development equipment, and storage medium. Background Art
[0002] Nowadays, manufacturers of the same electronic device will produce different models of electronic devices to adapt to different groups of people (such as a certain car includes a regular version, a sports version, or a luxury version, etc.). It is understandable that the versions of the same target application for different models of electronic devices are different and there are some differences in functions to adapt to the needs of different groups of people. For example, when the target application is a voice assistant, the luxury version of a certain car has the function of voice waking up the air conditioner, while the regular version does not have this function.
[0003] Currently, when generating application packages for target applications on different models of electronic devices, it is necessary to obtain code resources for different versions of the target applications and compile them separately to obtain application packages for the target applications on different models of electronic devices. This requires a large amount of code resources and requires many compilations, resulting in high developer time and cost, a cumbersome process, high labor costs, and prone to errors in code compilation. Summary of the Invention
[0004] The present application provides an application package generation method, software development equipment and storage medium, which are used to solve the problem in the prior art that when it is necessary to generate application packages for target applications of electronic devices of different models, a lot of code resources are occupied and the number of compilation times is large, resulting in high time costs for developers and cumbersome processes, which makes code compilation prone to errors.
[0005] In a first aspect, the present application provides an application package generation method, which is applied to a software development device, wherein the software development device is used to generate target applications that match multiple target electronic devices of different models, respectively. The software development device is provided with a first folder and multiple second folders. The method provided by the present application includes:
[0006] receiving a common code set of target applications matching each model and storing the code set in a first folder;
[0007] Receiving personalized code sets that match target applications of target electronic devices of different models respectively, and storing the personalized code sets that match the target application of each model of target electronic device in a matching second folder;
[0008] In response to the compilation instruction, extracting the common code set in the first folder and the personalized code set in each second folder;
[0009] The public code set is respectively compiled with the personalized code set in each second folder to generate application packages of target applications for target electronic devices of different models.
[0010] In some embodiments, after generating application packages of target applications for target electronic devices of different models, the method provided by the present application includes:
[0011] receiving an update instruction for a public code set, wherein the update instruction includes the public code to be updated;
[0012] Based on the public code to be updated, the public code set is updated;
[0013] In response to the compilation instruction, extracting the updated common code set in the first folder and the personalized code sets in each second folder;
[0014] The updated common code set is respectively compiled with the personalized code set in each second folder to update the application packages of the target application programs of the target electronic devices of different models.
[0015] In some implementations, updating the common code set includes:
[0016] Perform code modification operations, code addition operations, vulnerability repair operations, or code deletion operations on the public code collection.
[0017] In some embodiments, after generating application packages of target applications for target electronic devices of different models, the method provided by the present application includes:
[0018] receiving an update instruction for a personalized code set matching a target application having a target function, wherein the update instruction includes the personalized code to be updated, and the personalized code to be updated is associated with the target function;
[0019] Determining, from target applications respectively matched with target electronic devices of different models, a plurality of target applications having target functions and target second folders to which they belong;
[0020] Based on the personalized code to be updated, the personalized code set under each target second folder is updated;
[0021] In response to the compilation instruction, extracting the updated common code set in the first folder and the updated personalized code set in each target second folder;
[0022] The public code set and the updated personalized code set in each target second folder are respectively compiled to update application packages of multiple target applications with target functions.
[0023] In some embodiments, the method provided herein further comprises:
[0024] In response to the folder creation instruction, creating a new second folder;
[0025] A personalized code set matching a target application program of a new model of a target electronic device input into a new second folder is received.
[0026] In some embodiments, after generating application packages of target applications for target electronic devices of different models, the method provided by the present application further includes:
[0027] The application packages of the target application programs of the target electronic devices of different models are published to the application download platform.
[0028] In some implementations, the target application is a voice assistant, a navigation application, or an instrument application.
[0029] In a second aspect, the present application provides a software development device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the software development device executes the method provided in the first aspect of the present application.
[0030] In a third aspect, the present application further provides a storage medium storing a computer program. When the computer program is executed by a processor, the computer executes the method provided in the first aspect of the present application.
[0031] In a fourth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed, enables a software development device to execute the method provided in the first aspect of the present application.
[0032] The present application provides an application package generation method, software development equipment, and storage medium. These methods can extract a common code set in the first folder and a personalized code set in each of the second folders in response to a compilation instruction; compile the common code set with the personalized code set in each of the second folders to generate application packages for target applications of different models of target electronic devices. This allows different versions of target applications to share a common code set, saving code resources. Developers only need to trigger code compilation once to generate application packages for multiple different versions of target applications, saving developers time and costs. The process is simple, labor costs are low, and the accuracy and reliability of code compilation are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0034] Figure 1 One of the flow charts of the method for generating an application package provided in an embodiment of the present application;
[0035] Figure 2 Flowchart 2 of the method for generating an application package provided in an embodiment of the present application;
[0036] Figure 3 Flowchart 3 of the method for generating an application package provided in an embodiment of the present application;
[0037] Figure 4 This is a functional module block diagram of the application package generation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely illustrative and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0039] The accompanying drawings illustrate various schematic diagrams of structures according to embodiments of the present disclosure. These figures are not drawn to scale, and for the purpose of clarity, certain details are exaggerated and certain details may be omitted. The shapes of the various regions and layers shown in the figures, as well as their relative sizes and positional relationships, are merely exemplary and may deviate in practice due to manufacturing tolerances or technical limitations. Those skilled in the art may design regions / layers with different shapes, sizes, and relative positions as needed.
[0040] In the context of the present disclosure, when a layer / element is referred to as being "on" another layer / element, it can be directly on the other layer / element or an intervening layer / element may be present therebetween. In addition, if a layer / element is "on" another layer / element in one orientation, it may be "below" the other layer / element when the orientation is reversed.
[0041] The following describes in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0042] The embodiment of the present application provides an application package generation method, which is applied to a software development device (such as an application development platform). The software development device is used to generate target applications that match multiple target electronic devices of different models, and the software development device is provided with a first folder and multiple second folders. Figure 1 As shown, the method provided in the embodiment of the present application includes:
[0043] S101: Receive a common code set of target applications matching various models and store it in a first folder.
[0044] For example, a user may input the identifier of a target application, the identifier of a common code set, and the common code set into a software development device. The software development device may then determine a first folder from a preset configuration file based on the identifier of the target application and the identifier of the common code set, and store the common code sets of the target applications matching each device model within the first folder. In this case, a correspondence may be established between the file name of the first folder and the identifier of the common code set, and the information may be recorded in the preset configuration file.
[0045] For example, the common code set for target applications matching different models can be: the common code set for voice assistants under different models of a certain vehicle (such as the standard version, sports version, or luxury version). Typically, the voice assistants of different models of a certain vehicle have many common functions, and the common code set is used to implement the same functions (such as voice-activated navigation) between the voice assistants of different models.
[0046] In addition, the common code set of target application programs matching various models may also be a common code set of map applications or setting applications under different models of a certain mobile phone (such as different styles of mobile phones of a certain brand).
[0047] In addition, the target application may also be, but not limited to, a navigation application or an instrument application.
[0048] S102: Receive personalized code sets that match target applications of target electronic devices of different models respectively, and store the personalized code sets that match the target application of each model of target electronic device in a matching second folder.
[0049] For example, the user can input the identifier of the target application, the identifier of the personalized code set, and the personalized code set in the software development device. Then, the software development device can determine a second folder from a preset configuration file based on the identifier of each target application and the identifier of each personalized code set, and store the personalized code set that matches the target application of each model of the target electronic device in the corresponding determined second folder.
[0050] It is understandable that the personalized code set matched by the target application may include a personalized code set for the voice assistant version A for the standard version of the car, a personalized code set for the voice assistant version B for the sports version of the car, and a personalized code set for the voice assistant version C for the luxury version of the car. The personalized code set can be used to implement personalized functions unique to the voice assistant of each car model (such as the voice window opening function).
[0051] S103: In response to the compile instruction, extract the common code set in the first folder and the personalized code set in each second folder.
[0052] The above-mentioned public code set, personalized code set and compilation instructions may be input by a user or received from an external device, which is not limited here.
[0053] S104: Compile the public code set and the personalized code set in each second folder to generate application packages of target applications for target electronic devices of different models.
[0054] For example, when the target application is a voice assistant, the public code set can be compiled with the personalized code set of the voice assistant of version A to obtain the application package of the voice assistant of version A; the public code set can be compiled with the personalized code set of the voice assistant of version B to obtain the application package of the voice assistant of version B; and the public code set can be compiled with the personalized code set of the voice assistant of version C to obtain the application package of the voice assistant of version C.
[0055] After S104 , the method provided in the embodiment of the present application may further include: publishing the application packages of the target application programs of the target electronic devices of different models to the application download platform for downloading by the vehicle terminal.
[0056] In summary, the application package generation method provided by the embodiment of the present application can extract the common code set in the first folder and the personalized code set in each of the second folders in response to a compilation instruction; compile the common code set and the personalized code set in each of the second folders to generate application packages for target applications of different models of target electronic devices. In this way, different versions of target applications can share the common code set, saving code resources, and developers only need to trigger code compilation once to generate application packages for multiple different versions of target applications, saving the time cost required by developers, and the process is simple, the labor cost is low, and the accuracy and reliability of code compilation are improved.
[0057] In some embodiments, as Figure 2 As shown, after S104, the method provided in the embodiment of the present application may further include:
[0058] S201: Receive an update instruction for a public code set, wherein the update instruction includes public codes to be updated.
[0059] S202: Based on the public code to be updated, update the public code set.
[0060] The specific method of updating the public code set may be, but is not limited to: performing a code modification operation, a code addition operation, a vulnerability repair operation, or a code deletion operation on the public code set.
[0061] S203: In response to the compile instruction, extract the updated common code set in the first folder and the personalized code sets in each second folder.
[0062] S204: Compiling the updated common code set with the personalized code set in each second folder to update the application packages of the target application programs of the target electronic devices of different models.
[0063] Based on the above S201-S204, it can be seen that when it is necessary to update the common functions of the target application programs of various versions, the common code set can be directly updated. Then, only one compilation is required to update the application packages of the target application programs of the target electronic devices of different models, thus saving a lot of time and cost. For example, if there are application packages of target application programs of 10 different models of target electronic devices, according to the existing technology, it takes an average of 2 hours to update each application package, and a total of 20 hours. By adopting the technology of the present invention, it only takes 2 hours to complete the update of the application packages of the target application programs of 10 different models of target electronic devices, and the labor cost and time cost are greatly reduced.
[0064] In some embodiments, as Figure 3 As shown, after S104, the method provided in the embodiment of the present application may further include:
[0065] S301: Receive an update instruction for a personalized code set matching a target application program having a target function, wherein the update instruction includes the personalized code to be updated, and the personalized code to be updated is associated with the target function.
[0066] For example, when the target application is a voice assistant, the target function may be to turn on the air conditioning function by voice or to initiate the navigation function by voice, etc., which is not limited here.
[0067] S302: Determine a plurality of target applications having target functions and the target second folders to which they belong from target applications respectively matched with a plurality of target electronic devices of different models.
[0068] For example, the voice assistant of version A of vehicle model A has the voice-initiated navigation function, the voice assistant of version B of vehicle model B has the voice-initiated navigation function, and the voice assistant of version C of vehicle model C has the voice-initiated navigation function, while the voice assistants of other vehicle models do not have the voice-initiated navigation function. Then, the target second folder for storing the personalized code set of the voice assistant of version A, the target second folder for storing the personalized code set of the voice assistant of version B, and the target second folder for storing the personalized code set of the voice assistant of version C are determined.
[0069] S303: Based on the personalized code to be updated, the personalized code set under each target second folder is updated.
[0070] S303: In response to the compile instruction, extract the updated common code set in the first folder and the updated personalized code set in each target second folder.
[0071] S304: Compile the public code set and the updated personalized code set in each target second folder to update the application packages of multiple target application programs with target functions.
[0072] Based on the above steps S301-S304, it can be seen that when it is necessary to update the personalized functionality shared by various versions of target applications (i.e., the target functionality, such as voice-controlled window opening or closing), the personalized code sets for multiple target applications can be updated at once. Consequently, only a single compilation is required to update the application packages of multiple target applications with the target functionality, saving significant time and labor costs.
[0073] In addition, in some embodiments, the method provided in the embodiments of the present application may further include: creating a new second folder in response to a folder creation instruction; and receiving a personalized code set matching a target application for a new model of target electronic device entered into the new second folder. In this way, a personalized code set for a new model (e.g., a newly produced vehicle model) can be added (e.g., to support the execution of the latest functions).
[0074] See also Figure 4 , the embodiment of the present application also provides an application package generation device, which is configured in a software development device. It should be noted that the basic principle and technical effects of the application package generation device provided in the embodiment of the present application are the same as those in the above-mentioned embodiment. For the sake of brief description, for parts not mentioned in the embodiment of the present application, please refer to the corresponding content in the above-mentioned embodiment. Specifically, the software development device is used to generate target applications that match multiple target electronic devices of different models, and the software development device is provided with a first folder and multiple second folders. The device provided in the embodiment of the present application includes a code receiving unit, a code extraction unit, and a code compilation unit, wherein,
[0075] The code receiving unit is used to receive a common code set of target applications matching each model and store it in a first folder; and receive personalized code sets that match target applications of target electronic devices of different models respectively, and store the personalized code sets that match the target applications of each model of target electronic device in a matching second folder.
[0076] In some implementations, the target application is a voice assistant, a navigation application, or an instrument application.
[0077] The code extraction unit is used to extract the common code set in the first folder and the personalized code set in each second folder in response to the compilation instruction.
[0078] The code compiling unit is used to compile the public code set and the personalized code set in each second folder respectively to generate application packages of target applications for target electronic devices of different models.
[0079] In some embodiments, the code receiving unit is further configured to receive an update instruction for the public code set, wherein the update instruction includes the public code to be updated;
[0080] The device provided in this application includes:
[0081] The code updating unit is used to update the public code set based on the public code to be updated.
[0082] Exemplarily, the code updating unit is specifically configured to perform a code modification operation, a code addition operation, a vulnerability repair operation, or a code deletion operation on the public code set.
[0083] The code extraction unit is further configured to extract the updated common code set in the first folder and the personalized code set in each second folder in response to the compilation instruction;
[0084] The code compiling unit is further configured to compile the updated common code set with the personalized code set in each second folder respectively, so as to update the application packages of the target application programs of the target electronic devices of different models.
[0085] In some embodiments,
[0086] The code receiving unit is further configured to receive an update instruction for a personalized code set matching a target application program having a target function, wherein the update instruction includes the personalized code to be updated, and the personalized code to be updated is associated with the target function.
[0087] The apparatus provided in the embodiment of the present application further includes: a data determining unit for determining, from target applications respectively matched with a plurality of target electronic devices of different models, a plurality of target applications having a target function and target second folders to which they belong;
[0088] The code updating unit is further configured to update the personalized code set under each target second folder based on the personalized code to be updated;
[0089] The code extraction unit is further configured to extract, in response to the compilation instruction, the updated common code set in the first folder and the updated personalized code set in each target second folder;
[0090] The code compiling unit is further configured to compile the public code set and the updated personalized code set in each target second folder respectively, so as to update the application packages of multiple target applications with target functions.
[0091] In some embodiments, the device provided by the present application also includes: a folder creation unit, which is used to create a new second folder in response to a folder creation instruction; and a code receiving unit, which is also used to receive a personalized code set that matches a target application that matches a new model of a target electronic device input into the new second folder.
[0092] In some embodiments, the apparatus provided by the present application further includes: a program package publishing unit, configured to publish application packages of target applications for target electronic devices of different models to an application download platform.
[0093] In addition, an embodiment of the present application provides a software development device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the computer program, the software development device executes the method provided in the above embodiment of the present application.
[0094] In addition, an embodiment of the present application further provides a storage medium, which stores a computer program. When the computer program is executed by a processor, the computer executes the method provided in the above embodiment of the present application.
[0095] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which, when executed, enables a software development device to execute the method provided in the above embodiment of the present application.
[0096] While the above description does not provide detailed technical details regarding the patterning of each layer, those skilled in the art will appreciate that various technical means can be employed to form layers, regions, and the like in desired shapes. Furthermore, those skilled in the art may devise methods that differ from those described above to achieve the same structure. Furthermore, while each embodiment has been described separately, this does not mean that the measures in each embodiment cannot be advantageously combined.
[0097] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present application.
[0098] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A method for generating an application package, characterized in that: The method is applied to a software development device for generating target applications that match target electronic devices of different models, wherein the software development device is provided with a first folder and a plurality of second folders, and the method includes: receiving a common code set of target applications matching each of the models and storing the code set in the first folder; Receiving personalized code sets that match target applications of target electronic devices of different models respectively, and storing the personalized code sets that match the target application of each model of target electronic device in a matching second folder; In response to the compilation instruction, extracting the common code set in the first folder and the personalized code set in each of the second folders; The public code set is respectively compiled with the personalized code set in each second folder to generate application packages of target applications for target electronic devices of different models.
2. The method according to claim 1, characterized in that After generating the application packages of the target application programs for the target electronic devices of different models, the method includes: receiving an update instruction for the public code set, wherein the update instruction includes the public code to be updated; updating the public code set based on the public code to be updated; In response to the compilation instruction, extracting the updated common code set in the first folder and the personalized code sets in each of the second folders; The updated common code set is respectively compiled with the personalized code set in each second folder to update the application packages of the target application programs of the target electronic devices of different models.
3. The method according to claim 2, characterized in that Updating the public code set includes: A code modification operation, a code addition operation, a vulnerability repair operation, or a code deletion operation is performed on the common code set.
4. The method according to claim 1, wherein After generating the application packages of the target application programs for the target electronic devices of different models, the method includes: Receiving an update instruction for a personalized code set matching a target application having a target function, wherein the update instruction includes the personalized code to be updated, and the personalized code to be updated is associated with the target function; Determining a plurality of target applications having target functions and target second folders to which the target applications respectively match a plurality of target electronic devices of different models; Based on the personalized code to be updated, updating the personalized code set under each of the target second folders; In response to the compilation instruction, extracting the updated common code set in the first folder and the updated personalized code set in each of the target second folders; The public code set and the updated personalized code set in each target second folder are respectively compiled to update application packages of multiple target applications with target functions.
5. The method according to claim 1, wherein The method further comprises: In response to the folder creation instruction, creating a new second folder; A personalized code set matching a target application program of a new model of a target electronic device input into the new second folder is received.
6. The method according to claim 1, characterized in that After generating the application packages of the target application programs for the target electronic devices of different models, the method further includes: The application packages of the target application programs of the target electronic devices of different models are published to the application download platform.
7. The method according to any one of claims 1 to 6, characterized in that: The target application is a voice assistant, a navigation application, or an instrument application.
8. A software development device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the software development device is caused to perform the method according to any one of claims 1 to 7.
9. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer is caused to perform the method according to any one of claims 1 to 7.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed, the software development device is caused to execute the method as claimed in any one of claims 1 to 7.