CN115469894A - Application program installation control method, device, equipment and storage medium - Google Patents

Application program installation control method, device, equipment and storage medium Download PDF

Info

Publication number
CN115469894A
CN115469894A CN202211150446.3A CN202211150446A CN115469894A CN 115469894 A CN115469894 A CN 115469894A CN 202211150446 A CN202211150446 A CN 202211150446A CN 115469894 A CN115469894 A CN 115469894A
Authority
CN
China
Prior art keywords
file
application program
target address
code
resource
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
CN202211150446.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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211150446.3A priority Critical patent/CN115469894A/en
Publication of CN115469894A publication Critical patent/CN115469894A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/425Lexical analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an installation control method, an installation control device, installation control equipment and a storage medium of an application program, relates to the technical field of computer software development, and is used for realizing a cross-platform application program installation scheme. The method comprises the following steps: acquiring a configuration file of an application program to be installed; the configuration file comprises addresses of code files and addresses of resource files of application programs respectively corresponding to various hardware architectures and operating systems; determining a device identification of a terminal device for installing an application program; the device identifier is used for representing a hardware architecture and an operating system of the terminal device; inquiring a target address corresponding to the equipment identifier from the configuration file; the target address comprises an address of a code file corresponding to the equipment identifier and an address of a resource file corresponding to the equipment identifier; and installing the application program in the terminal equipment according to the code file and the resource file in the target address.

Description

