CN111338686A - Software construction method, equipment, server and readable storage medium - Google Patents

Software construction method, equipment, server and readable storage medium Download PDF

Info

Publication number
CN111338686A
CN111338686A CN202010090220.3A CN202010090220A CN111338686A CN 111338686 A CN111338686 A CN 111338686A CN 202010090220 A CN202010090220 A CN 202010090220A CN 111338686 A CN111338686 A CN 111338686A
Authority
CN
China
Prior art keywords
module
data packet
software
constructed
modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010090220.3A
Other languages
Chinese (zh)
Inventor
周志龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202010090220.3A priority Critical patent/CN111338686A/en
Publication of CN111338686A publication Critical patent/CN111338686A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/12Protecting executable software
    • G06F21/14Protecting executable software against software analysis or reverse engineering, e.g. by obfuscation

Abstract

The embodiment of the invention discloses a software construction method, a device, a server and a readable storage medium, wherein the method comprises the following steps: acquiring a source code of software to be delivered; analyzing the source code to determine at least one module corresponding to the source code; determining a module to be constructed according to the acquired selection operation aiming at each module in the at least one module, and constructing the module to be constructed; packaging each constructed module to obtain a data packet, and performing security reinforcement processing on the data packet obtained by packaging; and sending the data packet after the security reinforcement treatment to a test terminal so that the test terminal tests the data packet and sends the data packet to a user terminal after the data packet is tested to be qualified. Through the implementation mode, unnecessary modules can be prevented from being constructed, the construction efficiency is improved, and the user experience is improved.

Description

