CN114860213A - Application package generation method, device, equipment and medium - Google Patents

Application package generation method, device, equipment and medium Download PDF

Info

Publication number
CN114860213A
CN114860213A CN202210510588.XA CN202210510588A CN114860213A CN 114860213 A CN114860213 A CN 114860213A CN 202210510588 A CN202210510588 A CN 202210510588A CN 114860213 A CN114860213 A CN 114860213A
Authority
CN
China
Prior art keywords
configuration information
function
code block
application package
identifier
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
CN202210510588.XA
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202210510588.XA priority Critical patent/CN114860213A/en
Publication of CN114860213A publication Critical patent/CN114860213A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

When the application package used by a certain device needs to be generated, a generation instruction can be sent to a server or a device for generating the application package, wherein the generation instruction comprises an identifier of a first device. And determining first configuration information corresponding to the first device according to the identifier of the first device, wherein the first configuration information comprises signature information and function configuration information. The signature information is used to modify the signature file, and the functional configuration information indicates functions that can be implemented when the application package is installed on the first device. And acquiring the first code block according to the function configuration information, and compiling the first code block according to the signature information to obtain the application package applied to the first device. That is, when the application package corresponding to the first device is generated, only the function code corresponding to the first device needs to be acquired, so that the volume of the application package is reduced, and the signature file does not need to be manually modified by a user when the code block is compiled, thereby improving the generation efficiency.

Description