Installation control method, device, equipment and storage medium of application program
Technical Field
The present application relates to the field of computer software development technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling installation of an application program.
Background
In the face of diversified and personalized customer groups, banks propose Super Teller Machine (STM) applications in order to provide richer services and a wider variety of financial products. When an STM application program is installed at present, technical personnel are generally required to design different software installation packages aiming at different hardware architectures and operating systems, the labor cost is high in the installation mode, and the situations that the problem is difficult to locate, the maintenance is difficult and the like can also occur in the operation process of the STM application program.
Therefore, a scheme for cross-platform STM application installation based on a Flutter framework is provided in the related art, and cross-platform use of STM applications can be realized. However, this method depends on the Flutter framework and cannot be applied to some low-version operating systems, such as Windows XP operating system. Therefore, there is a need for a cross-platform installation strategy that enables STM applications.
Disclosure of Invention
The application provides an installation control method, device and equipment of an application program and a storage medium. The scheme is used for realizing cross-platform installation of the application program.
In a first aspect, an embodiment of the present application provides an installation control method for an application program, including:
acquiring a configuration file of an application program to be installed; the configuration file comprises addresses of code files and addresses of resource files of the application program, which correspond to various hardware architectures and operating systems respectively;
determining a device identification of a terminal device for installing the application program; the equipment identification is used for characterizing the hardware architecture and the operating system of the terminal equipment;
inquiring a target address corresponding to the equipment identification from the configuration file; the target address comprises an address of a code file corresponding to the equipment identifier and an address of a resource file corresponding to the equipment identifier;
and installing the application program in the terminal equipment according to the code file and the resource file in the target address.
Based on the scheme, the application program installation control method provided by the application program is used for installing the application program in different hardware architectures and operating systems based on the configuration file, so that cross-platform application program installation can be realized, a set of codes can run at multiple positions, and labor cost is saved. If an operating system or a hardware architecture is newly added, only configuration needs to be added in the configuration file, and the operation is simple.
In one or more embodiments, the installing the application program in the terminal device according to the code file and the resource file in the target address includes:
downloading a code file and a resource file from the target address;
compiling the code file in the target address by adopting a compiler of the terminal equipment;
generating an installation package of the application program according to the compiled code file and the resource file in the target address;
and installing the application program in the terminal equipment according to the installation package.
In one or more embodiments, the method further comprises:
creating an interface corresponding to the target address;
and when an updating instruction of the application program is received, acquiring the updated code file and the updated resource file corresponding to the equipment identifier through the interface.
In one or more embodiments, the method further comprises:
and deleting the intermediate file generated in the process of compiling the code file in the target address.
In a second aspect, an embodiment of the present application provides an installation control apparatus for an application, including:
the device comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring a configuration file of an application program to be installed; the configuration file comprises addresses of code files and addresses of resource files of the application program, which correspond to various hardware architectures and operating systems respectively;
a processing unit configured to perform:
determining a device identification of a terminal device for installing the application program; the equipment identification is used for representing a hardware architecture and an operating system of the terminal equipment;
inquiring a target address corresponding to the equipment identification from the configuration file; the target address comprises an address of a code file corresponding to the equipment identifier and an address of a resource file corresponding to the equipment identifier;
and installing the application program in the terminal equipment according to the code file and the resource file in the target address.
In one or more embodiments, when the application is installed in the terminal device according to the code file and the resource file in the target address, the processing unit is specifically configured to:
downloading a code file and a resource file from the target address;
compiling the code file in the target address by adopting a compiler of the terminal equipment;
generating an installation package of the application program according to the compiled code file and the resource file in the target address;
and installing the application program in the terminal equipment according to the installation package.
In one or more embodiments, the processing unit is further configured to:
creating an interface corresponding to the target address;
and when an updating instruction of the application program is received, acquiring the updated code file and the updated resource file corresponding to the equipment identifier through the interface.
In one or more embodiments, the processing unit is further configured to:
and deleting the intermediate file generated in the process of compiling the code file in the target address.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the steps comprised in the method of any one of the first aspect according to the obtained program instructions.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method of any one of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method of any one of the first aspects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application.
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 2 is a flowchart of an installation control method of an application according to an embodiment of the present application;
fig. 3 is a schematic architecture diagram of a terminal device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an installation control device for an application according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the accompanying 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 the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The terms "first" and "second" in the description and claims of the present application and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The "plurality" in the present application may mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
In the technical scheme, the data acquisition, transmission, use and the like all meet the requirements of relevant national laws and regulations.
To facilitate understanding of the technical solutions of the present application, first, technical terms related to the present application will be described:
(1) Software interface: the program is specifically responsible for transmitting or receiving data between different modules and for performing classes or functions of processing.
(2) Software Development Kit (SDK): generally refers to the collection of development tools used by a software engineer to build application software for a particular software package, software framework, hardware platform, operating system, and the like.
(3) Resource files: is a file dedicated to storing data material associated with an application program. As the name implies, stored in the resource file are various resources required for the application to run, including various texts, pictures, sounds, and the like. A resource file is a binary file that once formed cannot be edited any further. Calling data in a resource file requires the use of a specialized Application Programming Interface (API) function.
(4) Code file: including the running code of the application.
(5) A compiler: for converting source code into object code that can be recognized by a machine. When the method is specifically executed, lexical analysis is firstly carried out, characters in the source code are scanned one by one from left to right, word symbols are generated one by one, and a source program serving as a character string is transformed into an intermediate program of the word symbols. Then, syntactic analysis is carried out, the word symbol is used as input, whether the word symbol string forms syntactic units which accord with syntactic rules, such as expressions, valuation or circulation, is analyzed, and whether a program which accords with the requirements can be formed is determined. Finally, the object code generator transforms the parsed or optimized intermediate code into object code.
Next, a system architecture according to the present application will be described. Referring to fig. 1, a system architecture diagram provided in the embodiment of the present application is shown. It should be understood that the embodiments of the present application are not limited to the network environment shown in fig. 1, and the apparatus in fig. 1 may be hardware, software that is functionally divided, or a combination of the two. As shown in fig. 1, the system architecture provided by the present application includes a terminal device and an application server.
Optionally, the terminal device shown in fig. 1 is a device for installing an application, such as an STM machine that may be a bank. The application server shown in fig. 1 may be a background server of an application program, and may include a processor, a hard disk, a memory, a system bus, and the like, and is configured to store a code file and a resource file of the application program, and also to implement maintenance and upgrade of the application program. Optionally, the application server shown in fig. 1 may be a hardware device of an entity, and may also be a server in a cloud. This is not a limitation of the present application.
It should be noted that, the number of the terminal devices and the application servers included in the system is not limited in the present application, and fig. 1 is only used as an example.
In order to meet the pursuit of financial services and the like by users, the application of STM application programs of banks is more and more extensive at present. Because the STM application program only runs in the terminal equipment which is capable of carrying Windows XP/7/8/10, kylin, UOS and other systems and is based on hardware architectures such as X86 and ARM at present, when the STM application program is installed in different terminal equipment, technicians are required to manufacture corresponding installation packages aiming at the operating systems and the hardware architectures of different terminal equipment, the labor cost is high, and the error rate is high. Moreover, the installation mode can lead to different versions of STM application programs running on different terminal devices, and the STM application programs are difficult to maintain and difficult to locate. At present, a cross-platform application generation method based on the Flutter framework is also provided, all interfaces are directly aligned in an extended interface layer by using the uniformly provided SDK, and only compatible processing is required in a common logic processing layer. This approach is too dependent on the Flutter framework to be used in some low-version operating systems.
In order to solve the above problem, the present application proposes an installation scheme of an application program, and proposes to generate a configuration file of the application program in advance, where the configuration file indicates addresses of code files and resource files of different versions of the application program. During installation, the target version capable of being installed can be determined based on the hardware architecture and the operating system of the terminal device to be installed, and then the code file and the resource file of the target version are downloaded, and the application program is installed.
The following describes in detail an installation control method, apparatus, device, and storage medium for an application program according to the present application. In the following embodiments of the present application, "and/or" describes an association relationship of associated objects, indicating that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can 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 the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple. The singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. And, unless stated to the contrary, the embodiments of the present application refer to the ordinal numbers "first", "second", etc., for distinguishing a plurality of objects, and do not limit the sequence, timing, priority, or importance of the plurality of objects. For example, the first task execution device and the second task execution device are only for distinguishing different task execution devices, and do not indicate a difference in priority, degree of importance, or the like between the two task execution devices.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Based on the system shown in fig. 1, the present application provides an installation control method of an application program, and referring to fig. 2, it is a flowchart of an installation control method of an application program provided in an embodiment of the present application. Optionally, the method flow may be executed by the terminal device shown in fig. 1, where the method flow specifically includes:
and 201, acquiring a configuration file of an application program to be installed.
The configuration file comprises the address of the code file of the application program and the address of the resource file.
Alternatively, addresses of code files and resource files of multiple versions of the application program may be indicated in the configuration file, and the code files and resource files of different versions of the application program may be supported by terminal devices having different hardware architectures and operating systems.
In a possible implementation manner, the configuration document acquired by the terminal device may be acquired from an application server. Optionally, the terminal device may send an installation request to the application server when acquiring the configuration file, and the application server may return the configuration file of the application program to the terminal device when receiving the installation request. Alternatively, in another possible implementation manner, the configuration file acquired by the terminal device may also be input by a technician.
202, a device identification of the terminal device for installing the application is determined.
The device identifier is used for characterizing a hardware architecture and an operating system of the terminal device.
Optionally, the device identifiers of the terminal devices having the same operating system and different hardware architectures are different, and similarly, the device identifiers of the terminal devices having the same hardware architecture and different operating systems are different.
And 203, inquiring a target address corresponding to the determined equipment identification from the configuration file.
The target address comprises an address of a code file corresponding to the terminal equipment identifier and an address of a resource file corresponding to the equipment identifier. Optionally, the configuration file may include multiple groups of addresses, each group of addresses includes addresses of a code file and a resource file of one version of the application program, and each group of addresses has one or more corresponding device identifiers.
Alternatively, the code file corresponding to the device identifier of the terminal device may be stored in one address, or may be stored in a plurality of addresses in a divided manner. Similarly, the resource file corresponding to the device identifier of the terminal device may also be stored in one or more addresses.
And 204, installing the application program in the terminal equipment according to the code file and the resource file in the target address.
Alternatively, the code file and the resource file can be downloaded from the target address and stored in a designated directory of the terminal device. Further, an installation package of the application program may be generated according to the code file and the resource file stored in the specified directory, and the application program may be installed in the terminal device based on the installation package.
Based on the scheme, the application program installation control method provided by the application program is used for installing the application program in different hardware architectures and operating systems based on the configuration file, so that cross-platform application program installation can be realized, a set of codes can run at multiple positions, and labor cost is saved. If an operating system or a hardware architecture is newly added, only configuration needs to be added in the configuration file, and the operation is simple.
In some embodiments, after determining the target address, the terminal device may re-download the code file and the resource file from the target address and store the code file and the resource file in a designated directory of the terminal device. Further, a compiler of the terminal device may be used to compile the code file under the specified directory. For convenience of description, the compiled code file is hereinafter referred to simply as object code. Still further, an installation package of the application program can be generated according to the target code and the resource file in the target address, and the installation package is operated on the terminal device, so that the application program can be installed in the terminal device.
In one possible implementation, an intermediate file is generated when a compiler is used to compile a code file stored under a specified directory. The intermediate file can be deleted after the object code is compiled, so that the storage space is prevented from being occupied.
In one or more embodiments, after the installation of the application is complete, an interface corresponding to the target address may be created. And when an updating instruction of the application program is received subsequently, the updated code file and the updated resource file are directly downloaded from the target address through the created interface, and the application program is updated based on the downloaded file.
As a possible implementation, the configuration file of the application program may be input into the application server by a technician in advance. The configuration file may be a json file, the key value may represent a device identifier of a terminal device having a different hardware architecture or operating system, and the value may be an array including addresses of a code file and a resource file supportable by the terminal device represented by the corresponding key value.
Optionally, the terminal device that needs to install the application program may determine the target address where the corresponding version of the code file and the resource file are stored by the configuration file. As an example, the process may also be implemented by a tool kit provided by the application server, and the terminal device may first obtain and run the tool kit, and implement the processes of determining the target address and installing the application program. For convenience of description, the following description will be made with a terminal device as an execution subject.
Optionally, after determining the destination address according to the device identifier and the configuration file, the terminal device may further create a plurality of tasks, form a task list, and implement downloading the code file and the resource file in the destination address and installing the application program. For example, the created plurality of tasks may be performed by different task modules in the terminal device. As an example, different task modules may include: the device comprises a downloading module, a compiling module, a cleaning module and an installing module. Referring to fig. 3, a schematic diagram of an architecture of a terminal device and a terminal device exemplarily provided by the present application shows various modules in the terminal device. It should be noted that fig. 3 is only an example, and the number and names of the task modules included in the terminal device are not limited in the present application. The functions of the respective task modules are described below with reference to fig. 3:
(1) A downloading module: and the system is used for inquiring a corresponding target address from the configuration file according to the equipment identifier of the terminal equipment, downloading the code file and the resource file from the target address and storing the code file and the resource file in a specified directory of the terminal equipment.
(2) A compiling module: the method is used for compiling the code files under the specified directory and generating the object codes which can be supported by the terminal equipment.
(3) A cleaning module: the method is used for deleting the intermediate file generated in the compiling process of the compiling module.
(4) Installing a module: and generating an installation package of the application program according to the deleted intermediate file and the residual object code and resource file, and operating the generated installation package to finish the installation of the application program.
Based on the scheme, the task processing mode of the assembly line is adopted, and the method is progressive layer by layer, clear in operation and easy to realize.
In a possible implementation manner, after the application is installed, a corresponding interface may be created and stored for the target address, so as to subsequently maintain the operation of the application.
Based on the same concept as the method described above, referring to fig. 4, an apparatus 400 for controlling installation of an application program is provided in an embodiment of the present application. The apparatus 400 is used for implementing each step in the above method, and is not described herein again to avoid repetition. The apparatus 400 comprises: an acquisition unit 401 and a processing unit 402.
An obtaining unit 401, configured to obtain a configuration file of an application to be installed; the configuration file comprises addresses of code files and addresses of resource files of the application program, which correspond to various hardware architectures and operating systems respectively;
a processing unit 402 configured to perform:
determining a device identification of a terminal device for installing the application program; the equipment identification is used for characterizing the hardware architecture and the operating system of the terminal equipment;
inquiring a target address corresponding to the equipment identification from the configuration file; the target address comprises an address of a code file corresponding to the equipment identifier and an address of a resource file corresponding to the equipment identifier;
and installing the application program in the terminal equipment according to the code file and the resource file in the target address.
In one or more embodiments, when the application is installed in the terminal device according to the code file and the resource file in the target address, the processing unit 402 is specifically configured to:
downloading a code file and a resource file from the target address;
compiling the code file in the target address by adopting a compiler of the terminal equipment;
generating an installation package of the application program according to the compiled code file and the resource file in the target address;
and installing the application program in the terminal equipment according to the installation package.
In one or more embodiments, the processing unit 402 is further configured to:
creating an interface corresponding to the target address;
and when an updating instruction of the application program is received, acquiring the updated code file and the updated resource file corresponding to the equipment identifier through the interface.
In one or more embodiments, the processing unit 402 is further configured to:
and deleting the intermediate file generated in the process of compiling the code file in the target address.
Fig. 5 shows a schematic structural diagram of an electronic device 500 provided in an embodiment of the present application. The electronic device 500 in the embodiment of the present application may further include a communication interface 503, where the communication interface 503 is, for example, a network interface, and the electronic device may transmit data through the communication interface 503.
In this embodiment, the memory 502 stores instructions executable by the at least one processor 501, and the at least one processor 501 may be configured to perform the steps of the method by executing the instructions stored in the memory 502, for example, the processor 501 may implement the functions of the obtaining unit 401 and the processing unit 402 in fig. 4.
The processor 501 is a control center of the electronic device, and may connect various parts of the whole electronic device by using various interfaces and lines, by executing or executing instructions stored in the memory 502 and calling data stored in the memory 502. Optionally, the processor 501 may include one or more processing units, and the processor 501 may integrate an application controller and a modem controller, wherein the application controller mainly handles an operating system, application programs, and the like, and the modem controller mainly handles wireless communication. It will be appreciated that the modem controller described above may not be integrated into the processor 501. In some embodiments, processor 501 and memory 502 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 501 may be a general-purpose controller, such as a Central Processing Unit (CPU), a digital signal controller, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application. The general controller may be a microcontroller or any conventional controller or the like. The steps executed by the data statistics platform disclosed in the embodiments of the present application may be directly executed by a hardware controller, or may be executed by a combination of hardware and software modules in the controller.
The memory 502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 502 may include at least one type of storage medium, such as a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and the like. The memory 502 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 502 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
By programming the processor 501, for example, codes corresponding to the training method of the neural network model described in the foregoing embodiment may be fixed in a chip, so that the chip can execute the steps of the training method of the neural network model when running.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a controller of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the controller of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (11)