Software construction method, equipment, server and readable storage medium
Technical Field
The present invention relates to the field of software construction technologies, and in particular, to a software construction method, a software construction device, a server, and a readable storage medium.
Background
The construction and delivery of project products in the current industry is to obtain all codes in a code warehouse of the project products, and package and construct all modules included in all the codes, so as to construct a package including all the modules. However, in this construction method, when a constructor may only need one module function, the constructed bag includes a plurality of modules, which results in problems of long construction time, long waiting time for the constructor, complex module construction, large volume of the constructed bag body, long user downloading time, and the like, thereby resulting in low construction efficiency and poor user experience.
Disclosure of Invention
The embodiment of the invention provides a software construction method, software construction equipment, a server and a readable storage medium, which can avoid constructing unnecessary modules, improve construction efficiency and improve user experience.
In a first aspect, an embodiment of the present invention provides a software construction method, including:
acquiring a source code of software to be delivered;
analyzing the source code to determine at least one module corresponding to the source code;
determining a module to be constructed according to the acquired selection operation aiming at each module in the at least one module, and constructing the module to be constructed;
packaging each constructed module to obtain a data packet, and performing security reinforcement processing on the data packet obtained by packaging;
and sending the data packet after the security reinforcement treatment to a test terminal so that the test terminal tests the data packet and sends the data packet to a user terminal after the data packet is tested to be qualified.
Further, the determining a module to be constructed according to the obtained selection operation for each module of the at least one module includes:
acquiring selection operation aiming at each module in the at least one module on a user interface;
and determining the module to be constructed selected by the selection operation, wherein the module to be constructed comprises one or more modules.
Further, before the building of the module to be built, the method further includes:
calculating the association degree between each module in the modules to be built according to the source codes of each module in the modules to be built;
determining a module with the association degree larger than or equal to a preset association threshold value in the modules to be constructed as a first module;
and determining a module with the association degree smaller than a preset association threshold value in the modules to be constructed as a second module.
Further, the module to be constructed comprises the first module; the building the module to be built comprises the following steps:
determining a relation tree among the modules in the first module according to the association degree among the modules in the first module;
and constructing each module in the first module according to the relation tree among the modules in the first module.
Further, the module to be constructed comprises the second module; the building the module to be built comprises the following steps:
and constructing each module in the second module by adopting a multithread parallel construction mode.
Further, before performing security reinforcement processing on the data packet obtained by encapsulation, the method further includes:
adding an identifier to the data packet obtained by packaging, wherein the identifier is used for indicating that the source of the data packet is the software to be delivered;
the security reinforcement processing of the data packet obtained by encapsulation includes:
and encrypting the data packet added with the identifier according to a preset key to obtain the encrypted data packet.
Further, the acquiring the source code of the software to be delivered includes:
acquiring a construction instruction, wherein the construction instruction comprises a software identifier to be delivered;
and determining a source code corresponding to the software identification according to the software identification included in the construction instruction.
In a second aspect, an embodiment of the present invention provides a software construction apparatus, which includes a unit configured to execute the software construction method of the first aspect.
In a third aspect, an embodiment of the present invention provides a server, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports a software building device to execute the foregoing method, and the computer program includes a program, and the processor is configured to call the program to execute the foregoing method of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the method of the first aspect.
The method and the device for constructing the software module can analyze the source code of the software to be delivered to determine at least one module corresponding to the source code, determine the module to be constructed according to the acquired selection operation aiming at each module in the at least one module, and construct the module to be constructed. Each constructed module is packaged to obtain a data packet, and the data packet obtained through packaging is subjected to security reinforcement processing, so that the data packet subjected to security reinforcement processing is sent to the test terminal, and the test terminal is sent to the user terminal after the data packet is tested to be qualified. Through the implementation mode, unnecessary modules can be prevented from being constructed, the construction efficiency is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart of a software construction method provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a module relationship provided in an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a software construction apparatus provided by an embodiment of the present invention;
fig. 4 is a schematic block diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The software construction method provided by the embodiment of the invention can be executed by a software construction device, wherein the software construction device can be arranged on a server. In some embodiments, the software construction device may be installed on a server; in some embodiments, the software construction device may be spatially independent of the server; in some embodiments, the software construction device may be a component of the server, i.e. the server comprises a software construction device.
In the embodiment of the present invention, the software construction device may obtain a source code of software to be delivered, analyze the source code to determine at least one module corresponding to the source code, determine a module to be constructed according to an obtained selection operation for each module in the at least one module, and construct the module to be constructed. The data package is obtained by packaging each built module, the data package obtained by packaging is subjected to security reinforcement processing, and the data package subjected to security reinforcement processing is sent to the test terminal, so that the test terminal tests the data package and sends the data package to the user terminal after the data package is tested to be qualified. By the implementation mode, unnecessary modules are prevented from being constructed, construction efficiency is improved, and user experience is improved.
The software construction method according to the embodiment of the present invention is schematically described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic flowchart of a software construction method according to an embodiment of the present invention, and as shown in fig. 1, the method may be executed by a software construction device, and a specific explanation of the software construction device is as described above, which is not described herein again. Specifically, the method of the embodiment of the present invention includes the following steps.
S101: and acquiring the source code of the software to be delivered.
In the embodiment of the invention, the software construction equipment can acquire the source code of the software to be delivered.
In one embodiment, when acquiring a source code of software to be delivered, a software construction device may acquire a construction instruction, where the construction instruction includes a software identifier to be delivered, and determine, according to the software identifier included in the construction instruction, the source code corresponding to the software identifier.
In some embodiments, when determining the source code corresponding to the software identifier according to the software identifier included in the build instruction, the software build device may acquire the source code of the software to be delivered corresponding to the software identifier from a code management repository. In some embodiments, the code management repository includes a correspondence of software identifications to source code. In some embodiments, the source code of the software to be delivered may be uploaded into a code management repository through a git or other tool.
In one embodiment, before the source code of the software to be delivered is acquired, the architecture of the project software may be adjusted, and in the adjustment process, componentized architecture change may be performed on the architecture of the project software, so that the adjusted project software is decoupled between the module components in the construction. The software construction method of the embodiment of the invention is completed in the adjusted componentized framework.
S102: the source code is analyzed to determine at least one module corresponding to the source code.
In this embodiment of the present invention, the software building apparatus may analyze the source code to determine at least one module corresponding to the source code. In certain embodiments, the modules include, but are not limited to, a life insurance module, a production line module, a banking module, an online business module, and the like.
In an embodiment, when analyzing the source code, the software building device may perform scanning analysis on the source code according to a preset project structure scanning tool to determine a project structure of the source code, and determine at least one module corresponding to the source code according to the project structure.
In one embodiment, the software building device may sort through the relationships between modules by a preset building tool to determine the relationships between modules. In certain embodiments, the preset build tools include, but are not limited to, a gradle build tool.
S103: and determining a module to be constructed according to the acquired selection operation aiming at each module in the at least one module, and constructing the module to be constructed.
In the embodiment of the present invention, the software building device may determine the module to be built according to the obtained selection operation for each module in the at least one module, and build the module to be built.
In an embodiment, when determining a module to be constructed according to an obtained selection operation for each module of the at least one module, the software construction device may obtain a selection operation for each module of the at least one module on a user interface, and determine the module to be constructed selected by the selection operation, where the module to be constructed includes one or more modules. In some embodiments, the selection operation includes, but is not limited to, a click operation, a press operation, a slide operation, and the like.
For example, if the software construction device obtains a selection operation of a user for a life insurance module, a production line module, and a bank module, the software construction device may determine, according to the determination operation, the life insurance module, the production line module, and the bank module as modules to be constructed, and construct the life insurance module, the production line module, and the bank module.
Therefore, through the implementation mode, the user can independently select the module to be constructed, some unnecessary modules are prevented from participating in the construction process, the construction time in the construction process is greatly shortened, the waiting time of a demand side is reduced, and the user experience is improved.
In an embodiment, before the software building device builds the module to be built, the software building device may calculate the association degree between each of the modules to be built according to the source code of each of the modules to be built, determine that a module of the module to be built, in which the association degree is greater than or equal to a preset association threshold value, is a first module, and determine that a module of the module to be built, in which the association degree is less than the preset association threshold value, is a second module.
For example, assuming that the determined module to be constructed includes a life insurance module, a production line module, and a bank module, and the preset association threshold is 60%, the software construction device may calculate association degrees between each of the life insurance module, the production line module, and the bank module according to source codes of the life insurance module, the production line module, and the bank module, and if the association degree between the life insurance module and the bank module is 80%, the association degree between the life insurance module and the production line module is 50%, and the association degree between the production line module and the bank module is 55%, may determine that the life insurance module and the bank module, of which the association degrees are greater than the preset association threshold, in the module to be constructed are the first module, and determine that the production line module, of which the association degrees are less than the preset association threshold, in the module to be constructed is the second module.
In some embodiments, the software building device may calculate the association degree between each module in the modules to be built according to the logical relationship between the source codes of each module. In some embodiments, the logical relationships include objects, parameters, and the like. The embodiment of the present invention does not specifically limit the manner of calculating the association degree between each module in the modules to be constructed.
In one embodiment, the logical relationship may include an object, the object in the logical relationship may include an interface function of a class, and the software building device may determine the association degree between the modules according to the interface function of the class of each module. For example, assuming that it is detected that the interface function included in the class of the online service item module is swap function swap (a, b), if the number of times the swap function swap (a, b) is called in the class of the life item module is 3, the number of times the swap function swap (a, b) is called in the class of the bank item module is 2, and the swap function swap (a, b) is not called in the class of the base module, and thus, the total number of times the swap function swap (a, b) is called in all the modules is 5, it may be determined that the association degree between the life item module and the online service item module is 3/5-60%, and the association degree between the bank item module and the online service item module is 2/5-40%.
In one embodiment, the logical relationship may include objects and parameters, the software building device may determine the association degree between the modules according to the objects and parameters of the modules, and the objects in the logical relationship may include interface functions of the classes. For example, assuming that it is detected that the interface function included in the class of the online service item module is swap function swap (a, b), the class of the life item module calls swap function swap (a, b), the class of the bank item module calls swap function swap (a, b), if the class of the life item module calling swap function swap (a, b) has 8 number of parameters identical to the class of the service item module calling swap function swap (a, b), the class of the bank item module calling swap function swap (a, b) has 6 number of parameters identical to the class of the service item module calling swap function swap (a, b), and if the number of the life item module and the bank item module having 4 parameters identical to each other, it may be determined that the association degree of the life item module and the online service item module is (8-4)/(8-4+6-4) = 4/6% The association degree between the bank item module and the online service item module is (6-4)/(8-4+6-4) ═ 2/6 ═ 33%.
In one embodiment, the first module is included in the module to be built; when the software building device builds the module to be built, the software building device may determine a relationship tree between the modules in the first module according to the association degree between the modules in the first module, and build each module in the first module according to the relationship tree between the modules in the first module. In some embodiments, the relationship tree is used to represent associations between respective ones of the first modules.
Taking fig. 2 as an example, fig. 2 is a schematic diagram of a module relationship provided in an embodiment of the present invention, and as shown in fig. 2, it is assumed that a first module includes a life insurance item module 21, a production line item module 22, a bank item module 23, and an online business item module 24, and if it is determined that the association degree between the production line item module 22 and the online business item module 24 is 80%, the association degree between the online business item module 24 and the life insurance item module 21 is 78%, and the association degree between the online business item module 24 and the bank item module 23 is 70%, a relationship tree as shown in fig. 2 may be determined, and the life insurance item module 21, the production line item module 22, the bank item module 23, and the online business item module 24 in the first module are constructed according to the relationship tree as shown in fig. 2.
Therefore, the construction efficiency of each module in the first module can be improved by constructing each module in the first module in a relation tree mode.
In one embodiment, the second module is included in the module to be built; when the software building equipment builds the module to be built, each module in the second module can be built in a multithread parallel building mode.
Therefore, the modules which are not related or have low relevance in the modules to be constructed are constructed in a multi-thread parallel mode, and the construction efficiency of each module in the second module can be improved.
S104: and encapsulating each constructed module to obtain a data packet, and performing security reinforcement processing on the data packet obtained by encapsulation.
In the embodiment of the invention, the software construction equipment can encapsulate each constructed module to obtain the data packet and perform security reinforcement processing on the encapsulated data packet.
In an embodiment, before the software building device performs security reinforcement processing on the data packet obtained by encapsulation, an identifier may be added to the data packet obtained by encapsulation. In some embodiments, the identifier may be used to indicate that the source of the data packet is the software to be delivered, but in other embodiments, the identifier may also be used to only indicate other information, and the embodiments of the present invention are not limited in particular.
In some embodiments, when security reinforcement processing is performed on the data packet obtained by encapsulation, the software construction device may encrypt the data packet to which the identifier is added according to a preset key, so as to obtain the encrypted data packet. In other embodiments, the software building device may further perform security reinforcement processing on the data packet obtained by encapsulation in other manners, which is not specifically limited in the embodiments of the present invention. Therefore, the safety of the constructed data packet can be improved through the embodiment.
S105: and sending the data packet after the security reinforcement treatment to a test terminal so that the test terminal tests the data packet and sends the data packet to a user terminal after the data packet is tested to be qualified.
In the embodiment of the invention, the software construction equipment can send the data packet after the security reinforcement treatment to the test terminal, so that the test terminal tests the data packet and sends the data packet to the user terminal after the data packet is qualified. By the implementation mode, the software can be automatically packaged, constructed and submitted to the test terminal, the delivery threshold of the software product is reduced, the agile development efficiency of the whole product is improved, and the enterprise cost is reduced.
In the embodiment of the present invention, the software construction device may analyze a source code of the software to be delivered to determine at least one module corresponding to the source code, determine a module to be constructed according to the obtained selection operation for each module in the at least one module, and construct the module to be constructed. The data package is obtained by packaging each built module, the data package obtained by packaging is subjected to security reinforcement processing, and the data package subjected to security reinforcement processing is sent to the test terminal, so that the test terminal tests the data package and sends the data package to the user terminal after the data package is tested to be qualified. Through the implementation mode, unnecessary modules can be prevented from being constructed, the construction efficiency is improved, and the user experience is improved.
The embodiment of the invention also provides software construction equipment, which is used for executing the unit of the method in any one of the preceding claims. Specifically, referring to fig. 3, fig. 3 is a schematic block diagram of a software building apparatus according to an embodiment of the present invention. The software construction device of the embodiment includes: acquisition unit 301, analysis unit 302, construction unit 303, processing unit 304, and transmission unit 305.
An acquiring unit 301, configured to acquire a source code of software to be delivered;
an analyzing unit 302, configured to analyze the source code to determine at least one module corresponding to the source code;
a constructing unit 303, configured to determine a module to be constructed according to the obtained selection operation for each module in the at least one module, and construct the module to be constructed;
the processing unit 304 is configured to encapsulate each constructed module to obtain a data packet, and perform security reinforcement processing on the data packet obtained by encapsulation;
a sending unit 305, configured to send the data packet after the security strengthening processing to a test terminal, so that the test terminal tests the data packet and sends the data packet to a user terminal after the data packet is tested to be qualified.
Further, when the constructing unit 303 determines the module to be constructed according to the obtained selection operation for each module of the at least one module, it is specifically configured to:
acquiring selection operation aiming at each module in the at least one module on a user interface;
and determining the module to be constructed selected by the selection operation, wherein the module to be constructed comprises one or more modules.
Further, before the building unit 303 builds the module to be built, it is further configured to:
calculating the association degree between each module in the modules to be built according to the source codes of each module in the modules to be built;
determining a module with the association degree larger than or equal to a preset association threshold value in the modules to be constructed as a first module;
and determining a module with the association degree smaller than a preset association threshold value in the modules to be constructed as a second module.
Further, the module to be constructed comprises the first module; when the building unit 303 builds the module to be built, it is specifically configured to:
determining a relation tree among the modules in the first module according to the association degree among the modules in the first module;
and constructing each module in the first module according to the relation tree among the modules in the first module.
Further, the module to be constructed comprises the second module; when the building unit 303 builds the module to be built, it is specifically configured to:
and constructing each module in the second module by adopting a multithread parallel construction mode.
Further, before the processing unit 304 performs security reinforcing processing on the data packet obtained by encapsulation, the processing unit is further configured to:
adding an identifier to the data packet obtained by packaging, wherein the identifier is used for indicating that the source of the data packet is the software to be delivered;
when the processing unit 304 performs security reinforcement processing on the data packet obtained by encapsulation, the processing unit is specifically configured to:
and encrypting the data packet added with the identifier according to a preset key to obtain the encrypted data packet.
Further, when the obtaining unit 301 obtains the source code of the software to be delivered, it is specifically configured to:
acquiring a construction instruction, wherein the construction instruction comprises a software identifier to be delivered;
and determining a source code corresponding to the software identification according to the software identification included in the construction instruction.
In the embodiment of the present invention, the software construction device may analyze a source code of the software to be delivered to determine at least one module corresponding to the source code, determine a module to be constructed according to the obtained selection operation for each module in the at least one module, and construct the module to be constructed. The data package is obtained by packaging each built module, the data package obtained by packaging is subjected to security reinforcement processing, and the data package subjected to security reinforcement processing is sent to the test terminal, so that the test terminal tests the data package and sends the data package to the user terminal after the data package is tested to be qualified. Through the implementation mode, unnecessary modules can be prevented from being constructed, the construction efficiency is improved, and the user experience is improved.
Referring to fig. 4, fig. 4 is a schematic block diagram of a server according to an embodiment of the present invention. The server in this embodiment as shown in the figure may include: one or more processors 401; one or more input devices 402, one or more output devices 403, and memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected by a bus 405. The memory 404 is used for storing computer programs, including programs, and the processor 401 is used for executing the programs stored in the memory 404. Wherein the processor 401 is configured to invoke the program to perform:
acquiring a source code of software to be delivered;
analyzing the source code to determine at least one module corresponding to the source code;
determining a module to be constructed according to the acquired selection operation aiming at each module in the at least one module, and constructing the module to be constructed;
packaging each constructed module to obtain a data packet, and performing security reinforcement processing on the data packet obtained by packaging;
and sending the data packet after the security reinforcement treatment to a test terminal so that the test terminal tests the data packet and sends the data packet to a user terminal after the data packet is tested to be qualified.
Further, when the processor 401 determines a module to be constructed according to the obtained selection operation for each module of the at least one module, the processor is specifically configured to:
acquiring selection operation aiming at each module in the at least one module on a user interface;
and determining the module to be constructed selected by the selection operation, wherein the module to be constructed comprises one or more modules.
Further, before the processor 401 constructs the module to be constructed, it is further configured to:
calculating the association degree between each module in the modules to be built according to the source codes of each module in the modules to be built;
determining a module with the association degree larger than or equal to a preset association threshold value in the modules to be constructed as a first module;
and determining a module with the association degree smaller than a preset association threshold value in the modules to be constructed as a second module.
Further, the module to be constructed comprises the first module; when the processor 301 constructs the module to be constructed, it is specifically configured to:
determining a relation tree among the modules in the first module according to the association degree among the modules in the first module;
and constructing each module in the first module according to the relation tree among the modules in the first module.
Further, the module to be constructed comprises the second module; when the processor 301 constructs the module to be constructed, it is specifically configured to:
and constructing each module in the second module by adopting a multithread parallel construction mode.
Further, before the processor 401 performs security reinforcement processing on the data packet obtained by encapsulation, the processor is further configured to:
adding an identifier to the data packet obtained by packaging, wherein the identifier is used for indicating that the source of the data packet is the software to be delivered;
the security reinforcement processing of the data packet obtained by encapsulation includes:
and encrypting the data packet added with the identifier according to a preset key to obtain the encrypted data packet.
Further, when the processor 401 acquires the source code of the software to be delivered, the processor is specifically configured to:
acquiring a construction instruction, wherein the construction instruction comprises a software identifier to be delivered;
and determining a source code corresponding to the software identification according to the software identification included in the construction instruction.
In the embodiment of the invention, the server can analyze the source code of the software to be delivered to determine at least one module corresponding to the source code, determine the module to be constructed according to the acquired selection operation aiming at each module in the at least one module, and construct the module to be constructed. Each constructed module is packaged to obtain a data packet, and the data packet obtained through packaging is subjected to security reinforcement processing, so that the data packet subjected to security reinforcement processing is sent to the test terminal, and the test terminal is sent to the user terminal after the data packet is tested to be qualified. Through the implementation mode, unnecessary modules can be prevented from being constructed, the construction efficiency is improved, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the Processor 401 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Input devices 402 may include a touch pad, microphone, etc., and output devices 403 may include a display (LCD, etc.), speakers, etc.
The memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
In a specific implementation, the processor 401, the input device 402, and the output device 403 described in this embodiment of the present invention may execute the implementation manner described in the method embodiment shown in fig. 1 of the software construction method provided in this embodiment of the present invention, and may also execute the implementation manner of the software construction device described in fig. 3 of this embodiment of the present invention, which is not described herein again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the software construction method described in the embodiment corresponding to fig. 1 is implemented, and also the software construction device according to the embodiment corresponding to fig. 3 of the present invention may be implemented, which is not described herein again.
The computer readable storage medium may be an internal storage unit of the software construction device according to any of the foregoing embodiments, for example, a hard disk or a memory of the software construction device. The computer-readable storage medium may also be an external storage device of the software construction apparatus, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the software construction apparatus. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the software construction apparatus. The computer-readable storage medium is used for storing the computer program and other programs and data required by the software construction apparatus. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A method of software construction, comprising:
acquiring a source code of software to be delivered;
analyzing the source code to determine at least one module corresponding to the source code;
determining a module to be constructed according to the acquired selection operation aiming at each module in the at least one module, and constructing the module to be constructed;
packaging each constructed module to obtain a data packet, and performing security reinforcement processing on the data packet obtained by packaging;
and sending the data packet after the security reinforcement treatment to a test terminal so that the test terminal tests the data packet and sends the data packet to a user terminal after the data packet is tested to be qualified.
2. The method according to claim 1, wherein the determining a module to be constructed according to the obtained selection operation for each module of the at least one module comprises:
acquiring selection operation aiming at each module in the at least one module on a user interface;
and determining the module to be constructed selected by the selection operation, wherein the module to be constructed comprises one or more modules.
3. The method according to claim 1, wherein before the building the module to be built, further comprising:
calculating the association degree between each module in the modules to be built according to the source codes of each module in the modules to be built;
determining a module with the association degree larger than or equal to a preset association threshold value in the modules to be constructed as a first module;
and determining a module with the association degree smaller than a preset association threshold value in the modules to be constructed as a second module.
4. The method of claim 3, wherein the first module is included in the module to be built; the building the module to be built comprises the following steps:
determining a relation tree among the modules in the first module according to the association degree among the modules in the first module;
and constructing each module in the first module according to the relation tree among the modules in the first module.
5. The method of claim 3, wherein the second module is included in the module to be built; the building the module to be built comprises the following steps:
and constructing each module in the second module by adopting a multithread parallel construction mode.
6. The method according to claim 1, wherein before performing security reinforcing processing on the encapsulated data packet, the method further comprises:
adding an identifier to the data packet obtained by packaging, wherein the identifier is used for indicating that the source of the data packet is the software to be delivered;
the security reinforcement processing of the data packet obtained by encapsulation includes:
and encrypting the data packet added with the identifier according to a preset key to obtain the encrypted data packet.
7. The method of claim 1, wherein obtaining source code for the software to be delivered comprises:
acquiring a construction instruction, wherein the construction instruction comprises a software identifier to be delivered;
and determining a source code corresponding to the software identification according to the software identification included in the construction instruction.
8. A software building apparatus comprising means for performing the method of any one of claims 1-7.
9. A server comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store a computer program, the computer program comprising a program, the processor being configured to invoke the program to perform the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method of any one of claims 1-7.
CN202010090220.3A 2020-02-12 2020-02-12 Software construction method, equipment, server and readable storage medium Pending CN111338686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010090220.3A CN111338686A (en) 2020-02-12 2020-02-12 Software construction method, equipment, server and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010090220.3A CN111338686A (en) 2020-02-12 2020-02-12 Software construction method, equipment, server and readable storage medium