Application package generation method, device, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for generating an application package.
Background
The application package refers to a software system which is compiled in advance and can realize a certain function, and when the application package is applied to different operating systems, the corresponding file formats of the application package are different. For example, the file format of an application package used in the Android operating system is an Android Application Package (APK). Typically, an application package contains compiled code files (. dex files), file resources (resources), native resource files (assets), certificates (certifies), manifest files (manifest files), and the like. At present, when an application program package is generated, file information needs to be manually modified manually, and the working efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, a device, and a medium for generating an application package, so as to implement automatic configuration of file information and improve generation efficiency of the application package.
In order to achieve the purpose, the technical scheme provided by the application is as follows:
in a first aspect of the present application, a method for generating an application package is provided, where the method includes:
acquiring a generation instruction for generating an application package, wherein the generation instruction comprises an identifier of first equipment;
determining first configuration information corresponding to the first device according to the identifier of the first device, wherein the first configuration information comprises signature information and function configuration information;
acquiring a first code block according to the function configuration information, wherein the function realized by the first code block is matched with the first equipment;
and compiling the first code block according to the signature information to obtain an application program package applied to the first equipment.
In a second aspect of the present application, there is provided an application package generation apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a generation instruction for generating an application package, and the generation instruction comprises an identifier of first equipment;
a determining unit, configured to determine, according to an identifier of the first device, first configuration information corresponding to the first device, where the first configuration information includes signature information and function configuration information;
the obtaining unit is further configured to obtain a first code block according to the function configuration information, where a function implemented by the first code block is matched with the first device;
and the compiling unit is used for compiling the first code block according to the signature information to obtain an application program package applied to the first equipment.
In a third aspect of the present application, there is provided an electronic device comprising: a processor and a memory; the memory for storing instructions or computer programs; the processor is configured to execute the instructions or the computer program in the memory to cause the electronic device to perform the method of the first aspect.
In a fourth aspect of the present application, a computer-readable storage medium is provided, having stored therein instructions that, when run on a device, cause the device to perform the method of the first aspect.
In a fifth aspect of the application, a computer program product is provided, the computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of the first aspect.
Therefore, the embodiment of the application has the following beneficial effects:
in this embodiment of the application, when an application package to be used by a certain device needs to be generated, a generation instruction may be sent to a server or a device executing the generation package, where the generation instruction includes an identifier of a first device. And determining first configuration information corresponding to the first device according to the identifier of the first device, wherein the first configuration information comprises signature information and function configuration information. The signature information is used for modifying the signature file, and the function configuration information indicates functions which can be realized when the application package is installed on the first device. And acquiring the first code block according to the function configuration information, and compiling the first code block according to the signature information to obtain the application package applied to the first device. Namely, when the application program package corresponding to the first device is generated, only the function code corresponding to the first device needs to be acquired, so that the volume of the application program package is reduced, and the signature file does not need to be manually modified by a user when the code block is compiled, so that the signature file can be automatically modified according to the signature information, and the generation efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an application package generation method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an application package generating apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
In order to facilitate understanding of the technical solutions provided in the embodiments of the present application, the technical background related to the present application will be described below.
With the demand of technical development, the application package can be installed on the electronic device not only as a third-party application, but also as a system application on other devices. The application packages generated today include not only the function codes that fit the device, but also function codes that do not fit the device, resulting in a linear increase in the volume of the application package. Moreover, when a new function needs to be introduced, the new function affects the implementation of other functions due to the fact that the coupling between different function codes is heavy.
Based on this, the application program package generation method is provided, through function decoupling, different application program packages can be generated when the same application program is installed on different devices, and therefore the generated application program packages include function codes suitable for the devices, the size of the application program packages is reduced, and the generation efficiency can be improved.
In order to facilitate understanding of the technical solutions provided by the embodiments of the present application, the following description will be made with reference to the accompanying drawings.
Referring to fig. 1, this figure is a flowchart of an application package generation method provided in an embodiment of the present application, where the method may be executed by an application package generation device, and the generation device may be a server or an electronic device. As shown in fig. 1, the method may include:
s101: a generation instruction for generating an application package is acquired.
In this embodiment, the generation device may receive a generation instruction sent by a user through a terminal, where the generation instruction includes an identifier of the first device and indicates to generate an application package applied to the first device. The user can send the generating instruction to the generating device in a command line mode, or the user can send the generating instruction in an instant message mode.
Optionally, the generation instruction may further include a version number, where the version number is used to indicate a version of the application package to be generated.
Optionally, the generation instruction may further include a function identifier, where the function identifier is used to indicate that the function implemented by the generated application package is the function indicated by the function identifier.
S102: and determining first configuration information corresponding to the first equipment according to the identifier of the first equipment.
After the identifier of the first device is acquired, first configuration information corresponding to the first device is determined according to the identifier of the first device, wherein the first configuration information comprises signature information and function configuration information. I.e. automatically matching the first configuration information according to the identity of the first device. The signature information is used for modifying the signature file, and the signature information is, for example, an identifier of the first device, and the name of the signature file is modified into the identifier of the first device. The function configuration information is used to indicate a function matched with the first device. The functions may include a public function and a private function, the public function being a function supported by other devices as well, the private function being a function supported only by the first device.
Optionally, when the generation instruction further includes a version number, the corresponding first configuration information of the first device is determined according to the identifier and the version number of the first device. That is, the determined first configuration information needs to match the version number. Specifically, the determined function configuration information in the first configuration information matches the version number. For example, when the version number is x, function 1 and function 2 are included in the function configuration information; when the version number is x +1, function 2, and function 3 are included in the function configuration information.
Optionally, when the generation instruction further includes a function identifier, the first configuration information corresponding to the first device is determined according to the identifier of the first device and the function identifier. And the function configuration information in the first configuration information corresponds to the function identifier. That is, the function indicated by the function identification is the same as the function indicated by the function configuration information. For example, the function identifier is y, and the function indicated by the function configuration information is y.
Optionally, when the generated instruction includes both the version number and the function identifier, the first configuration information corresponding to the first device is determined according to the identifier of the first device, the version number, and the function identifier.
Optionally, the application package may be divided into a system application package and a third-party application package, and after the identifier of the first device is obtained, the application package to be generated may be determined to be the system application package according to the identifier of the first device.
S103: the first code block is obtained according to the functional configuration information.
And after determining the function configuration information corresponding to the first device, acquiring a first code block according to the function configuration information. The function realized by the first code block is matched with the first device, the first code block can comprise a public code block and a differential code block, the public code block is a code block corresponding to different devices, the differential code block is a code block of the first device, and the differential code block can realize the private function corresponding to the first device.
Optionally, when the application package to be generated is a system application package, the first code block is obtained from the system directory according to the function configuration information. That is, for the system application package, the corresponding code block is stored in the system directory, and when it is determined that the application package corresponding to the first device is the system application package, the first code block is obtained from the system directory. When the application program package corresponding to a plurality of devices is a system application program package, the system directory is divided into a plurality of subdirectories, and each device corresponds to one subdirectory. For example, if the application packages corresponding to the device 1, the device 2, and the device 3 are system application packages, 3 sub-directories are sub-divided into the system directory, which are sub-directory 1, sub-directory 2, and sub-directory 3. The subdirectory 1 corresponds to the device 1, stores the code block applied to the device 1, the subdirectory 2 corresponds to the device 2, stores the code block applied to the device 2, the subdirectory 3 corresponds to the device 2, and stores the code block applied to the device 3. Based on this, when the first code block is acquired, the first code block is acquired from a first subdirectory in the system directory according to the functional configuration information. Wherein the first subdirectory corresponds to the first device.
Optionally, when the function implemented by the first code block includes multiple functions, the code blocks corresponding to different functions in the multiple functions are respectively stored in different code packets. Namely, the code blocks of different functions are respectively stored in different code package packages, so that different functions are not interfered with each other, and the robustness of the code is enhanced.
S104: and compiling the first code block according to the signature information to obtain the application package applied to the first device.
And after the first code block is obtained, compiling the first code block according to the signature information to obtain the application package.
Optionally, after the application package is generated, a download link may be sent, so that the user downloads the application package through the download link based on the terminal.
It can be seen that, when an application package to be used by a certain device needs to be generated, a generation instruction may be sent to a server or a device executing the generation package, where the generation instruction includes an identifier of the first device. And determining first configuration information corresponding to the first device according to the identifier of the first device, wherein the first configuration information comprises signature information and function configuration information. The signature information is used for modifying the signature file, and the function configuration information indicates functions which can be realized when the application package is installed on the first device. And acquiring the first code block according to the function configuration information, and compiling the first code block according to the signature information to obtain the application package applied to the first device. Namely, when the application program package corresponding to the first device is generated, only the function code corresponding to the first device needs to be acquired, so that the volume of the application program package is reduced, and the signature file does not need to be manually modified by a user when the code block is compiled, so that the signature file can be automatically modified according to the signature information, and the generation efficiency is improved.
In some application scenarios, the generation instruction may further include an identifier of the second device, and the generation device performs the operations of S102-S104 according to the identifier of the second device. Specifically, second configuration information corresponding to the second device is determined according to the identifier of the second device, where the second configuration information includes signature information and function configuration information; acquiring a second code block according to the function configuration information in the second configuration information, wherein the function realized by the second code block is matched with the second equipment; and compiling the second code block according to the signature information in the second configuration information to obtain the application package applied to the second device. For a specific implementation of generating the application package applied to the second device, reference may be made to the above description of S102 to S104.
For the functions unique to a certain device in the system application package, for example, the functions of the privacy cover, the indicator light, the camera control, the video flipping, and the like supported by the first device, the functions may be implemented in a proxy manner. The device supporting the function can be realized through an interface defined by the proxy class.
For the functions shared by multiple devices in the system application package, the specific implementation manners corresponding to the same shared function may also be different, for example, the devices all support High Definition Multimedia Interface (HDMI), but the number of HDMI interfaces supported by different devices is different, and the manner of implementing the HDMI function is different for different numbers of HDMI interfaces. Based on the situation, all the implementation modes can be provided, and when the device realizes the function, the matched implementation mode is selected from the multiple implementation modes according to the requirement of the device.
Based on the above method example, the embodiment of the present application further provides an application package generating device, which will be described below with reference to the accompanying drawings.
Referring to fig. 2, which is a block diagram of an application package generating apparatus according to an embodiment of the present application, as shown in fig. 2, the apparatus 200 may include: an acquisition unit 201, a determination unit 202, and a compiling unit 203.
An obtaining unit 201, configured to obtain a generation instruction for generating an application package, where the generation instruction includes an identifier of a first device;
a determining unit 202, configured to determine, according to an identifier of the first device, first configuration information corresponding to the first device, where the first configuration information includes signature information and function configuration information;
the obtaining unit 202 is further configured to obtain a first code block according to the function configuration information, where the function implemented by the first code block is matched with the first device;
a compiling unit 203, configured to compile the first code block according to the signature information, and obtain an application package applied to the first device.
In an alternative implementation, the application package is a system application package or a third party application package.
In an optional implementation manner, the obtaining unit 202 is specifically configured to, in response to that the application package is the system application package, obtain the first code block from a system directory according to the functional configuration information.
In an optional implementation manner, the obtaining unit 202 is specifically configured to obtain the first code block from a first subdirectory in a system directory according to the function configuration information, where the first subdirectory corresponds to the first device.
In an alternative implementation manner, the determining unit 202 is further configured to determine the type of the application package to be generated according to the identifier of the first device.
In an optional implementation manner, the generation instruction further includes an identifier of a second device, and an application package corresponding to the second device is a third-party application package or a system application package.
In an optional implementation manner, the determining unit 202 is specifically configured to determine, in response to that the generation instruction includes a version number, first configuration information corresponding to the first device according to the identifier of the first device and the version number, where the version number indicates a version of an application package to be generated.
In an optional implementation manner, the generation instruction further includes a function identifier, and the function configuration information corresponds to the function identifier.
In an alternative implementation manner, the function implemented in response to the first code block includes a plurality of functions, and code blocks corresponding to different functions in the plurality of functions are respectively stored in different code packets.
In an optional implementation, the apparatus further includes: a transmitting unit;
the sending unit is used for sending a download link, and the download link is used for downloading the application program package.
It should be noted that, for specific implementation of each unit in this embodiment, reference may be made to the relevant description in the foregoing method embodiment. The division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation. Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. For example, in the above embodiment, the processing unit and the sending unit may be the same unit or different units. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Referring to fig. 3, a schematic diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the embodiment of the present disclosure and the method provided by the embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment can be referred to the embodiment, and the embodiment has the same beneficial effects as the embodiment.
The disclosed embodiments provide a computer storage medium having stored thereon a computer program that, when executed by a processor, implements the methods provided by the above-described embodiments.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (Hyper Text Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the method.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit/module does not in some cases constitute a limitation of the unit itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (13)

1. A method for generating an application package, the method comprising:
acquiring a generation instruction for generating an application package, wherein the generation instruction comprises an identifier of first equipment;
determining first configuration information corresponding to the first device according to the identifier of the first device, wherein the first configuration information comprises signature information and function configuration information;
acquiring a first code block according to the function configuration information, wherein the function realized by the first code block is matched with the first equipment;
and compiling the first code block according to the signature information to obtain an application program package applied to the first equipment.
2. The method of claim 1, wherein the application package is a system application package or a third party application package.
3. The method of claim 2, wherein the obtaining the first code block according to the functional configuration information comprises:
and responding to the application program package as the system application program package, and acquiring a first code block from a system catalog according to the function configuration information.
4. The method of claim 3, wherein obtaining the first code block from a system directory according to the functional configuration information comprises:
and acquiring a first code block from a first subdirectory in a system directory according to the function configuration information, wherein the first subdirectory corresponds to the first equipment.
5. The method according to claim 3 or 4, characterized in that the method further comprises:
and determining the type of the application program package to be generated according to the identification of the first device.
6. The method of claim 1, wherein the generation instruction further includes an identifier of a second device, and the application package corresponding to the second device is a third party application package or a system application package.
7. The method of claim 1, wherein the determining the first configuration information corresponding to the first device according to the identifier of the first device comprises:
and in response to the generation instruction including a version number, determining first configuration information corresponding to the first device according to the identifier of the first device and the version number, wherein the version number indicates the version of the application package to be generated.
8. The method according to claim 1 or 7, wherein the generation instruction further comprises a function identifier, and the function configuration information corresponds to the function identifier.
9. The method of claim 1, wherein the function implemented in response to the first code block comprises a plurality of functions, and wherein code blocks corresponding to different functions in the plurality of functions are stored in different code packages, respectively.
10. The method of claim 1, further comprising:
and sending a download link, wherein the download link is used for downloading the application program package.
11. An application package generating apparatus, characterized in that the apparatus comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a generation instruction for generating an application package, and the generation instruction comprises an identifier of first equipment;
a determining unit, configured to determine, according to an identifier of the first device, first configuration information corresponding to the first device, where the first configuration information includes signature information and function configuration information;
the obtaining unit is further configured to obtain a first code block according to the function configuration information, where a function implemented by the first code block is matched with the first device;
and the compiling unit is used for compiling the first code block according to the signature information to obtain an application program package applied to the first equipment.
12. An electronic device, characterized in that the device comprises: a processor and a memory;
the memory for storing instructions or computer programs;
the processor to execute the instructions or computer program in the memory to cause the electronic device to perform the method of any of claims 1-10.
13. A computer-readable storage medium having stored therein instructions that, when executed on a device, cause the device to perform the method of any one of claims 1-10.
CN202210510588.XA 2022-05-11 2022-05-11 Application package generation method, device, equipment and medium Pending CN114860213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210510588.XA CN114860213A (en) 2022-05-11 2022-05-11 Application package generation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210510588.XA CN114860213A (en) 2022-05-11 2022-05-11 Application package generation method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114860213A true CN114860213A (en) 2022-08-05

Family

ID=82636463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210510588.XA Pending CN114860213A (en) 2022-05-11 2022-05-11 Application package generation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114860213A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129300A (en) * 2022-08-30 2022-09-30 太平金融科技服务(上海)有限公司深圳分公司 Application development method, apparatus, device, medium, and program product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129300A (en) * 2022-08-30 2022-09-30 太平金融科技服务(上海)有限公司深圳分公司 Application development method, apparatus, device, medium, and program product

Similar Documents

Publication Publication Date Title
CN111581563B (en) Page response method and device, storage medium and electronic equipment
CN111930534A (en) Data calling method and device and electronic equipment
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN114860213A (en) Application package generation method, device, equipment and medium
CN110619101B (en) Method and apparatus for processing information
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN111787041A (en) Method and apparatus for processing data
CN113126985B (en) Method, apparatus, electronic device and computer readable medium for page rendering
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111240738B (en) File processing method, device, equipment and medium
CN112688793B (en) Data packet obtaining method and device and electronic equipment
CN113032046A (en) Method, device and equipment for repairing so file and storage medium
CN112230986A (en) Project file generation method and device, electronic equipment and computer readable medium
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN112965713A (en) Development method, device and equipment of visual editor and storage medium
CN112732457A (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN113391860A (en) Service request processing method and device, electronic equipment and computer storage medium
CN111309367A (en) Method, device, medium and electronic equipment for managing service discovery
CN111314457B (en) Method and device for setting virtual private cloud
CN113157365B (en) Program running method, program running device, electronic equipment and computer readable medium
CN111400322B (en) Method, apparatus, electronic device and medium for storing data
CN111767237B (en) Inter-module communication method and device
CN113472565B (en) Method, apparatus, device and computer readable medium for expanding server function
CN111291199B (en) Information query method and device

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