1. An installation control method of an application program, the method comprising:
acquiring a configuration file of an application program to be installed; the configuration file comprises addresses of code files and addresses of resource files of the application program, which correspond to various hardware architectures and operating systems respectively;
determining a device identification of a terminal device for installing the application program; the equipment identification is used for representing a hardware architecture and an operating system of the terminal equipment;
inquiring a target address corresponding to the equipment identification from the configuration file; the target address comprises an address of a code file corresponding to the equipment identifier and an address of a resource file corresponding to the equipment identifier;
and installing the application program in the terminal equipment according to the code file and the resource file in the target address.
2. The method according to claim 1, wherein the installing the application program in the terminal device according to the code file and the resource file in the target address comprises:
downloading a code file and a resource file from the target address;
compiling the code file in the target address by adopting a compiler of the terminal equipment;
generating an installation package of the application program according to the compiled code file and the resource file in the target address;
and installing the application program in the terminal equipment according to the installation package.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
creating an interface corresponding to the target address;
and when an updating instruction of the application program is received, acquiring the updated code file and the updated resource file corresponding to the equipment identifier through the interface.
4. The method of claim 2, further comprising:
and deleting the intermediate file generated in the process of compiling the code file in the target address.
5. An installation control apparatus of an application program, characterized by comprising:
the device comprises an acquisition unit, a storage unit and a control unit, wherein the acquisition unit is used for acquiring a configuration file of an application program to be installed; the configuration file comprises addresses of code files and addresses of resource files of the application program, which correspond to various hardware architectures and operating systems respectively;
a processing unit configured to perform:
determining a device identification of a terminal device for installing the application program; the equipment identification is used for representing a hardware architecture and an operating system of the terminal equipment;
inquiring a target address corresponding to the equipment identification from the configuration file; the target address comprises an address of a code file corresponding to the equipment identifier and an address of a resource file corresponding to the equipment identifier;
and installing the application program in the terminal equipment according to the code file and the resource file in the target address.
6. The apparatus according to claim 5, wherein the processing unit, when installing the application program in the terminal device according to the code file and the resource file in the target address, is specifically configured to:
downloading a code file and a resource file from the target address;
compiling the code file in the target address by adopting a compiler of the terminal equipment;
generating an installation package of the application program according to the compiled code file and the resource file in the target address;
and installing the application program in the terminal equipment according to the installation package.
7. The apparatus of claim 5 or 6, wherein the processing unit is further configured to:
creating an interface corresponding to the target address;
and when an updating instruction of the application program is received, acquiring the updated code file and the updated resource file corresponding to the equipment identifier through the interface.
8. The apparatus of claim 6, wherein the processing unit is further configured to:
and deleting the intermediate file generated in the process of compiling the code file in the target address.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the steps comprised by the method of any one of claims 1 to 4 in accordance with the obtained program instructions.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method according to any one of claims 1-4.
11. A computer program product, the computer program product comprising: computer program code which, when run on a computer, causes the computer to perform the method according to any of the preceding claims 1-4.
CN202211150446.3A 2022-09-21 2022-09-21 Application program installation control method, device, equipment and storage medium Pending CN115469894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211150446.3A CN115469894A (en) 2022-09-21 2022-09-21 Application program installation control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211150446.3A CN115469894A (en) 2022-09-21 2022-09-21 Application program installation control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115469894A true CN115469894A (en) 2022-12-13