Publications (1)

Publication Number Publication Date
CN111338686A true CN111338686A (en) 2020-06-26

Family

ID=71183446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010090220.3A Pending CN111338686A (en) 2020-02-12 2020-02-12 Software construction method, equipment, server and readable storage medium

Country Status (1)

Country Link
CN (1) CN111338686A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077140A (en) * 2014-07-04 2014-10-01 用友软件股份有限公司 Automatic compiling method and compiling device for continuous integration
CN105278945A (en) * 2014-06-05 2016-01-27 株式会社日立制作所 Program visualization device, program visualization method, and program visualization program
US20160292066A1 (en) * 2015-04-03 2016-10-06 NodeSource, Inc. Source Code Inspection and Verification
CN106557308A (en) * 2015-09-29 2017-04-05 腾讯科技(深圳)有限公司 A kind of software continuous integrated approach and device
CN107766036A (en) * 2017-10-13 2018-03-06 深圳市金证科技股份有限公司 A kind of construction method of module, construction device and terminal device
CN108121563A (en) * 2017-11-10 2018-06-05 广州阿里巴巴文学信息技术有限公司 Application function method for customizing, device, computing device and storage medium
CN109947459A (en) * 2017-12-19 2019-06-28 镇江飞协软件开发有限公司 A kind of software product construction method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278945A (en) * 2014-06-05 2016-01-27 株式会社日立制作所 Program visualization device, program visualization method, and program visualization program
CN104077140A (en) * 2014-07-04 2014-10-01 用友软件股份有限公司 Automatic compiling method and compiling device for continuous integration
US20160292066A1 (en) * 2015-04-03 2016-10-06 NodeSource, Inc. Source Code Inspection and Verification
CN106557308A (en) * 2015-09-29 2017-04-05 腾讯科技(深圳)有限公司 A kind of software continuous integrated approach and device
CN107766036A (en) * 2017-10-13 2018-03-06 深圳市金证科技股份有限公司 A kind of construction method of module, construction device and terminal device
CN108121563A (en) * 2017-11-10 2018-06-05 广州阿里巴巴文学信息技术有限公司 Application function method for customizing, device, computing device and storage medium
CN109947459A (en) * 2017-12-19 2019-06-28 镇江飞协软件开发有限公司 A kind of software product construction method

