CN110825450B - APP configuration modification method and device, electronic equipment and storage medium - Google Patents

APP configuration modification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110825450B
CN110825450B CN201910933807.3A CN201910933807A CN110825450B CN 110825450 B CN110825450 B CN 110825450B CN 201910933807 A CN201910933807 A CN 201910933807A CN 110825450 B CN110825450 B CN 110825450B
Authority
CN
China
Prior art keywords
file
configuration
app
template
parameters
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.)
Active
Application number
CN201910933807.3A
Other languages
Chinese (zh)
Other versions
CN110825450A (en
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201910933807.3A priority Critical patent/CN110825450B/en
Publication of CN110825450A publication Critical patent/CN110825450A/en
Application granted granted Critical
Publication of CN110825450B publication Critical patent/CN110825450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an APP configuration modification method, an apparatus, an electronic device and a storage medium, which can replace template parameters in a configuration template file with new configuration parameters of an APP to generate a new current configuration file, then store a Target file containing the current configuration file in the device where the APP is located, and delete the history Target file if the old history Target file corresponding to the APP exists in the device where the APP is located, so as to ensure that only one Target file related to the APP exists in the device where the APP is located. Therefore, the method and the device for modifying the APP configuration do not need an Xcode tool, so that the number of Target files in the equipment is guaranteed not to be increased limitlessly, and management of the Target files is facilitated.

Description

APP configuration modification method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of software development technologies, and in particular, to an APP configuration modification method, apparatus, electronic device, and storage medium.
Background
In the iOS operating system, a developer typically uses a development tool Xcode of an APP (Application) to operate the APP, so that each APP correspondingly generates a Target file, and each Target file includes a resource file, a code, a configuration file, and the like corresponding to the APP. Then, the Xcode packages and saves the Target file into the total engineering configuration file.
At present, management of the APP is mostly carried out depending on the Xcode, and when a new APP needs to be added, a Target file needs to be generated by utilizing the Xcode, new APP configuration is written into a configuration file in the Target file, and finally the Target file containing the new configuration is added in the total engineering configuration file. When the configuration of the APP needs to be modified, a designer is also required to manually modify the APP configuration information in the configuration file by using the Xcode, and then the Target file containing the new configuration file is saved in the total engineering configuration file.
Because each modification of the configuration of the APP results in an increase in the number of Target files, if the APP configuration is modified multiple times, not only the Target files corresponding to each APP are correspondingly present in the total engineering configuration file, but also multiple Target files may be present corresponding to each APP, thereby resulting in a greater number of Target files in the total engineering configuration. Therefore, the method uses the Xcode tool to modify the configuration of the APP, and when the configuration information of the APP needs to be modified for many times, the problem of too many Target files in the Xcode total engineering configuration file is caused.
Disclosure of Invention
The invention provides an APP configuration modification method, an APP configuration modification device, electronic equipment and a storage medium, which can modify the configuration of an APP by utilizing a configuration template file, and avoid the problem that too many Target files in an Xcode total engineering configuration file are caused by using an Xcode tool when configuration information of the APP needs to be modified for many times.
In a first aspect, the present invention provides an APP configuration modification method, including:
acquiring a configuration template file, wherein the configuration template file is generated according to a configuration file in a Target file, the configuration file contains configuration parameters of an APP, and the configuration template file contains template parameters for replacing the configuration parameters;
replacing template parameters in the configuration template file by using new configuration parameters of the APP to generate a current configuration file;
and storing the current Target file containing the current configuration file in the equipment where the APP is located.
With reference to the first aspect, in a possible implementation manner of the first aspect, before the acquiring the configuration template file includes:
acquiring a history configuration file in equipment where an APP is located, wherein the history configuration file is stored in a history Target file in the equipment where the APP is located;
and replacing the configuration parameters of the APP in the history configuration file by using the template parameters to generate a configuration template file.
With reference to the first aspect, in a possible implementation manner of the first aspect, before the acquiring the configuration template file, the method further includes:
establishing an empty Target file corresponding to the APP;
copying all contents in any historical Target file in the equipment where the APP is located into the empty Target file to generate a Target template file;
and replacing the content in the Target template file with the content in the APP data file to generate a current Target file corresponding to the APP, wherein the APP data file comprises a certificate, a picture file, codes and configuration information.
With reference to the first aspect, in a possible implementation manner of the first aspect, the step of replacing the configuration parameters of the APP in the history configuration file with the template parameters to generate a configuration template file includes:
acquiring the number of APP configuration parameters in the history configuration file;
selecting template parameters which are the same in number as the configuration parameters and are different from each other;
and respectively replacing the configuration parameters by using the template parameters to generate a configuration template file.
With reference to the first aspect, in a possible implementation manner of the first aspect, the step of establishing an empty Target file corresponding to the APP includes:
judging whether the APP exists in equipment where the APP exists or not;
if the APP does not exist in the equipment where the APP is located, an empty Target file corresponding to the APP is established.
In a second aspect, the present invention provides an APP configuration modification device, comprising:
the template file acquisition module is used for acquiring a configuration template file, wherein the configuration template file is generated according to a configuration file in the Target file, the configuration file contains configuration parameters of the APP, and the configuration template file contains template parameters for replacing the configuration parameters;
the current configuration file generation module is used for replacing template parameters in the configuration template file by using new configuration parameters of the APP to generate a current configuration file;
and the file storage module is used for storing the current Target file containing the current configuration file in the equipment where the APP is located.
With reference to the second aspect, in a possible implementation manner of the second aspect, the method further includes:
the configuration file acquisition module is used for acquiring a history configuration file in equipment where the APP is located, and the history configuration file is stored in a history Target file of the equipment where the APP is located;
and the template file generation module is used for replacing the configuration parameters of the APP in the history configuration file by using the template parameters to generate a configuration template file.
With reference to the second aspect, in a possible implementation manner of the second aspect, the method further includes:
the Target file establishing module is used for establishing an empty Target file corresponding to the APP;
the file copying module is used for copying all contents in any historical Target file in the equipment where the APP is located into the empty Target file to generate a Target template file;
the file replacement module is used for replacing the content in the Target template file by the content in the APP data file to generate a current Target file corresponding to the APP, and the APP data file comprises a certificate, a picture file, codes and configuration information.
With reference to the second aspect, in a possible implementation manner of the second aspect, the template file generating module includes:
the parameter acquisition unit is used for acquiring the number of APP configuration parameters in the history configuration file;
a template parameter selecting unit for selecting template parameters which are the same in number as the configuration parameters and are different from each other;
and the template generating unit is used for respectively replacing the configuration parameters by using the template parameters to generate a configuration template file.
With reference to the second aspect, in a possible implementation manner of the second aspect, the Target file creating module includes:
the judging unit is used for judging whether the APP exists in the equipment where the APP is located; if the APP does not exist in the equipment where the APP is located, an empty Target file corresponding to the APP is established.
In a third aspect, the present invention provides an electronic device, comprising:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory to realize the APP configuration modification method in the first aspect.
In a fourth aspect, the present invention provides a storage medium having stored therein a computer program which, when executed by at least one processor of an APP configuration modification device, performs the APP configuration modification method of the first aspect.
According to the technical scheme, the APP configuration modification method, the device, the electronic equipment and the storage medium can replace template parameters in the configuration template file with new configuration parameters of the APP to generate a new current configuration file, then store a Target file containing the current configuration file in equipment where the APP is located, and delete the history Target file if the old history Target file corresponding to the APP exists in the equipment where the APP is located, so that only one Target file related to the APP in the equipment where the APP is located is ensured. Therefore, the method and the device for modifying the APP configuration do not need an Xcode tool, so that the number of Target files in the equipment is guaranteed not to be increased limitlessly, and management of the Target files is facilitated.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of an APP configuration modification method provided by an embodiment of the present invention;
FIG. 2 is a flowchart of generating a configuration template file according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for generating a configuration template file according to an embodiment of the present invention;
FIG. 4 is a flowchart of generating a current Target file according to an embodiment of the present invention;
FIG. 5 is a flowchart for creating an empty Target file according to an embodiment of the present invention;
fig. 6 is a block diagram of an APP configuration modification device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In the iOS operating system, the current modification to the APP configuration usually depends on an Xcode tool, and the Xcode is characterized in that a Target file corresponding to the APP is generated every time the modification is performed, and the Target file is stored in an Xcode total engineering configuration file, and the total engineering configuration file is stored in the device where the APP is located, that is, in the device where the operating system is installed. When the number of modifications increases, the Target file in the total engineering configuration file also increases, and it is more difficult for the Target file. In addition, when the Xcode is used for modification, a developer also needs to manually create a Target file and complete filling of various configurations in the Xcode, so that the process is very complicated, the time consumption is long, and the efficiency is low. Therefore, the invention provides an APP configuration modification method, when the APP configuration is modified, an Xcode tool is not utilized, and the old Target file in the total engineering configuration file in the equipment where the APP is positioned is replaced by the new Target file, so that the modification process can be quickened, the Target files in the total engineering configuration file are not increased, and the management of the total engineering configuration file is facilitated.
Fig. 1 is a flowchart of an APP configuration modification method provided in an embodiment of the present invention. As shown in fig. 1, the APP configuration modification method provided by the embodiment of the present invention includes the following steps:
s101, acquiring a configuration template file, wherein the configuration template file is generated according to a configuration file in a Target file, the configuration file contains configuration parameters of the APP, and the configuration template file contains template parameters for replacing the configuration parameters.
Each APP generally has a corresponding configuration file, in which various configuration parameters related to the APP are stored, where the configuration parameters relate to functions of the APP, specifically include a name of the APP, a packet identifier of the APP, a global identifier of an APP code, a network path, or a host address related to the APP, and the like, where the configuration parameters corresponding to different APPs are different. Therefore, when an APP is added to the current operating system or an existing APP configuration is modified, a new Target file needs to be generated for each operation; in the embodiment of the invention, the configuration template file is adopted, namely, the configuration parameters in the configuration file are replaced by the template parameters playing a role in identification, and when the configuration is required to be modified, the configuration template file is directly operated without using an Xcode tool.
The configuration template file is generated according to the configuration file in the existing Target file in the operating system, and due to the limitation of the operating system and the Xcode tool, all the generated Target files and the configuration file in the Target file have the same format and are applied to the iOS operating system.
Therefore, in the embodiment of the invention, the configuration template file is utilized to realize the modification of the APP configuration, an Xcode tool is not needed, the phenomenon that one Target file is generated after the configuration is modified once is avoided, the number of the Target files in the total engineering configuration file in the equipment where the APP is located can be effectively controlled, the management of the total engineering configuration file is convenient, and the problem of low configuration modification efficiency caused by manually filling in the configuration and creating a new Target file is also avoided.
S102, replacing the template parameters in the configuration template file by using the new configuration parameters of the APP to generate a current configuration file.
In the embodiment of the invention, each time there is APP configuration to be modified, a configuration template file is called, the template parameters are replaced by new configuration parameters correspondingly, and a configuration file containing the new configuration parameters is generated, namely the current configuration file. The difference between the current configuration file and the configuration template file is only different in configuration parameters, and the format of the current configuration file and the configuration template file completely accords with the requirements of an operating system. The situations that the APP configuration needs to be modified in the embodiment of the invention include two situations that the existing APP configuration of the operating system needs to be modified and a new APP needs to be added in the operating system, when the new APP needs to be added, the operating system needs to establish a corresponding configuration file for the new APP, at the moment, the new configuration file can be generated by utilizing the configuration template file, and the process is the same as the process of the configuration modification of the existing APP, so that the new APP added in the operating system can be also included in the situations that the APP configuration needs to be modified.
S103, storing the current Target file containing the current configuration file in the device where the APP is located.
The files typically stored in the overall engineering configuration file are files related to all content of the APP, including the resource content and configuration content of the APP, so that after the current configuration file is obtained, the current configuration file cannot be merely stored in the overall engineering configuration file of the device. In the invention, considering development factors of an operating system, the Xcode tool is still used for packaging the current Target file containing the current configuration file, and then the packaged Target file is stored in the total engineering configuration file of the equipment. In addition, if the history Target file corresponding to the APP already exists in the total engineering configuration file of the equipment where the APP is located, deleting the history Target file.
In the embodiment of the invention, the APP configuration needs to be modified in two cases, when a certain APP exists in the equipment where the APP is located, the APP configuration is modified to generate a new Target file, and in order to avoid excessive Target files related to the APP in the total engineering configuration file in the equipment, the historical Target files of the APP need to be deleted so as to ensure that only one Target file related to the APP exists in the total engineering configuration file. For example, the application software of "58 city" already has a history file TargetA in the total engineering configuration file, but the configuration modification of "58 city" is now needed, so when the newly generated file TargetB is saved in the total engineering configuration file, the file TargetA needs to be deleted. If the application software of 58 same city does not exist in the current operating system, after the software is installed in the system, a new file TargetA corresponding to the software needs to be generated and is directly stored in the total engineering configuration file.
It can be seen that, in the embodiment of the present invention, the configuration of the APP is modified by using the configuration template file, the Target file including the new configuration file is generated and then stored in the total engineering configuration file of the device where the APP is located, if the historical Target file of the APP already exists in the total engineering configuration file, the historical Target file is deleted, so that only one corresponding Target file of the APP in the total engineering configuration file is ensured, the effect of controlling the number of Target files is played, and the management of the Target files is facilitated.
Fig. 2 is a flowchart of generating a configuration template file according to an embodiment of the present invention. As shown in fig. 2, before obtaining the configuration template file, the method further includes:
s201, acquiring a history configuration file in the equipment where the APP is located, wherein the history configuration file is stored in a history Target file in the equipment where the APP is located.
In general, the total engineering configuration file of the device where the APP is located will store some configuration files related to the APP, and compared with the configuration to be generated, the existing configuration files may be referred to as history configuration files, and the history configuration files are validated to indicate that the format of the history configuration files meets the requirement of the operating system, so that the configuration template files can be generated based on the history configuration files.
All the history configuration files in the total engineering configuration file can be obtained in the embodiment of the invention, and the purpose is to compare all the history configuration files to obtain the configuration file with more accurate format, exclude some special cases with unsatisfactory format, and generate the more accurate configuration template file by using the screened history configuration files.
S202, replacing configuration parameters of the APP in the history configuration file with template parameters to generate a configuration template file.
In the embodiment of the invention, the configuration parameters are replaced by the template parameters, and each time the configuration parameters are modified, the new configuration files with the same format can be obtained by replacing the new configuration parameters with the template parameters at the corresponding positions.
FIG. 3 is a flowchart of another method for generating a configuration template file according to an embodiment of the present invention. As shown in fig. 3, the step of replacing the configuration parameters of the APP in the history configuration file with the configuration template parameters to generate a configuration template file includes:
s301, obtaining the number of APP configuration parameters in the history configuration file.
The configuration parameters in the configuration files include the name of the APP, the packet identity of the APP, the global identity of the APP code, the network path or host address related to the APP, etc., so there are several configuration parameters in each configuration file, for which a number of template parameters equal to the number thereof are needed to be substituted.
S302, selecting template parameters which are the same in number as the configuration parameters and are different from each other.
If template parameter A is used for replacing the name of APP, template parameter B is used for replacing the package identifier of APP, template parameter C is used for replacing the global identifier of APP code, template parameter D is used for replacing network path, template parameter E is used for replacing host address related to APP, if there are 20 configuration parameters needed in one configuration file, then 20 mutually different template parameters are needed. Template parameters A, B, C, D, E … … are contained in the configuration template file, without specific configuration parameters. The location of the configuration parameters in the configuration file is fixed, for example, the specific configuration parameters are filled in the configuration file according to the sequence of ' name of APP, package identifier of APP, global identifier of APP code, network path, host address of APP, then the location of the template parameters in the configuration template file is ' A, B, C, D, E ', so that the new configuration parameters can be replaced accurately.
S303, respectively replacing the configuration parameters by using the template parameters to generate a configuration template file.
It can be seen that, in the embodiment of the present invention, the configuration parameters may be replaced by the template parameters, so as to generate a configuration template file containing the template parameters, where the template parameters only play a role of identification, provide a position indication for the corresponding configuration parameters, and when new configuration parameters of the same template parameter type need to be written, the new configuration parameters are replaced by the corresponding template parameters, where the "name of APP, the package identifier of APP, the global identifier of APP code, the network path, the host address related to APP" and so on may all be regarded as different types.
Fig. 4 is a flowchart of generating a current Target file according to an embodiment of the present invention. As shown in fig. 4, before obtaining the configuration template file, the method further includes:
s401, establishing an empty Target file corresponding to the APP.
In the embodiment of the invention, a corresponding Target file is firstly established for each APP needing to be modified and configured, and the Target file is an empty folder and does not comprise the resource content and the configuration content of the APP.
Fig. 5 is a flowchart of creating an empty Target file according to an embodiment of the present invention. As shown in fig. 5, the step of creating an empty Target file corresponding to the APP includes:
s501, judging whether the APP exists in equipment where the APP exists.
S502, if the APP does not exist in the equipment where the APP is located, establishing an empty Target file corresponding to the APP.
In the embodiment of the invention, the Target file is built for the APP only when the APP does not exist in the equipment where the APP exists, and when the APP exists in the equipment where the APP exists, the fact that the Target file record of the APP exists in the equipment where the APP exists is indicated, and at the moment, a new Target file is not required to be built again, and only configuration information is extracted.
S402, copying all contents in any historical Target file in the equipment where the APP is located into an empty Target file to generate a Target template file.
In the embodiment of the invention, in order to avoid writing the resource content and the configuration content of the APP into the Target file by using the Xcode tool, the Target template file needs to be established first, and the template file and the configuration template file play a role in providing the format.
S403, replacing the content in the Target template file with the content in the APP data file to generate a current Target file corresponding to the APP, wherein the APP data file comprises a certificate, a picture file, a code and configuration information.
Therefore, the method in the embodiment of the invention can also copy the content of the new APP data file directly into the Target template file, so that the new APP data file accords with the format requirement of an operating system. The currently used mode of adding the new Target file is to directly add the data content of the APP into the Target file, the process is required to be manually operated by a developer, the process is complex and complicated, the method in the embodiment of the invention directly adopts the Target template file to replace the old data content into the new data content, and the mode is suitable for most of the APP, so that the purpose of not manually adding the Target file content is realized, and the whole operation process is faster.
In addition, in the embodiment of the invention, all the configuration parameters of the new APP can be stored in another new file M, and the configuration template file can be stored in a new file N. In file M, each APP corresponds to one or more Target files, each of which corresponds to a set of configuration parameters, such as Target1: a1, B1, C1, D1 … …; target2: a2, B2, C2, D2 … …; target3: a3, B3, C3, D3 … …. The configuration template file stored in the file N is Target: A. b, C, D … …. When parameters of configuration of the APP need to be changed, a Target name corresponding to the configuration parameters can be input into the file M, a group of configuration parameters corresponding to the Target name are obtained, then a configuration template file is obtained from the file N, and template parameters in the configuration template file are replaced by the configuration parameters extracted from the file M. The specific mode can be realized by using a script mode.
According to the APP configuration modification method provided by the embodiment of the invention, the template parameters in the configuration template file can be replaced with new configuration parameters of the APP to generate a new current configuration file, then the Target file containing the current configuration file is stored in the equipment where the APP is located, and if the old historical Target file corresponding to the APP still exists in the equipment where the APP is located, the historical Target file is deleted, so that only one Target file related to the APP in the equipment where the APP is located is ensured. Therefore, the method and the device for modifying the APP configuration do not need an Xcode tool, so that the number of Target files in the equipment is guaranteed not to be increased limitlessly, and management of the Target files is facilitated.
Fig. 6 is a block diagram of an APP configuration modification device according to an embodiment of the present invention. As shown in fig. 6, the APP configuration modification device includes: the template file obtaining module 61 is configured to obtain a configuration template file, where the configuration template file is generated according to a configuration file in the Target file, the configuration file includes configuration parameters of the APP, and the configuration template file includes template parameters that replace the configuration parameters; the current configuration file generating module 62 is configured to replace template parameters in the configuration template file with new configuration parameters of the APP to generate a current configuration file; and the file storing module 63 is configured to store the current Target file containing the current configuration file in a device where the APP is located.
Optionally, the APP configuration modification device further includes: the configuration file acquisition module is used for acquiring a history configuration file in equipment where the APP is located, and the history configuration file is stored in a history Target file of the equipment where the APP is located; and the template file generation module is used for replacing the configuration parameters of the APP in the history configuration file by using the template parameters to generate a configuration template file.
Optionally, the APP configuration modification device further includes: the Target file establishing module is used for establishing an empty Target file corresponding to the APP; the file copying module is used for copying all contents in any historical Target file in the equipment where the APP is located into the empty Target file to generate a Target template file; the file replacement module is used for replacing the content in the Target template file by the content in the APP data file to generate a current Target file corresponding to the APP, and the APP data file comprises a certificate, a picture file, codes and configuration information.
Optionally, the template file generating module includes: the parameter acquisition unit is used for acquiring the number of APP configuration parameters in the history configuration file; a template parameter selecting unit for selecting template parameters which are the same in number as the configuration parameters and are different from each other; and the template generating unit is used for respectively replacing the configuration parameters by using the template parameters to generate a configuration template file.
Optionally, the Target file creating module includes: the judging unit is used for judging whether the APP exists in the equipment where the APP is located; if the APP does not exist in the equipment where the APP is located, an empty Target file corresponding to the APP is established.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 7, the present invention further provides an electronic device, including: a memory 71 for storing program instructions; and a processor 72 for calling and executing the program instructions in the memory to implement the APP configuration modification method described in the above embodiment. Reference may be made in particular to the relevant description of the previous embodiments.
In this embodiment, the processor 72 and the memory 71 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a computer program, and when at least one processor of the APP configuration modification device executes the computer program, the APP configuration modification device executes the APP configuration modification method described in the embodiment.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the service building apparatus and the service loading apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description in the method embodiments for the matters.
The embodiments of the present invention described above do not limit the scope of the present invention.

Claims (10)

1. An APP configuration modification method, comprising:
establishing an empty Target file corresponding to the APP;
copying all contents in any historical Target file in the equipment where the APP is located into the empty Target file to generate a Target template file;
replacing the content in the Target template file with the content in a new APP data file to generate a current Target file corresponding to the APP, wherein the new APP data file comprises a certificate, a picture file, codes and configuration information;
acquiring a configuration template file, wherein the configuration template file is generated according to a configuration file in a Target file, the configuration file contains configuration parameters of an APP, and the configuration template file contains template parameters for replacing the configuration parameters;
replacing template parameters in the configuration template file by using new configuration parameters of the APP to generate a current configuration file;
and storing the current Target file containing the current configuration file in the equipment where the APP is located.
2. The method of claim 1, comprising, prior to the obtaining the configuration template file:
acquiring a history configuration file in equipment where an APP is located, wherein the history configuration file is stored in a history Target file in the equipment where the APP is located;
and replacing the configuration parameters of the APP in the history configuration file by using the template parameters to generate a configuration template file.
3. The method of claim 2, wherein the step of generating a configuration template file by replacing configuration parameters of the APP in the history profile with template parameters comprises:
acquiring the number of APP configuration parameters in the history configuration file;
selecting template parameters which are the same in number as the configuration parameters and are different from each other;
and respectively replacing the configuration parameters by using the template parameters to generate a configuration template file.
4. The method of claim 1, wherein the step of creating an empty Target file corresponding to the APP comprises:
judging whether the APP exists in equipment where the APP exists or not;
if the APP does not exist in the equipment where the APP is located, an empty Target file corresponding to the APP is established.
5. An APP configuration modification device, comprising:
the Target file establishing module is used for establishing an empty Target file corresponding to the APP;
the file copying module is used for copying all contents in any historical Target file in the equipment where the APP is located into the empty Target file to generate a Target template file;
the file replacement module is used for replacing the content in the Target template file by using the content in the new APP data file to generate a current Target file corresponding to the APP, wherein the new APP data file comprises a certificate, a picture file, a code and configuration information;
the template file acquisition module is used for acquiring a configuration template file, wherein the configuration template file is generated according to a configuration file in the Target file, the configuration file contains configuration parameters of the APP, and the configuration template file contains template parameters for replacing the configuration parameters;
the current configuration file generation module is used for replacing template parameters in the configuration template file by using new configuration parameters of the APP to generate a current configuration file;
and the file storage module is used for storing the current Target file containing the current configuration file in the equipment where the APP is located.
6. The apparatus as recited in claim 5, further comprising:
the configuration file acquisition module is used for acquiring a history configuration file in equipment where the APP is located, and the history configuration file is stored in a history Target file of the equipment where the APP is located;
and the template file generation module is used for replacing the configuration parameters of the APP in the history configuration file by using the template parameters to generate a configuration template file.
7. The apparatus of claim 6, wherein the template file generation module comprises:
the parameter acquisition unit is used for acquiring the number of APP configuration parameters in the history configuration file;
a template parameter selecting unit for selecting template parameters which are the same in number as the configuration parameters and are different from each other;
and the template generating unit is used for respectively replacing the configuration parameters by using the template parameters to generate a configuration template file.
8. The apparatus of claim 5, wherein the Target file creation module comprises:
the judging unit is used for judging whether the APP exists in the equipment where the APP is located; if the APP does not exist in the equipment where the APP is located, an empty Target file corresponding to the APP is established.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory to implement the APP configuration modification method of any of claims 1-4.
10. A storage medium having stored therein a computer program which, when executed by at least one processor of an APP configuration modification device, performs the APP configuration modification method of any one of claims 1 to 4.
CN201910933807.3A 2019-09-29 2019-09-29 APP configuration modification method and device, electronic equipment and storage medium Active CN110825450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910933807.3A CN110825450B (en) 2019-09-29 2019-09-29 APP configuration modification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910933807.3A CN110825450B (en) 2019-09-29 2019-09-29 APP configuration modification method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110825450A CN110825450A (en) 2020-02-21
CN110825450B true CN110825450B (en) 2023-08-11

Family

ID=69548436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910933807.3A Active CN110825450B (en) 2019-09-29 2019-09-29 APP configuration modification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110825450B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506182A (en) * 2017-07-27 2017-12-22 努比亚技术有限公司 Software layout method, software merit rating device and computer-readable recording medium
CN109343854A (en) * 2018-09-18 2019-02-15 武汉精立电子技术有限公司 Intelligent automation Compilation Method and system based on zynq system
CN109725910A (en) * 2018-09-12 2019-05-07 网联清算有限公司 Standardization dissemination method, distributing device and the delivery system of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107506182A (en) * 2017-07-27 2017-12-22 努比亚技术有限公司 Software layout method, software merit rating device and computer-readable recording medium
CN109725910A (en) * 2018-09-12 2019-05-07 网联清算有限公司 Standardization dissemination method, distributing device and the delivery system of application program
CN109343854A (en) * 2018-09-18 2019-02-15 武汉精立电子技术有限公司 Intelligent automation Compilation Method and system based on zynq system

Also Published As

Publication number Publication date
CN110825450A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN110058856A (en) Page configuration method and device
US8707286B2 (en) Unique context-based code enhancement
CN110673924B (en) Multi-architecture container cloud mirror image selection method, device, equipment and storage medium
EP4009162A1 (en) Code change method and device
CN107506221A (en) Application program updating method, apparatus and equipment
CN104408201A (en) Junk file cleaning method and device
CN110209420A (en) A kind of method and device updating bootstrap loader
CN110990356B (en) Real-time automatic capacity expansion method and system for logical mirror image
CN110825450B (en) APP configuration modification method and device, electronic equipment and storage medium
CN110806891B (en) Method and device for generating software version of embedded device
CN110688320B (en) Global variable detection method and device and terminal equipment
US10606612B2 (en) Context check bypass to enable opening shared-object libraries
CN115934654A (en) Packing method, device and equipment of experimental resources and storage medium
CN107766048B (en) Page compiling method and device
CN106886420B (en) Program code management device and method and program code manager
CN112749152A (en) Data migration method and device of intelligent contract and storage medium
CN112015702A (en) Message file name processing method, device and equipment
CN111371699A (en) Resource current limiting method and device, electronic equipment and storage medium
CN111737964A (en) Form dynamic processing method, equipment and medium
CN111026466A (en) File processing method and device, computer readable storage medium and electronic equipment
CN116257277B (en) Mirror image file updating method and device and VOI system
CN111638904B (en) Data configuration restoration method and device and readable storage medium
CN112558944B (en) App generation method and device, processing equipment and computer readable storage medium
CN108399323B (en) Parameter management system and parameter management method
CN107479899B (en) File processing method and device, storage medium and processor

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
GR01 Patent grant
GR01 Patent grant