Family

ID=84334520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211150446.3A Pending CN115469894A (en) 2022-09-21 2022-09-21 Application program installation control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115469894A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737130A (en) * 2023-08-15 2023-09-12 之江实验室 Method, system, equipment and storage medium for compiling modal-oriented intermediate representation
CN117270896A (en) * 2023-11-15 2023-12-22 中孚安全技术有限公司 Automatic application program identification and installation method, system, device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116737130A (en) * 2023-08-15 2023-09-12 之江实验室 Method, system, equipment and storage medium for compiling modal-oriented intermediate representation
CN116737130B (en) * 2023-08-15 2023-11-28 之江实验室 Method, system, equipment and storage medium for compiling modal-oriented intermediate representation
CN117270896A (en) * 2023-11-15 2023-12-22 中孚安全技术有限公司 Automatic application program identification and installation method, system, device and storage medium

Similar Documents

Publication Publication Date Title
CN115469894A (en) Application program installation control method, device, equipment and storage medium
CN105100191B (en) The method, apparatus and system of Java application installations are realized in a kind of cloud compiling
CN109523383B (en) Intelligent contract conversion system and method
CN109582438B (en) Virtual machine with multiple intelligent contract execution engines and implementation method thereof
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN110764839A (en) Business processing flow configuration method, business request processing method and device
CN101980546B (en) Intelligent network platform, service execution method and method for analyzing service abnormality
CN104966190A (en) Network payment method and apparatus
CN111240772B (en) Block chain-based data processing method, device and storage medium
CN110673851B (en) Intelligent contract operation method and device and electronic equipment
CN112486490A (en) Front-end code packaging method and device, electronic equipment and storage medium
CN111241803A (en) Method and device for generating text file, computer equipment and readable storage medium
CN112529711B (en) Transaction processing method and device based on block chain virtual machine multiplexing
CN112965721B (en) Project compiling method and device based on Android, computer equipment and storage medium
CN110659022B (en) Method for automatically calling Python script based on Java
CN110489124B (en) Source code execution method, source code execution device, storage medium and computer equipment
CN114356379A (en) Backup-based service upgrading method, device, equipment and storage medium
CN113778564B (en) Method, equipment and storage medium for efficiently executing EVM intelligent contract
US9569187B2 (en) Irreducible modules
CN116107623A (en) Software development method and device and electronic equipment
CN113703339A (en) Automatic driving simulation method, device, equipment and storage medium
CN114185572A (en) Data flashing method, device, equipment and storage medium
CN112380820A (en) Automatic data backfilling method and device, electronic equipment and computer storage medium
CN112631719A (en) Data prediction model calling method, device, equipment and storage medium
CN114253595A (en) Code warehouse management method and device, computer equipment 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