Similar Documents

Publication Publication Date Title
CN107797854B (en) Transaction file processing method and device, storage medium and computer equipment
CN110490416B (en) Task management method and terminal equipment
US20210042150A1 (en) Method-call-chain tracking method, electronic device, and computer readable storage medium
CN109145651B (en) Data processing method and device
CN112801800A (en) Behavior fund analysis system, behavior fund analysis method, computer equipment and storage medium
CN111597093B (en) Exception handling method, device and equipment thereof
CN113360300A (en) Interface calling link generation method, device, equipment and readable storage medium
CN112596919A (en) Model calling method, device, equipment and storage medium
CN112307477A (en) Code detection method, device, storage medium and terminal
CN112083925A (en) Data acquisition method, device, equipment and storage medium based on H5 page development
CN112052070A (en) Application containerization evaluation method and device, electronic equipment and storage medium
CN111324645B (en) Block chain data processing method and device
CN111338686A (en) Software construction method, equipment, server and readable storage medium
CN114282221B (en) Injection type vulnerability detection method, system, terminal and storage medium
CN113780580B (en) Data analysis method, device, equipment and storage medium based on machine learning
CN113111078B (en) Resource data processing method and device, computer equipment and storage medium
CN114169311A (en) Data analysis method and device
CN112487771B (en) Report generation method, report generation device and terminal
CN112052171B (en) Test message processing method and device, computer equipment and storage medium
CN111190824B (en) Monitoring method, device, terminal equipment and storage medium
CN114500640A (en) Message generation method, message transmission device, electronic equipment and medium
CN112579453A (en) Task testing method, device, equipment and storage medium
CN113704618B (en) Data processing method, device, equipment and medium based on deep learning model
CN117251385B (en) method and device for acquiring mock data, terminal equipment and readable storage medium
CN112069385B (en) Policy data processing method, equipment, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination