Application packaging method, device, computer equipment and storage medium
By introducing packaging middleware into the application packaging system, the application list and operation options are displayed according to user rights management, and packaging parameters are generated. This solves the problem that the existing system cannot meet the needs of different positions, and realizes user rights management and automatic packaging. Improved packaging efficiency and scope of application.
Patent Information
- Application Number
- CN202110990380.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-08-26
AI Technical Summary
The existing integrated packaging system integrated with Jenkins cannot display different packaging permissions based on user permission management, and management tools need to be added to implement user role settings, resulting in complex system improvements. It is only suitable for developers with coding foundation and is difficult to meet different job positions. packaging requirements.
Design an application packaging method that receives user login requests and verifies permissions through the packaging middleware connected to the system backend and the client, displays the application list and operation options according to user permissions, generates target packaging parameters and publishing parameters, and realizes automatic packaging , suitable for users in different positions.
It implements a packaging interface customized according to user permissions, simplifies the packaging process, reduces the difficulty of packaging for users in non-R&D positions, and expands the scope of application packaging.
Smart Images

Figure CN113805934B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to an application packaging method, device, computer equipment and storage medium. Background Art
[0002] At present, in the process of application development, the first person mostly uses an integrated packaging system integrated with Jenkins to package the application. However, this integrated packaging system integrated with Jenkins does not have the function of managing permissions according to different users, and cannot display different packaging permissions according to different users; or some companies have added management tools such as Maven and Nexus to the integrated packaging system integrated with Jenkins to set packaging permissions according to user roles, but the integrated packaging system needs to be improved and management tools need to be added; the management tools need to be adapted to the underlying architecture of the original integrated packaging system, which will cause the system program modules to be re-modified and compiled, and the workload is huge; and when using the above packaging system for packaging, the packaging personnel need to have a certain coding foundation, so the existing packaging system is only suitable for the first person who has a coding foundation and participates in the development of the application; for example, the second person in a position such as a product manager cannot perform packaging, and it is difficult to meet the packaging needs of users in different positions, and the scope of application of the packaging system is too limited. Summary of the invention
[0003] The embodiments of the present invention provide an application packaging method, apparatus, computer equipment and storage medium to solve the problem that it is difficult to meet the packaging needs of users in different job positions and the application scope of the packaging system is too limited.
[0004] An embodiment of the present invention provides an application packaging method, which is applied to an application packaging system, wherein the application packaging system includes a system backend and a client connected to the system backend, and the application packaging system also includes packaging middleware connected to the system backend and the client. The application packaging method includes the following steps performed by the packaging middleware:
[0005] Receiving a login request sent by the client, wherein the login request includes a target user account and a target user password;
[0006] Sending the login request to the system backend, so that the system backend verifies the legitimacy of the target user account and the target user password and generates a verification result;
[0007] Receiving program style data returned by the system backend when the verification result is verification passed, the program style data being data corresponding to an application program that the target user account has operation authority for;
[0008] Controlling the display interface of the client to display the application list in the program style data, wherein the application list includes at least one program version ID;
[0009] Based on the program version ID, a target packaging parameter and a target publishing parameter are obtained, and the target packaging parameter is sent to the system backend, so that the system backend performs application packaging based on the target packaging parameter to generate a target application package;
[0010] A target application package sent by the system background is received, and the target application package is published based on the target publishing parameters.
[0011] Preferably, the controlling the display interface of the client to display the application list in the program style data further includes:
[0012] Displaying program operation options corresponding to the target user account on the display interface;
[0013] The step of obtaining target packaging parameters and target publishing parameters based on the program version ID includes:
[0014] The application program corresponding to the program version ID is operated based on the program operation option to obtain the target packaging parameter and the target publishing parameter.
[0015] Preferably, the program operation options include script execution options, packaging options and publishing options;
[0016] The displaying the program operation options corresponding to the target user account on the display interface includes:
[0017] If the target user account is a first position user account, a script execution option, a packaging option and a publishing option are displayed on the display interface;
[0018] The application program corresponding to the program version ID is operated based on the program operation option to obtain the target packaging parameter and the target publishing parameter, including:
[0019] Run the target script corresponding to the program version ID based on the script execution option to obtain the running result;
[0020] If the running result is successful, then obtaining target packaging parameters based on the packaging options;
[0021] Based on the publishing options, target publishing parameters are obtained.
[0022] Preferably, the program operation options include packaging options and publishing options;
[0023] The displaying the program operation options corresponding to the target user account on the display interface includes:
[0024] If the target user account is a second position user account, a packaging option is displayed on the display interface;
[0025] The application program corresponding to the program version ID is operated based on the program operation option to obtain the target packaging parameter and the target publishing parameter, including:
[0026] Based on the packaging options, obtaining target packaging parameters;
[0027] Based on the publishing options, target publishing parameters are obtained.
[0028] An embodiment of the present invention provides an application packaging method, which is applied to an application packaging system, wherein the application packaging system includes a system background and a client connected to the system background, and the application packaging system also includes packaging middleware connected to the system background and the client. The application packaging method includes the following steps performed by the system background:
[0029] Receiving a login request sent by the packaging middleware, wherein the login request includes a target user account and a target user password;
[0030] Performing legitimacy verification on the target user account and the target user password, and generating a verification result;
[0031] When the verification result is that the verification is passed, program style data is generated, where the program style data is data corresponding to the application program for which the target user account has operation authority;
[0032] Sending the program style data to the packaging middleware so that the packaging middleware controls the display interface to display the application list, and based on at least one program version ID in the application list, obtains target packaging parameters and target publishing parameters;
[0033] Receiving target packaging parameters sent by the packaging middleware, packaging the application based on the target packaging parameters, and generating a target application package;
[0034] The target application package is sent to the packaging middleware, so that the packaging middleware publishes the target application package based on the target publishing parameter.
[0035] Preferably, the performing of legitimacy verification on the target user account and the target user password to generate a verification result includes:
[0036] Based on the target user account, query the system database to determine whether the target user account is a legitimate user account;
[0037] If the target user account is a legitimate user account, obtaining the legitimate user password corresponding to the legitimate user account from the system database;
[0038] If the target user password matches the legal user password, a verification result indicating that the verification is successful is obtained.
[0039] Preferably, when the verification result is that the verification is passed, generating program style data includes:
[0040] Based on the target user account, query the system database to obtain the user account type corresponding to the target user account;
[0041] Querying a user account permission table based on the user account type to obtain available application programs and program operation options corresponding to the target user account;
[0042] Based on the available application programs and program operation options corresponding to all target user accounts, program style data corresponding to the target user accounts are generated.
[0043] Preferably, after generating the target application package, the method further comprises:
[0044] Obtaining the operation frequency of the program version ID;
[0045] If the operation frequency of the program version ID is greater than a preset frequency, the target application package is cached.
[0046] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned application packaging method when executing the computer program.
[0047] A computer-readable storage medium stores a computer program, which implements the steps of the above-mentioned application packaging method when executed by a processor.
[0048] The above-mentioned application packaging method, device, computer equipment and storage medium, the packaging middleware receives the program style data returned by the system background when the verification result is verification passed, the program style data is the data corresponding to the application with the operation permission of the target user account; controls the display interface of the client, displays the application list in the program style data, and the application list includes at least one program version ID, so that the client corresponding to a target user account only displays the application with the operation permission of the target user account, ensures the simplicity of the display interface, facilitates the packaging of the target user account, realizes the personalized customization of the display interface according to the target user account, improves the packaging efficiency, avoids displaying all applications on the display interface, and makes it difficult for the staff to quickly obtain the required application. Based on the program version ID, the target packaging parameters and target release parameters are obtained, and the target packaging parameters are sent to the system background, so that the system background performs application packaging based on the target packaging parameters, generates a target application package, and provides technical support for subsequent application packaging. Receive the target application package sent by the system background, and publish the target application package based on the target publishing parameters. When the system background receives the target packaging parameters and the target publishing parameters, it can automatically package to form the target application package, which can effectively reduce the difficulty of packaging operations for target users, and enable users who are not in R&D positions to package applications by themselves, thereby increasing the user applicability of application packaging. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0050] Figure 1 is a schematic diagram of an application environment of an application packaging method in one embodiment of the present invention;
[0051] Figure 2 is a flow chart of an application packaging method in one embodiment of the present invention;
[0052] Figure 3 is another flow chart of the application packaging method in one embodiment of the present invention;
[0053] Figure 4 is another flow chart of the application packaging method in one embodiment of the present invention;
[0054] Figure 5 is another flow chart of the application packaging method in one embodiment of the present invention;
[0055] Figure 6 is another flow chart of the application packaging method in one embodiment of the present invention;
[0056] Figure 7 is another flow chart of the application packaging method in one embodiment of the present invention;
[0057] Figure 8 is another flow chart of the application packaging method in one embodiment of the present invention;
[0058] Fig. 9 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] The application packaging method provided by the embodiment of the present invention can be applied as follows: Figure 1 Specifically, the application packaging method is applied in an application packaging system, and the application packaging system includes: Figure 1 The system backend shown, the client connected to the system backend, and the packaging middleware connected to the system backend and the client are used to realize the display interface corresponding to different target user accounts, and can display the application program with the operation authority of the target user account according to the authority of the target user account, so as to ensure the simplicity of the display interface corresponding to the target user account, and facilitate the personnel corresponding to different target user accounts to quickly and conveniently package the application program. Among them, the system backend can be realized by an independent server or a server cluster composed of multiple servers. The client is the client corresponding to different staff members, that is, the number of multiple clients connected to the system backend is multiple. Packaging middleware is a type of software that provides connection between system software and application software and facilitates communication between various software components. Application software can share information and resources between different technical architectures with the help of middleware, has strong compatibility, and can provide user interface friendliness. And the packaging middleware is connected to each client.
[0061] In one embodiment, if Figure 2 As shown, a method for packaging an application is provided, which is applied in Figure 1 Taking the application packaging system in the example as an example, the application packaging method includes the following steps executed by the packaging middleware: including the following steps:
[0062] S201: receiving a login request sent by a client, where the login request includes a target user account and a target user password.
[0063] The login request is a request from a staff member corresponding to the target user account to log in to a web page or application that can package an application.
[0064] The target user account is an account used to uniquely identify the person corresponding to the client. For example, the target user account may be a department name, a job title, a work number, etc. The staff member corresponding to the target user account may be a first person, a tester, a product manager, etc.
[0065] The target user password is used to verify whether the target user account is a legitimate user account.
[0066] In this embodiment, the staff enters the login interface of the packaging webpage on the client, fills in the target user account and target user password on the login interface, forms a login request, and sends the login request to the packaging middleware.
[0067] S202: Send the login request to the system backend, so that the system backend verifies the legitimacy of the target user account and the target user password and generates a verification result.
[0068] The verification result is used to verify whether the target user account and target user password are legal.
[0069] In this embodiment, when the packaging middleware obtains the login request, it sends the login request to the system background. The system background queries the system database according to the target user account and the target user password to determine whether there is a legal user account corresponding to the target user account and a legal user password corresponding to the target user password in the system database; when there is a legal user account corresponding to the target user account and a legal user password corresponding to the target user password in the system database, the verification result is verification passed; when there is no legal user account corresponding to the target user account and / or no legal user password corresponding to the target user password in the system database, the verification result is verification failed.
[0070] In this embodiment, the system database of the system background pre-stores the legal user accounts and legal user passwords corresponding to all staff members; when the packaging middleware obtains the target user account and target user password, the target user account and target user password are verified so that the legal target user account can package the application.
[0071] S203: Receive program style data returned by the system background when the verification result is verification passed, where the program style data is data corresponding to the application program for which the target user account has operation authority.
[0072] Among them, program style data refers to the data corresponding to the application that the target user account has the operation authority and can be packaged. Among them, the operation authority refers to the authority to operate the application to achieve packaging, and the operation authority corresponding to different target user accounts is different; for example, the staff member corresponding to the target user account is the first staff member 1, and the applications that the first staff member 1 has the operation authority to include aa applications and bb applications; then the program style data corresponding to the target user account includes aa applications and bb applications, etc. The user corresponding to the target user account is product manager 2, and the applications that product manager 2 has the operation authority to include aa applications; then the program style data corresponding to the target user account includes aa applications, etc.
[0073] In this embodiment, when the verification result is passed, the system background queries the application programs that have operation permissions for the target user account to generate program style data that can be parsed by the packaging middleware, so that a client corresponding to a target user account only displays the application programs that the target user account has operation permissions for, thereby ensuring the simplicity of the display interface, facilitating the packaging of the target user account, and realizing personalized customization of the display interface according to the target user account, thereby improving packaging efficiency and avoiding displaying all applications on the display interface, making it difficult for staff to quickly obtain the required applications.
[0074] S204: Control the display interface of the client to display the application list in the program style data, where the application list includes at least one program version ID.
[0075] Among them, the application list is a list of applications that can be packaged by the staff corresponding to the target user account, that is, the application list corresponding to each target user account may be the same or different. For example, in the development process of the aa application, product manager 1 needs to propose the concept, first staff 1 and first staff 2 conduct research and development, and tester 1 conducts testing; at the same time, first staff 1 and first staff 2 are also responsible for the development of bb application; then the application list corresponding to product manager 1 and tester 1 only contains aa application and the program version ID corresponding to aa application; the application list corresponding to first staff 1 and first staff 2 contains aa application and the program version ID corresponding to aa application, as well as bb application and the program version ID corresponding to bb application.
[0076] The program version ID is an identifier used to determine the version of the application. For example, the program version ID can be aa application V1 (i.e., the first version of the aa application); aa application V2 (i.e., the second version of the aa application), aa application V3 (i.e., the third version of the aa application), etc.
[0077] In this embodiment, the client corresponding to the target user account only displays the application programs for which the target user account has operation permissions, thereby ensuring the simplicity of the display interface, facilitating the packaging of the target user account, and realizing personalized customization of the display interface according to the target user account, thereby improving packaging efficiency.
[0078] S205: Based on the program version ID, target packaging parameters and target publishing parameters are obtained, and the target packaging parameters are sent to the system backend, so that the system backend packages the application based on the target packaging parameters to generate a target application package.
[0079] The target packaging parameters are parameters required for packaging the application. For example, the target packaging parameters may be the target version ID of the application to be packaged, the path of the support library, and the entry class for specifying the program to run, etc., which are not limited here. Specifically, the staff selects the program version ID to be packaged from at least one program version ID of the application as the target version ID.
[0080] The target publishing parameter is used to determine the platform for publishing the target application. For example, the target publishing parameter can be xx mailbox, xx website or xx platform, etc., which is not limited here.
[0081] In this embodiment, the staff can operate the application to be packaged on the display interface to generate target packaging parameters and target publishing parameters, and send the target packaging parameters and target publishing parameters to the packaging middleware, so as to send the target packaging parameters and target publishing parameters to the system background through the packaging middleware to provide technical support for subsequent application packaging.
[0082] S206: Receive the target application package sent by the system background, and publish the target application package based on the target publishing parameters.
[0083] In this embodiment, the application packaging system is connected to the packaging middleware, and the display interface corresponding to the staff only displays the applications for which the target user account has operation permissions. The staff operates the application to generate target packaging parameters and target publishing parameters. When the system background receives the target packaging parameters and target publishing parameters, it can automatically package to form a target application package, which can effectively reduce the difficulty of packaging operations for target users, and enable users who are not in R&D positions to package applications by themselves, thereby increasing the user applicability of application packaging.
[0084] The application packaging method provided in this embodiment is that the packaging middleware receives the program style data returned by the system background when the verification result is that the verification is passed, and the program style data is the data corresponding to the application with the operation permission of the target user account; the display interface of the client is controlled to display the application list in the program style data, and the application list includes at least one program version ID, so that the client corresponding to a target user account only displays the application with the operation permission of the target user account, ensures the simplicity of the display interface, facilitates the packaging of the target user account, realizes the personalized customization of the display interface according to the target user account, improves the packaging efficiency, avoids displaying all applications on the display interface, and makes it difficult for the staff to quickly obtain the required application. Based on the program version ID, the target packaging parameters and the target publishing parameters are obtained, and the target packaging parameters are sent to the system background, so that the system background performs application packaging based on the target packaging parameters, generates the target application package, and provides technical support for subsequent application packaging. The target application package sent by the system background is received, and the target application package is released based on the target publishing parameters. When the system background receives the target packaging parameters and the target publishing parameters, it can automatically package to form a target application package, which can effectively reduce the difficulty of the target user's packaging operation, and realize that users in non-R&D positions can also package applications by themselves, and improve the user application scope of application packaging.
[0085] As an example, Figure 3 As shown, step S204 and step S205, i.e., controlling the display interface of the client to display the application list in the program style data; obtaining the target packaging parameters and the target publishing parameters based on the program version ID, include:
[0086] S301: Displaying program operation options corresponding to the target user account on the display interface.
[0087] S302: operating the application program corresponding to the program version ID based on the program operation option to obtain target packaging parameters and target publishing parameters.
[0088] The program operation option is an option for operating the program version ID corresponding to the application program that the target user account has operation authority for. According to the program operation option, the target packaging parameters and target publishing parameters are generated. That is, the program operation options of the target user account can be the same or different.
[0089] In this embodiment, the list of applications that the target user account has operation permissions for and the program operation options corresponding to the target user account are displayed on the display interface according to the target user account, so that during the packaging process, the display interface of each target user account displays the list of applications and program operation options related to the target user account, and personalized user interface customization is realized, so that the target user account can perform packaging operations according to the program operation options. Exemplarily, the staff member corresponding to the target user account is the first staff member 1, and the first staff member 1 is responsible for the research and development of the aa application and the bb application. Then the display interface corresponding to the first staff member 1 displays the aa application and the bb application, and displays the program operation options corresponding to the first staff member 1 (exemplarily, the program operation options corresponding to the first staff member include script execution options, packaging options, and publishing options, etc.). At this time, the first staff member 1 can process the aa application or the bb application corresponding to the program version ID according to the program operation options, and generate options for target packaging parameters and target publishing parameters. The staff member corresponding to the target user account is the second person 2 such as the product manager. The second person 2 is responsible for the aa application. The display interface corresponding to the second person 2 performs the aa application and the program operation options of the second person (exemplarily, the program operation options corresponding to the second person include packaging options and publishing options). At this time, the second person can process the aa application corresponding to the program version ID according to the packaging option to generate target packaging parameters and target publishing parameters.
[0090] In this embodiment, packaging middleware is set in the application packaging system, and the packaging middleware is used to make the display interfaces corresponding to multiple different target user accounts display the operation options corresponding to the target user accounts, so as to realize the personalized interface setting of the target user accounts, facilitate the users of different target user accounts to perform packaging, reduce the packaging difficulty, and speed up the packaging speed. The problem in the prior art that the packaging system integrated with Jenkins cannot display multiple applications and operation options corresponding to the target user accounts is solved.
[0091] The application packaging method provided in this embodiment displays program operation options corresponding to the target user account on the display interface; operates the application corresponding to the program version ID based on the program operation options, obtains target packaging parameters and target publishing parameters, and uses packaging middleware to make the display interfaces corresponding to multiple different target user accounts display the operation options corresponding to the target user account, thereby realizing personalized interface settings for the target user account, facilitating users of different target user accounts to perform packaging, reducing packaging difficulty, and speeding up packaging.
[0092] As an example, Figure 4 As shown, the program operation options include script execution options, packaging options, and publishing options;
[0093] Steps S301 and S302, i.e., displaying the program operation options corresponding to the target user account on the display interface; operating the application corresponding to the program version ID based on the program operation options, and obtaining the target packaging parameters and the target publishing parameters, include:
[0094] S401: If the target user account is a first position user account, a script execution option, a packaging option and a publishing option are displayed on a display interface.
[0095] The first position user account indicates that the user corresponding to the target user account is a first person, wherein the first person includes a person who needs to execute the script, such as a research and development person and a test person.
[0096] Specifically, when the system background determines that the target user account is a legitimate user account, the user account permission table is queried to determine whether the target user account is a first-post user account; when the target user account is a first-post user account, the display interface of the client corresponding to the target user account is determined, and a list of applications, script execution options, packaging options, and publishing options corresponding to the target user account are displayed. Among them, the user account permission table is a table that records multiple target user accounts and the association relationship between the operable applications and program operation options corresponding to each target user account. Exemplarily, the user account permission table can be: target user account 1, the operable applications are aa applications and bb applications, the first-post user account, and the program operation options are script execution options, packaging options, and publishing options; target user account 2, the operable applications are aa applications, bb applications, and cc applications, the first-post user account, and the program operation options are script execution options, packaging options, and publishing options.
[0097] The script execution option is an option for receiving a target script and executing the target script.
[0098] The packaging option is an option for the person corresponding to the target user account to select in order to obtain the target packaging parameters, and the packaging option can be a check option. Specifically, on the display interface corresponding to the target user account, all program version IDs for which the target user account has operation permissions are displayed, and each program version ID corresponds to a packaging option. The user corresponding to the target user account can check the packaging option corresponding to the program version ID to be packaged according to his actual needs, so that the packaging middleware obtains the target packaging parameters.
[0099] The publishing options are options for the target user account to select, so that the packaged middleware can obtain the target publishing parameters. Specifically, the publishing options include email address options and third-party application options, that is, the user corresponding to the target user account can select the corresponding publishing options according to the channel he wants to publish, so that the packaged middleware can obtain the target publishing parameters, so as to publish the target application package later.
[0100] S402: Run the target script corresponding to the program version ID based on the script execution option, and obtain the running result.
[0101] In this embodiment, when the verification result of the target user account is that the verification is passed, the application with operation authority corresponding to the target user account, the program version ID of each application, and the script execution option corresponding to each application are displayed through the packaging middleware; the personnel corresponding to the target user account upload the target script to the application packaging system through the script execution option, and run the target script to obtain the running result, providing technical support for subsequent packaging. In this embodiment, by setting the packaging middleware in the application packaging system, the script can be directly run, with strong compatibility and accelerated packaging speed. In the prior art, the packaging system integrated with jenkins cannot directly receive the target script, and the user is required to place the target script in the background of a specific system, and modify the name of the target script and other configuration operations, and then send the running result to the packaging system integrated with jenkins. The packaging system integrated with jenkins can be packaged, and the packaging process is very inconvenient, and the user application scope is very small, which is only applicable to the first person.
[0102] S403: If the running result is successful, the target packaging parameters are obtained based on the packaging options.
[0103] S404: Based on the publishing options, obtain target publishing parameters.
[0104] Specifically, when the verification result of the target user account is passed, the packaging middleware displays the applications with operation permissions corresponding to the target user account, the program version ID of each application, and the script execution options corresponding to each application; the person corresponding to the target user account uploads the target script to the application packaging system through the script execution option, and runs the target script to obtain the running result; the user corresponding to the target user account can check the packaging option corresponding to the program version ID whose running result is successful according to his or her actual needs, so that the packaging middleware obtains the target packaging parameters; the user corresponding to the target user account can select the corresponding publishing option according to the channel he or she wants to publish, so that the packaging middleware obtains the target publishing parameters, so as to facilitate the subsequent release of the application package.
[0105] It can be understood that the staff corresponding to the first-post user account can also directly operate the packaging options and publishing options corresponding to the program version ID so that the packaging middleware can obtain the target packaging parameters and target publishing parameters, which is convenient for the staff corresponding to the first-post user account to package the application.
[0106] In this embodiment, the person corresponding to the target user account can run the target script and perform operations such as checking through the script execution option, packaging option and publishing option to quickly generate target packaging parameters and target publishing parameters. Only operations such as checking are required, which is simple to operate and effectively improves the packaging speed.
[0107] S405: If the target user account is a second position user account, a packaging option and a publishing option are displayed on the display interface.
[0108] Among them, the second post user account indicates that the user corresponding to the target user account is the second person. Specifically, when the system background determines that the target user account is a legitimate user account, the user account permission table is queried to determine whether the target user account is a second post user account; when the target user account is a second post user account, the target user account is determined to have a list of applications with operation permissions, packaging options and publishing options, and displayed on the display interface. Among them, the user account permission table is a table that records multiple target user accounts and the association relationship between the operable applications and program operation options corresponding to each target user account. Exemplarily, the user account permission table can be: target user account 1, the operable applications are aa applications and bb applications, the first post user account, and the program operation options are script execution options, packaging options and publishing options; target user account 2, the operable applications are aa applications, the second post user account, and the program operation options are packaging options. In this embodiment, by setting the user account permission table, it is determined whether the target user account is a first post user account or a second post user account, so as to generate different operation options for staff members in different positions, reduce the difficulty of packaging, and realize that staff members in all positions can package applications by themselves, thereby improving packaging efficiency.
[0109] S406: Based on the packaging options, obtain target packaging parameters.
[0110] S407: Based on the publishing options, obtain target publishing parameters.
[0111] Specifically, when the verification result of the target user account is passed, the packaging middleware will display the applications with operation permissions corresponding to the target user account and the program version ID of each application; the user corresponding to the target user account can check the packaging option corresponding to the program version ID according to his or her actual needs, so that the packaging middleware can obtain the target packaging parameters; the user corresponding to the target user account can select the corresponding publishing option according to the channel he or she wants to publish, so that the packaging middleware can obtain the target publishing parameters, so as to subsequently publish the application package.
[0112] The application packaging method provided in this embodiment, by setting the user account permission table, determines whether the target user account is the first position user account or the second position user account, so as to generate different operation options for staff members in different positions, reduce the packaging difficulty, and realize that staff members in all positions can package the application by themselves, thereby improving the packaging efficiency. When the target user account is the first position user account, the script execution option, packaging option and publishing option are displayed on the display interface; based on the script execution option, the target script corresponding to the program version ID is run to obtain the running result. By setting the packaging middleware in the application packaging system, the script can be directly run, which has strong compatibility and accelerates the packaging speed. If the running result is successful, the target packaging parameters are obtained based on the packaging option; based on the publishing option, the target publishing parameters are obtained. The user corresponding to the target user account can check the packaging option corresponding to the program version ID with the running result of successful running according to his actual needs, so that the packaging middleware obtains the target packaging parameters; the user corresponding to the target user account can select the corresponding publishing option according to the channel he wants to publish, so that the packaging middleware obtains the target publishing parameters, so as to publish the application package later. When the target user account is a second position user account, the packaging option is displayed on the display interface; based on the packaging option, the target packaging parameters are obtained; based on the publishing option, the target publishing parameters are obtained.
[0113] Example 2
[0114] Figure 5 As shown, the present invention provides an application packaging method, which is applied to an application packaging system. The application packaging system includes a system background and a client connected to the system background. The application packaging system also includes packaging middleware connected to the system background and the client. The application packaging method includes the following steps performed by the system background:
[0115] S501: receiving a login request sent by the packaging middleware, where the login request includes a target user account and a target user password.
[0116] In this embodiment, the staff enters the login interface of the packaging webpage on the client, fills in the target user account and target user password on the login interface, forms a login request, and sends the login request to the packaging middleware. When the packaging middleware receives the login request, it verifies the legitimacy of the target user account and target user password to determine that the target user account is a legal user account.
[0117] S502: Verify the legitimacy of the target user account and target user password and generate a verification result.
[0118] In this embodiment, when the packaging middleware obtains the login request, it sends the login request to the system background. The system background queries the system database according to the target user account and the target user password to determine whether there is a legal user account corresponding to the target user account and a legal user password corresponding to the target user password in the system database; when there is a legal user account corresponding to the target user account and a legal user password corresponding to the target user password in the system database, the verification result is verification passed; when there is no legal user account corresponding to the target user account and / or no legal user password corresponding to the target user password in the system database, the verification result is verification failed.
[0119] In this embodiment, the system database of the system background pre-stores the legitimate user accounts and legitimate user passwords of all users; when the packaging middleware obtains the target user account and target user password, the target user account and target user password are verified so that the legitimate target user account can package the application.
[0120] S503: When the verification result is that the verification is passed, program style data is generated, and the program style data is data corresponding to the application program that the target user account has operation authority.
[0121] In this embodiment, when the verification result is verification passed, the system background queries the application program that has operation permissions for the target user account, and generates program style data that can be parsed by the packaging middleware based on the information corresponding to the application program that has operation permissions for the target user account, so as to display the program style data corresponding to the target user account on the display interface of the client corresponding to the target user account, thereby realizing personalized customization of the display interface according to the target user account, ensuring that the display interface of the target user account meets the actual needs of the user and is convenient for user operation.
[0122] S504: Sending program style data to the packaging middleware so that the packaging middleware controls the display interface to display the application list, and acquiring target packaging parameters and target publishing parameters based on at least one program version ID in the application list.
[0123] In this embodiment, the client corresponding to the target user account only displays the application programs for which the target user account has operation permissions, thereby ensuring the simplicity of the display interface, facilitating the packaging of the target user account, and realizing personalized customization of the display interface according to the target user account, thereby improving packaging efficiency.
[0124] S505: Receive the target packaging parameters sent by the packaging middleware, package the application based on the target packaging parameters, and generate a target application package.
[0125] In this embodiment, the staff can operate the application to be packaged on the display interface to generate target packaging parameters and target publishing parameters, and send the target packaging parameters and target publishing parameters to the packaging middleware, so as to send the target packaging parameters and target publishing parameters to the system background through the packaging middleware to provide technical support for subsequent application packaging.
[0126] S506: Send the target application package to the packaging middleware, so that the packaging middleware publishes the target application package based on the target publishing parameters.
[0127] In this embodiment, the application packaging system is connected to the packaging middleware, and the display interface corresponding to the staff only displays the applications for which the target user account has operation permissions. The staff operates the application to generate target packaging parameters and target publishing parameters. When the system background receives the target packaging parameters and target publishing parameters, it can automatically package to form a target application package, which can effectively reduce the difficulty of packaging operations for target users, and enable users who are not in R&D positions to package applications by themselves, thereby increasing the user applicability of application packaging.
[0128] Furthermore, the target packaging parameters include a target encryption algorithm; packaging the application based on the target packaging parameters to generate a target application package includes: packaging the application based on the target packaging parameters to generate an initial application package, encrypting the initial application package using the target encryption algorithm to obtain the target application package.
[0129] The target encryption algorithm is an algorithm used to encrypt the target application package. The target encryption algorithm is used to encrypt the initial application package to ensure the security of the target application package and prevent the target application package from being tampered with.
[0130] The application packaging method provided in this embodiment verifies the legitimacy of the target user account and the target user password and generates a verification result; when the verification result is that the verification is passed, program style data is generated, and the program style data is the data corresponding to the application for which the target user account has operation authority; the program style data is sent to the packaging middleware so that the packaging middleware controls the display interface to display the application list, and obtains the target packaging parameters and the target publishing parameters based on at least one program version ID in the application list, so as to ensure the simplicity of the display interface, facilitate the packaging of the target user account, realize the personalized customization of the display interface according to the target user account, and improve the packaging efficiency. Receive the target packaging parameters sent by the packaging middleware, package the application based on the target packaging parameters, generate the target application package, and provide technical support for subsequent application packaging. Send the target application package to the packaging middleware so that the packaging middleware releases the target application package based on the target publishing parameters, which can effectively reduce the difficulty of the packaging operation of the target user, and realize that users in non-R&D positions can also package applications by themselves, thereby improving the user application scope of application packaging.
[0131] As an example, Figure 6 As shown, step S502, that is, verifying the legitimacy of the target user account and the target user password, and generating a verification result, includes:
[0132] S601: querying a system database based on a target user account to determine whether the target user account is a legitimate user account.
[0133] S602: If the target user account is a legitimate user account, obtain the legitimate user password corresponding to the legitimate user account from the system database.
[0134] S603: If the target user password matches the valid user password, a verification result indicating that the verification is successful is obtained.
[0135] Specifically, when the packaging middleware obtains the login request, it sends the login request to the system backend. The system backend queries the system database based on the target user account and the target user password to determine whether there is a legal user account corresponding to the target user account and a legal user password corresponding to the target user password in the system database; when there is a legal user account corresponding to the target user account and a legal user password corresponding to the target user password in the system database, the verification result is verification passed; when there is no legal user account corresponding to the target user account and / or no legal user password corresponding to the target user password in the system database, the verification result is verification failed.
[0136] In this embodiment, by verifying the legitimacy of the target user account and the target user password, it is ensured that only the legitimate target user account can package the application program in the future, thereby ensuring data security.
[0137] The application packaging method provided in this embodiment queries the system database based on the target user account to determine whether the target user account is a legitimate user account; if the target user account is a legitimate user account, the legitimate user password corresponding to the legitimate user account is obtained from the system database; if the target user password matches the legitimate user password, a verification result of passing the verification is obtained. By verifying the legitimacy of the target user account and the target user password, it is ensured that only the legitimate target user account can subsequently package the application, ensuring data security.
[0138] As an example, Figure 7 As shown, step S503, that is, when the verification result is that the verification is passed, generating program style data includes:
[0139] S701: Query a user account permission table based on a target user account to obtain a user account type corresponding to the target user account.
[0140] Among them, the user account types include a first position user account and a second position user account.
[0141] S702: Query the user account permission table based on the user account type to obtain available application programs and program operation options that match the user account type.
[0142] The available applications are applications for which the target user account has operation permissions.
[0143] S703: Generate program style data corresponding to the target user account based on all available application programs and program operation options.
[0144] Specifically, when the system background determines that the target user account is a legitimate user account, the user account permission table is queried to determine whether the user account type corresponding to the target user account is a first-position user account or a second-position user account; when the target user account is a first-position user account, the program operation options of the target user account are script execution options, packaging options and publishing options, and then the application list is queried according to the target user account to obtain the available applications corresponding to the target user account, and the program style data corresponding to the target user account being the first-position account is generated according to the available applications and the program operation options; when the target user account is a second-position user account, the program operation options of the target user account are packaging options and publishing options, and then the application list is queried according to the target user account to obtain the available applications corresponding to the target user account, and the program style data corresponding to the target user account being the second-position account is generated according to the available applications and the program operation options; so as to generate different operation options for staff in different positions, reduce the difficulty of packaging, and enable staff in all positions to package applications by themselves, thereby improving packaging efficiency.
[0145] The application packaging method provided in this embodiment queries the system database based on the target user account to obtain the user account type corresponding to the target user account; queries the user account permission table based on the user account type to obtain the available applications and program operation options corresponding to the target user account; generates program style data corresponding to the target user account based on the available applications and program operation options corresponding to all target user accounts, so as to generate different operation options for staff in different positions, reduce the difficulty of packaging, and enable staff in all positions to package applications by themselves, thereby improving packaging efficiency.
[0146] As an example, Figure 8 As shown, after step S505, that is, after generating the target application package, the method further includes:
[0147] S801: Obtain the operation frequency of the program version ID.
[0148] The operation frequency is the frequency at which the program version ID is packaged.
[0149] In this embodiment, the operation frequency of the program version ID of each application program is pre-stated in the packaging background to provide technical assistance for subsequent cache processing.
[0150] S802: If the operation frequency of the program version ID is greater than a preset frequency, cache processing is performed on the target application package.
[0151] In this embodiment, when the operating frequency of the program version ID is greater than the preset frequency, it means that the target application package is packaged at a high frequency. At this time, the target application package is cached and stored in the system background to ensure that the target application package can be quickly obtained later; when the operating frequency of the program version ID is not greater than the preset frequency, it means that the target application package is packaged at a low frequency. In order to ensure the storage space of the system background, the target application package is cleared to remove useless data.
[0152] The application packaging method provided in this embodiment obtains the operation frequency of the program version ID and provides technical assistance for subsequent cache processing. When the operation frequency of the program version ID is greater than the preset frequency, the target application package is cached to ensure that the target application package can be quickly obtained later.
[0153] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0154] In one embodiment, a computer device is provided. The computer device may be a system background, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a network interface and a system database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a system database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The system database of the computer device is used to store an application list. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an application packaging method is implemented.
[0155] In one embodiment, a computer device is provided, including 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 steps of the application packaging method in the above embodiment are implemented, such as Figure 2 Steps S201-S206 shown, or Figures 3 to 8 To avoid repetition, the steps shown in are not repeated here.
[0156] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the application packaging method in the above embodiment are implemented, such as Figure 2Steps S201-S206 shown, or Figures 3 to 8 To avoid repetition, the steps shown in are not repeated here.
[0157] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0158] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0159] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. An application packaging method, applied to an application packaging system, wherein the application packaging system includes a system backend and a client connected to the system backend, characterized in that: The application packaging system further includes a packaging middleware connected to the system backend and the client, and the application packaging method includes the following steps performed by the packaging middleware: Receiving a login request sent by the client, wherein the login request includes a target user account and a target user password; Sending the login request to the system backend, so that the system backend verifies the legitimacy of the target user account and the target user password and generates a verification result; Receiving program style data returned by the system backend when the verification result is verification passed, the program style data being data corresponding to an application program that the target user account has operation authority for; Controlling the display interface of the client to display the application list in the program style data, the application list including at least one program version ID; the application list is a list of the applications that can be packaged by the staff corresponding to the target user account; the client corresponding to the target user account displays the applications that the target user account has operation authority for; Based on at least one of the program version IDs, a target packaging parameter and a target publishing parameter are acquired, and the target packaging parameter and the target publishing parameter are sent to the packaging middleware, so that the target packaging parameter and the target publishing parameter are sent to the system backend through the packaging middleware, so that the system backend performs application packaging based on the target packaging parameter to generate a target application package; A target application package sent by the system background is received, and the target application package is published based on the target publishing parameters.
2. The application packaging method according to claim 1, characterized in that: The controlling the display interface of the client to display the application list in the program style data further includes: Displaying program operation options corresponding to the target user account on the display interface; The acquiring target packaging parameters and target publishing parameters based on at least one of the program version IDs includes: Based on the program operation option, at least one application corresponding to the program version ID is operated to obtain the target packaging parameter and the target publishing parameter.
3. The application packaging method according to claim 2, characterized in that: The program operation options include script execution options, packaging options and publishing options; The displaying the program operation options corresponding to the target user account on the display interface includes: If the target user account is a first position user account, a script execution option, a packaging option and a publishing option are displayed on the display interface; Operating at least one application corresponding to the program version ID based on the program operation option to obtain the target packaging parameter and the target publishing parameter includes: Run at least one target script corresponding to the program version ID based on the script execution option to obtain the running result; If the running result is successful, then obtaining target packaging parameters based on the packaging options; Based on the publishing options, target publishing parameters are obtained.
4. The application packaging method according to claim 2, characterized in that: The program operation options include packaging options and publishing options; The displaying the program operation options corresponding to the target user account on the display interface includes: If the target user account is a second position user account, a packaging option and a publishing option are displayed on the display interface; Operating at least one application corresponding to the program version ID based on the program operation option to obtain the target packaging parameter and the target publishing parameter includes: Based on the packaging options, obtaining target packaging parameters; Based on the publishing options, target publishing parameters are obtained.
5. An application packaging method, applied to an application packaging system, wherein the application packaging system includes a system backend and a client connected to the system backend, characterized in that: The application packaging system further includes packaging middleware connected to the system background and the client, and the application packaging method includes the following steps performed by the system background: Receiving a login request sent by the packaging middleware, wherein the login request includes a target user account and a target user password; Performing legitimacy verification on the target user account and the target user password, and generating a verification result; When the verification result is that the verification is passed, program style data is generated, where the program style data is data corresponding to the application program for which the target user account has operation authority; Sending the program style data to the packaging middleware so that the packaging middleware controls the display interface to display an application list, and obtaining target packaging parameters and target publishing parameters based on at least one program version ID in the application list; the application list is a list of the applications that can be packaged by the staff corresponding to the target user account; The client corresponding to the target user account displays the application for which the target user account has operation authority; Receiving target packaging parameters sent by the packaging middleware, packaging the application based on the target packaging parameters, and generating a target application package; The target application package is sent to the packaging middleware, so that the packaging middleware publishes the target application package based on the target publishing parameter.
6. The application packaging method according to claim 5, characterized in that: The step of verifying the legitimacy of the target user account and the target user password and generating a verification result includes: Based on the target user account, query the system database to determine whether the target user account is a legitimate user account; If the target user account is a legitimate user account, obtaining the legitimate user password corresponding to the legitimate user account from the system database; If the target user password matches the legal user password, a verification result indicating that the verification is successful is obtained.
7. The application packaging method according to claim 5, characterized in that: When the verification result is that the verification is passed, generating program style data includes: Based on the target user account, query the system database to obtain the user account type corresponding to the target user account; Querying a user account permission table based on the user account type to obtain available application programs and program operation options corresponding to the target user account; Based on the available application programs and program operation options corresponding to all target user accounts, program style data corresponding to the target user accounts are generated.
8. The application packaging method according to claim 7, characterized in that: After generating the target application package, the method further includes: Obtaining an operation frequency of at least one of the program version IDs; If the operation frequency of at least one of the program version IDs is greater than a preset frequency, the target application package is cached.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the application packaging method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the application packaging method according to any one of claims 1 to 8 are implemented.
