CN112306508A - Configuration information file updating method and device and processing equipment - Google Patents

Configuration information file updating method and device and processing equipment Download PDF

Info

Publication number
CN112306508A
CN112306508A CN202011088296.9A CN202011088296A CN112306508A CN 112306508 A CN112306508 A CN 112306508A CN 202011088296 A CN202011088296 A CN 202011088296A CN 112306508 A CN112306508 A CN 112306508A
Authority
CN
China
Prior art keywords
file
resource name
application
resource
target
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
CN202011088296.9A
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.)
Wuhan Mucang Technology Co Ltd
Original Assignee
Wuhan Mucang Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Mucang Technology Co Ltd filed Critical Wuhan Mucang Technology Co Ltd
Priority to CN202011088296.9A priority Critical patent/CN112306508A/en
Publication of CN112306508A publication Critical patent/CN112306508A/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/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The application provides an updating method, device and processing equipment of a configuration information file, which are used for correcting the resource name of a target resource file of transition application of a target application, ensuring that the transition page is normally loaded by the target application, and the transition page can be normally displayed and realizes the page function of the transition page. The application provides an updating method of a configuration information file, which comprises the following steps: the method comprises the steps that a processing device obtains a configuration information file of a transition page of a target application, wherein the configuration information file is used for indicating a user device to load a target resource file required by the transition page; the processing equipment extracts the current resource name of the target resource file; the processing equipment detects whether the current resource name accords with the current resource name specification of the target application; if not, the current resource name is adjusted to the resource name meeting the resource name specification.

Description

Configuration information file updating method and device and processing equipment
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for updating a configuration information file, and a processing device.
Background
Nowadays, smart phones have been integrated into daily lives of a wide range of users, and then have been integrated with internet access functions from an initial communication tool, but are also limited to web browsing and internet chatting, but today's smart phones can almost help us to quickly solve most daily living needs, such as different application functions of photographing, payment, office work and the like, and become daily necessities for most users.
In the smart phone, corresponding applications, such as news applications, social applications, photographing applications, banking applications and the like, can be installed according to the requirements of a User, and for the User experience, increasingly fine application Interface (UI) design and increasingly powerful application functions provide guarantee for good User experience of the applications.
In the existing research process of related technologies, the inventor finds that, in the use process of some applications, a transition page is loaded abnormally, so that the display and the function of the transition page are incomplete, stuck and even returned, and obviously, the user experience of the applications is directly influenced by the abnormal transition page.
Disclosure of Invention
The application provides an updating method, device and processing equipment of a configuration information file, which are used for correcting the resource name of a target resource file of transition application of a target application, ensuring that the transition page is normally loaded by the target application, and the transition page can be normally displayed and realizes the page function of the transition page.
In a first aspect, the present application provides a method for updating a configuration information file, where the method includes:
the method comprises the steps that a processing device obtains a configuration information file of a transition page of a target application, wherein the configuration information file is used for indicating a user device to load a target resource file required by the transition page;
the processing equipment extracts the current resource name of the target resource file;
the processing equipment detects whether the current resource name accords with the current resource name specification of the target application;
if not, the processing device adjusts the current resource name to a resource name meeting the resource name specification.
With reference to the first aspect of the present application, in a first possible implementation manner of the first aspect of the present application, the current resource name specifically includes a resource name currently used by the target resource file in the file storage address, a resource name used by the target resource file in the currently related resource usage relationship, or a resource name used in the currently related file mapping relationship of the target resource file.
With reference to the first aspect of the present application, in a second possible implementation manner of the first aspect of the present application, a name format of a resource name specified by a resource name specification includes a resource name prefix, a resource feature, and a version identifier.
With reference to the first aspect of the present application, in a third possible implementation manner of the first aspect of the present application, the extracting, by the processing device, a current resource name of the target resource file includes:
and traversing the resource name corresponding to the configuration information file by the processing equipment through a preset regular expression, and positioning and extracting the current resource name.
With reference to the first aspect of the present application, in a fourth possible implementation manner of the first aspect of the present application, the transition page includes a start page, a wake-up page, or a switch page corresponding to the target application.
With reference to the first aspect of the present application, in a fifth possible implementation manner of the first aspect of the present application, before the processing device obtains the configuration information file of the transition page of the target application, the method further includes:
the processing device loads an application file of a target application to run the target application, and when the fact that resource file loading exception exists in a transition page is detected in the running process, a configuration information file is triggered to be obtained from the application file.
With reference to the first aspect of the present application, in a sixth possible implementation manner of the first aspect of the present application, after the current resource name is adjusted to a resource name meeting a resource name specification, the method further includes:
the processing equipment packages the adjusted application files of the target application to obtain installation package files of the target application, wherein the application files comprise the adjusted configuration information files;
the processing equipment uploads the installation package file to an uploading platform of the target application, so that the uploading platform provides application installation service or application update service of the target application for a platform user based on the installation package file.
In a second aspect, the present application provides an apparatus for updating a configuration information file, the apparatus comprising:
the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a configuration information file of a transition page of a target application, and the configuration information file is used for indicating user equipment to load a resource file required by the transition page;
the extracting unit is used for extracting the current resource name of the target resource file indicated by the configuration information file;
the detection unit is used for detecting whether the current resource name accords with the resource name specification of the target application version, and if not, the adjustment unit is triggered;
and the adjusting unit is used for adjusting the current resource name into the resource name meeting the resource name specification.
With reference to the second aspect of the present application, in a first possible implementation manner of the second aspect of the present application, the current resource name specifically includes a resource name currently used by the target resource file in the file storage address, a resource name used by the target resource file in the currently related resource usage relationship, or a resource name used in the currently related file mapping relationship of the target resource file.
With reference to the second aspect of the present application, in a second possible implementation manner of the second aspect of the present application, a name format of a resource name specified by the resource name specification includes a resource name prefix, a resource feature, and a version identifier.
With reference to the second aspect of the present application, in a third possible implementation manner of the second aspect of the present application, the extracting unit is specifically configured to:
and traversing the resource name corresponding to the configuration information file through a preset regular expression, and positioning and extracting the current resource name.
With reference to the second aspect of the present application, in a fourth possible implementation manner of the second aspect of the present application, the transition page includes a start page, a wake-up page, or a switch page corresponding to the target application.
With reference to the second aspect of the present application, in a fifth possible implementation manner of the second aspect of the present application, the detecting unit is further configured to:
and loading an application file of the target application to run the target application, and triggering to acquire the configuration information file from the application file when detecting that the transition page has resource file loading abnormity in the running process.
With reference to the second aspect of the present application, in a sixth possible implementation manner of the second aspect of the present application, the apparatus further includes an upper rack unit;
packaging the adjusted application file of the target application to obtain an installation package file of the target application, wherein the application file comprises an adjusted configuration information file;
and uploading the installation package file to an uploading platform of the target application, so that the uploading platform provides application installation service or application update service of the target application for a platform user based on the installation package file.
In a third aspect, the present application provides a processing device, including a processor and a memory, where the memory stores a computer program, and the processor executes the method provided by the first aspect of the present application and any possible implementation manner of the first aspect of the present application when calling the computer program in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor, the method provided by the first aspect of the present application in any one of its possible implementation manners.
From the above, the present application has the following advantageous effects:
aiming at a transition page of a target application, the method firstly acquires a configuration information file of the transition page of the target, loads a target resource file required by the transition page based on user equipment indicated by the configuration information file, extracts a corresponding current resource name, then detects whether the current resource name meets the current resource name specification of the target application, if not, adjusts the current resource name into the resource name meeting the resource name specification, and completes the updating of the configuration information file, under the setting, because the resource name of the target resource file required by the transition page of the target application is corrected to be in line with the preset resource name specification, when the target application loads the transition page in the operation process, the situation that the target resource file is abnormally loaded due to the abnormal resource name can not be caused, thereby ensuring that the target application normally loads the transition page, the transition page can be normally displayed and the page function of the transition page can be realized, so that good user experience of the target application is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating a method for updating a configuration information file according to the present application;
fig. 2 is a schematic view of a scenario of an update method of a configuration information file according to the present application;
FIG. 3 is a schematic diagram of a configuration of an apparatus for updating a configuration information file according to the present application;
FIG. 4 is a schematic diagram of a processing apparatus according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus. The naming or numbering of the steps appearing in the present application does not mean that the steps in the method flow have to be executed in the chronological/logical order indicated by the naming or numbering, and the named or numbered process steps may be executed in a modified order depending on the technical purpose to be achieved, as long as the same or similar technical effects are achieved.
The division of the modules presented in this application is a logical division, and in practical applications, there may be another division, for example, multiple modules may be combined or integrated into another system, or some features may be omitted, or not executed, and in addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, and the indirect coupling or communication connection between the modules may be in an electrical or other similar form, which is not limited in this application. The modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in a plurality of circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present disclosure.
The method and the device for updating the configuration information file and the computer readable storage medium can be applied to processing equipment and used for correcting the resource name of the target resource file of the transition application of the target application, so that the transition page can be normally loaded by the target application, and can be normally displayed and the page function of the transition page can be realized.
In the method for updating a configuration information file, an execution subject may be an updating apparatus for the configuration information file, or a server, a physical host, or a User Equipment (UE) that integrates the updating apparatus for the configuration information file. The updating device of the configuration information file may be implemented by hardware or software, and the UE may specifically be a terminal device such as a smart phone, a tablet computer, an intelligent bracelet, a notebook computer, a desktop computer, or a Personal Digital Assistant (PDA).
Next, a description will be given of a method for updating a configuration information file provided in the present application.
First, referring to fig. 1, fig. 1 shows a schematic flow chart of an updating method for a configuration information file according to the present application, and the updating method for a configuration information file according to the present application may specifically include the following steps:
step S101, a processing device obtains a configuration information file of a transition page of a target application, wherein the configuration information file is used for indicating a user device to load a target resource file required by the transition page;
step S102, the processing equipment extracts the current resource name of the target resource file;
step S103, the processing equipment detects whether the current resource name accords with the current resource name specification of the target application, and if not, the step S104 is triggered;
in step S104, the processing device adjusts the current resource name to a resource name meeting the resource name specification.
As can be seen from the embodiment shown in fig. 1, for a transition page of a target application, the present application first obtains a configuration information file of the transition page of the target, loads a target resource file required by the transition page based on a user equipment indicated by the configuration information file, extracts a corresponding current resource name, and then detects whether the current resource name meets a current resource name specification of the target application, if not, adjusts the current resource name to a resource name meeting the resource name specification, and completes updating the configuration information file, under this setting, since the resource name of the target resource file required by the transition page of the target application is corrected to meet a preset resource name specification, when the target application loads the transition page in the operation process, the target resource file is not loaded abnormally due to the abnormal resource name, therefore, the transition page can be loaded normally by the target application, the transition page can be displayed normally, the page function of the transition page can be realized, and good user experience of the target application is guaranteed.
The steps of the embodiment shown in fig. 1 and the possible implementation manner thereof in practical applications are described in detail below.
In the present application, the target application may be any application type application, such as a news application, a social application, a photo application, a banking application, and the like.
The target application may be any selected application, or may also be an application currently triggering the update method of the configuration information file of the application. For example, if an application development company finishes a certain application, tests or mounts the application, the application can be uploaded to a company platform, and a server of the company platform or a worker of the platform can trigger the update method of the configuration information file, so that the server of the company platform corrects the resource name of the target resource file of the target application for transitional application, and it is ensured that the abnormal loading of the transitional page does not occur after the application is mounted.
In an exemplary implementation manner, the processing device may also pre-load the target application to test whether a transition page of the target application has a loading exception, and if so, trigger an update method of the configuration information file provided by the present application to correct a resource name of the transition page.
For example, the processing device may directly load the application file of the target application locally to perform a commissioning of the target application; or, the processing device may also load the application file of the target application in the built virtual environment, and because of the virtual environment, the processing device may also simulate a large number of virtual UEs, so as to test whether the transition page of the target application can be normally loaded on the large number of virtual UEs, thereby further improving the test efficiency.
The transition page may be understood as a page of a transition nature loaded during the process of page switching or page waiting of the target application.
It is easy to understand that, taking a tool class application X as an example, in a starting stage of the tool class application X, or when switching back to the tool class application X from a system desktop or other applications, or when running the tool class application X system screen-up and subsequently waking up the screen to continue running the tool class application X, a process related to initially loading a target application or a process related to reloading the target application needs to wait for a certain loading time.
Typically, if a high-definition image is involved or an application process which occupies a relatively large running memory needs to wait for a relatively long loading time, in this loading time, if the UE is in a black screen or stays on an original display page, it may mislead that the user has a situation that application start is abnormal or poor application experience is brought, at this time, some pages with a small data volume and a relatively low running memory are occupied in the loading time may be loaded for output, so that the target application may output some content in the loading time, and before the target application resumes normal page display or the application function is realized, the anxiety of the user may be relieved or more rich application use experience may be provided.
For example, the transition page may output some pre-stored text information, images, and audio, the content of which may be a calendar, weather, news, or countdown of loading time, and the specific content may be adjusted according to actual needs, so as to keep a low data volume or occupy an operating memory.
In another exemplary implementation manner, the transition page may specifically be a start page, a wake page, or a switch page corresponding to the target application.
The starting page corresponds to a starting scene of the target application, when the target application is started on the UE, more application processes of the target application need to be loaded, and the longest loading time is always consumed, so that a starting page can be generally configured within the loading time; the awakening page corresponds to an awakening scene of the target application, when the UE is turned off from the screen and awakened again in the process of running the target application, a system power-saving strategy of the UE may close part of application processes of the target application, the target application needs to reload the application processes, certain loading time is consumed to complete awakening of the target application, and therefore the awakening page can be configured; when the UE switches to other applications and switches back to the target application in the process of running the target application, the system power saving policy of the UE may also close part of application processes of the target application, and the target application needs to reload the application processes and consumes a certain loading time to complete the recovery of the target application, so a switching page may also be configured.
For the transition page of the target application, the processing device may obtain, in an application file of the target application, a configuration information file of the transition page, where the configuration information file is used to indicate or describe a target resource file required by the UE to load the transition page.
The target resource file can specifically point to resources of types such as characters, images, audios and the like, and the transition page outputs the content of the page by calling the target resource file.
When the UE uses the target resource file to display the transition page, the UE is realized by the resource name, and the resource name can also be understood as a resource Identifier (ID) for identifying the corresponding resource file, and the page content of the transition page is output by searching and calling the resource file with the specific resource name.
It can be understood that if the resource name is abnormal, for example, the characters are lost, the resource name is not matched before and after, and the code is messy, the search and the call of the resource file will fail, and further the loading of the transition page is abnormal.
In still another exemplary implementation manner, the resource name mentioned herein may specifically include a resource name currently used by the target resource file in the file storage address, a resource name used by the target resource file in the currently-involved resource usage relationship, or a resource name used in the currently-involved file mapping relationship of the target resource file.
It can be understood that if the resource name used by the resource file in the file storage address is wrong, it is obvious that the resource file cannot be found by using the normal resource name of the resource file in the file storage address; secondly, even if the resource name used by the resource file in the file storage address is correct, if the resource name used in the resource usage relation of the resource file is still the wrong resource name before correction, the resource file stored in the file storage address cannot be searched and called; similarly, the citation of part of the project is associated with the mapping of the resource file, and even if the resource name used by the resource file in the file storage address is correct, if the resource name used in the file mapping relationship is still the wrong resource name before correction, normal file mapping cannot be realized.
Specifically, when the name of the resource file is corrected, the current resource name adopted by the target resource file of the transition page of the target file at present is obtained, and then a preset resource name adjustment strategy is called to detect whether the current resource name meets the current resource name specification.
It can be understood that, when the target application is updated, the resource name specification of the target application may be adjusted according to the updated content of the application, and typically, in the updating of the function, the naming rule of the resource name may be changed so as to be adapted to the latest application function, application architecture, programming language, and the like of the target application; or, the updating of the UE system may also affect the naming rule of the resource name, especially for a UE system with a large user group, such as an IOS, if the system is updated, the application development company is often required to perform corresponding optimized updating on the application itself launched in the IOS market, so as to adapt to the updating of the UE system to the relevant components in the update content.
When the resource name which does not accord with the current resource name specification is detected, the resource name can be modified into the resource name which accords with the current resource name specification, and the correction of the resource name is completed.
The preset resource name adjustment strategy is adjusted along with the update of the application, and when the application is adjusted, the adjustment of the resource names of the historical resource files can be written, and specifically, the adjustment can be manually configured by application developers.
Correspondingly, when the resource name is corrected based on the resource name adjustment strategy, whether the resource name with the historical resource name specification exists or not can be firstly searched, the resource name with the historical resource name specification does not accord with the current resource name specification, and if the resource name with the historical resource name specification exists, obviously, the resource name needs to be corrected in the correction mechanism of the resource name provided by the application.
In the correction process, renaming of the resource name can be carried out, or old text content of the resource name item can be replaced, or reference of an old resource (a resource file before the resource name is corrected) can be removed, and a new resource (a resource file after the resource name is corrected) can be referred.
In another exemplary implementation manner, a regular expression may be configured in advance to obtain a resource name that needs to be detected and needs to be corrected, where the regular expression (regular expression) describes a pattern (pattern) for matching a character string, and may be used to check whether a string contains a certain substring, replace the matched substring, or extract a substring that meets a certain condition from a certain string.
Correspondingly, when searching, the preset regular expression can be used for traversing the resource names related in the configuration information file of the transition page, and positioning and extracting the current resource names of the resource files required by the transition page of the target application.
In the application, the normalized resource names of the resource name specification can also introduce a unified specific naming mode, so that when all files are searched under a specified directory, all resource names can be searched more accurately without omission on the premise of the unified naming rule, and a correction mechanism of the resource names is conveniently applied.
For example, the name format of the resource name in the present application may specifically include a resource name prefix, a resource feature and a version identifier, and the resource file is prefixed by the resource name prefix, the resource feature and the version identifier.
After the resource name is corrected, if the target application completes the test, the target application may be put on shelf.
Specifically, the application file of the target application after the correction (adjustment of the resource name) may be packaged to obtain an installation package file of the target application, and the installation package file is uploaded to an upper platform of the target application, so that the upper platform provides an application installation service or an application update service of the target application for a platform user based on the installation package file.
The installation package file can be obtained by packaging all application files of the target application, namely a complete installation package file; alternatively, the application file may be packaged for a part of the content that the target application needs to update, that is, an update package file.
The application mall may also be a system application mall of a UE brand operator, for example, an APP store of an IOS system, an APP store of a huacheng, and the like, and the UE may access the upper platform through an APP, a browser, or an applet to obtain an application installation service or an application update service provided by the platform from the upper platform.
Further, in this application, this packing processing specifically can be realized through Jenkins instrument, and Jenkins packing at every turn all can have a construction number, and this just can regard as the above-mentioned version sign to because the construction number increases progressively, still can guarantee that the version number is different when script is executed at every turn, thereby save the loaded down with trivial details flow of artifical record history version number, let the probability of makeing mistakes also reduce to the minimum.
For facilitating understanding of the above content, referring to fig. 2, a scene schematic diagram of the method for updating a configuration information file of the present application is shown, by correcting the resource name of the resource file of the transition page of the target application, it can be ensured that the transition page is normally loaded by the target application, the transition page can be normally displayed and the page function of the transition page can be realized, so that the target application can stably update and load the latest transition page.
The above is the introduction of the method for updating the configuration information file provided by the present application, and in order to better implement the method for updating the configuration information file provided by the present application, the present application also provides an apparatus for updating the configuration information file.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus for updating a configuration information file according to the present application, in which the apparatus 300 for updating a configuration information file specifically includes the following structure:
an obtaining unit 301, configured to obtain a configuration information file of a transition page of a target application, where the configuration information file is used to instruct a user equipment to load a resource file required by the transition page;
an extracting unit 302, configured to extract a current resource name of the target resource file indicated by the configuration information file;
a detecting unit 303, configured to detect whether the current resource name meets a resource name specification of the target application version, and if not, trigger the adjusting unit 304;
an adjusting unit 304, configured to adjust the current resource name to a resource name meeting the resource name specification.
In an exemplary implementation manner, the current resource name specifically includes a resource name currently used by the target resource file in the file storage address, a resource name used by the target resource file in the currently-involved resource usage relationship, or a resource name used in the currently-involved file mapping relationship of the target resource file.
In yet another exemplary implementation, the name format of the resource name as specified by the resource name specification includes a resource name prefix, a resource characteristic, and a version identification.
In another exemplary implementation manner, the extracting unit 302 is specifically configured to:
and traversing the resource name corresponding to the configuration information file through a preset regular expression, and positioning and extracting the current resource name.
In yet another exemplary implementation, the transition page includes a start page, a wake page, or a switch page corresponding to the target application.
In yet another exemplary implementation, the detecting unit 303 is further configured to:
and loading an application file of the target application to run the target application, and triggering to acquire the configuration information file from the application file when detecting that the transition page has resource file loading abnormity in the running process.
In yet another exemplary implementation, the apparatus further comprises an racking unit 305 for;
packaging the adjusted application file of the target application to obtain an installation package file of the target application, wherein the application file comprises an adjusted configuration information file;
and uploading the installation package file to an uploading platform of the target application, so that the uploading platform provides application installation service or application update service of the target application for a platform user based on the installation package file.
The present application further provides a processing device, referring to fig. 4, fig. 4 shows a schematic structural diagram of the processing device of the present application, specifically, the processing device of the present application may include a processor 401, a memory 402, and an input/output device 403, where the processor 401 is configured to implement, when executing a computer program stored in the memory 402, the steps of the method for updating the configuration information file in any embodiment corresponding to fig. 1 and fig. 2; alternatively, the processor 401 is configured to implement the functions of the units in the embodiment corresponding to fig. 3 when executing the computer program stored in the memory 402, and the memory 402 is configured to store the computer program required by the processor 401 to execute the method for updating the configuration information file in any embodiment corresponding to fig. 1 and fig. 2.
Illustratively, a computer program may be partitioned into one or more modules/units, which are stored in memory 402 and executed by processor 401 to accomplish the present application. One or more modules/units may be a series of computer program instruction segments capable of performing certain functions, the instruction segments being used to describe the execution of a computer program in a computer device.
The processing devices may include, but are not limited to, a processor 401, a memory 402, and input-output devices 403. Those skilled in the art will appreciate that the illustration is merely an example of a processing device and does not constitute a limitation of the processing device and may include more or less components than those illustrated, or combine certain components, or different components, for example, the processing device may also include a network access device, bus, etc. through which the processor 401, memory 402, input output device 403, and network access device, etc. are connected.
The Processor 401 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for the processing device and the various interfaces and lines connecting the various parts of the overall device.
The memory 402 may be used to store computer programs and/or modules, and the processor 401 may implement various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 402 and invoking data stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the processing apparatus, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The processor 401, when executing the computer program stored in the memory 402, may specifically implement the following functions:
acquiring a configuration information file of a transition page of a target application, wherein the configuration information file is used for indicating a target resource file required by loading the transition page by user equipment;
extracting a current resource name of the target resource file;
detecting whether the current resource name accords with the current resource name specification of the target application;
if not, the current resource name is adjusted to the resource name meeting the resource name specification.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described updating apparatus for configuration information files, the processing device and the corresponding units thereof may refer to the description of the updating method for configuration information files in any embodiment corresponding to fig. 1 and fig. 2, and are not described herein again in detail.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
Therefore, the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute steps in the method for updating a configuration information file in any embodiment corresponding to fig. 1 and fig. 2 in the present application, and specific operations may refer to descriptions of the method for updating a configuration information file in any embodiment corresponding to fig. 1 and fig. 2, which are not described herein again.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in the method for updating the configuration information file in any embodiment of the present application, such as that shown in fig. 1 and fig. 2, the beneficial effects that can be achieved by the method for updating the configuration information file in any embodiment of the present application, such as that shown in fig. 1 and fig. 2, can be achieved, which are described in detail in the foregoing description and are not repeated herein.
The above detailed description is provided for the updating method, apparatus, processing device and computer-readable storage medium of the configuration information file provided in the present application, and a specific example is applied in this document to explain the principle and implementation of the present application, and the description of the above embodiment is only used to help understanding the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for updating a configuration information file, the method comprising:
the method comprises the steps that a processing device obtains a configuration information file of a transition page of a target application, wherein the configuration information file is used for indicating a user device to load a target resource file required by the transition page;
the processing equipment extracts the current resource name of the target resource file;
the processing equipment detects whether the current resource name accords with the current resource name specification of the target application;
if not, the processing equipment adjusts the current resource name to the resource name meeting the resource name specification.
2. The method according to claim 1, wherein the current resource name specifically includes a resource name currently used by the target resource file in a file storage address, a resource name used by the target resource file in a currently involved resource usage relationship, or a resource name used in a currently involved file mapping relationship of the target resource file.
3. The method of claim 1, wherein the name format of the resource name specified by the resource name specification comprises a resource name prefix, a resource characteristic, and a version identification.
4. The method of claim 1, wherein the processing device extracting the current resource name of the target resource file comprises:
and the processing equipment traverses the resource name corresponding to the configuration information file through a preset regular expression, and positions and extracts the current resource name.
5. The method of claim 1, wherein the transition page comprises a start page, a wake page, or a switch page corresponding to the target application.
6. The method of claim 1, wherein before the processing device obtains the configuration information file of the transition page of the target application, the method further comprises:
and the processing equipment loads an application file of the target application to run the target application, and triggers to acquire the configuration information file from the application file when detecting that the transition page has resource file loading abnormity in the running process.
7. The method of claim 1, wherein after adjusting the current resource name to a resource name that conforms to the resource name specification, the method further comprises:
the processing equipment packages the adjusted application file of the target application to obtain an installation package file of the target application, wherein the application file comprises the adjusted configuration information file;
and the processing equipment uploads the installation package file to an uploading platform of the target application, so that the uploading platform provides application installation service or application update service of the target application for a platform user based on the installation package file.
8. An apparatus for updating a configuration information file, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a configuration information file of a transition page of a target application, and the configuration information file is used for indicating user equipment to load a resource file required by the transition page;
the extracting unit is used for extracting the current resource name of the target resource file indicated by the configuration information file;
the detection unit is used for detecting whether the current resource name accords with the resource name specification of the target application version, and if not, the adjustment unit is triggered;
the adjusting unit is configured to adjust the current resource name to a resource name meeting the resource name specification.
9. A processing device comprising a processor and a memory, a computer program being stored in the memory, the processor performing the method according to any of claims 1 to 7 when calling the computer program in the memory.
10. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method of any one of claims 1 to 7.
CN202011088296.9A 2020-10-13 2020-10-13 Configuration information file updating method and device and processing equipment Pending CN112306508A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011088296.9A CN112306508A (en) 2020-10-13 2020-10-13 Configuration information file updating method and device and processing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011088296.9A CN112306508A (en) 2020-10-13 2020-10-13 Configuration information file updating method and device and processing equipment

Publications (1)

Publication Number Publication Date
CN112306508A true CN112306508A (en) 2021-02-02

Family

ID=74489788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011088296.9A Pending CN112306508A (en) 2020-10-13 2020-10-13 Configuration information file updating method and device and processing equipment

Country Status (1)

Country Link
CN (1) CN112306508A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116308394A (en) * 2023-05-22 2023-06-23 工业富联(佛山)创新中心有限公司 Label association method, apparatus, electronic device and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140590A (en) * 2007-10-12 2008-03-12 中兴通讯股份有限公司 Checking method and system for resource file
CN105446874A (en) * 2014-09-25 2016-03-30 北京畅游天下网络技术有限公司 Method and device for detecting resource configuration file
CN106294164A (en) * 2016-08-15 2017-01-04 中国银行股份有限公司 A kind of code check method and device
CN108427580A (en) * 2018-01-08 2018-08-21 平安科技(深圳)有限公司 Configure detection method, storage medium and the smart machine repeated to name
CN108704312A (en) * 2018-04-26 2018-10-26 网易(杭州)网络有限公司 The test method and device of fine arts resource
CN109902248A (en) * 2019-02-25 2019-06-18 百度在线网络技术(北京)有限公司 Page display method, device, computer equipment and readable storage medium storing program for executing
CN110765379A (en) * 2019-09-20 2020-02-07 苏州达家迎信息技术有限公司 Method and device for loading resource file, computer equipment and storage medium
CN110795649A (en) * 2019-09-18 2020-02-14 北京你财富计算机科技有限公司 Target page display method, device and system and electronic equipment
CN111589154A (en) * 2020-05-20 2020-08-28 苏州沁游网络科技有限公司 Resource normalization detection and optimization method, device, equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140590A (en) * 2007-10-12 2008-03-12 中兴通讯股份有限公司 Checking method and system for resource file
CN105446874A (en) * 2014-09-25 2016-03-30 北京畅游天下网络技术有限公司 Method and device for detecting resource configuration file
CN106294164A (en) * 2016-08-15 2017-01-04 中国银行股份有限公司 A kind of code check method and device
CN108427580A (en) * 2018-01-08 2018-08-21 平安科技(深圳)有限公司 Configure detection method, storage medium and the smart machine repeated to name
CN108704312A (en) * 2018-04-26 2018-10-26 网易(杭州)网络有限公司 The test method and device of fine arts resource
CN109902248A (en) * 2019-02-25 2019-06-18 百度在线网络技术(北京)有限公司 Page display method, device, computer equipment and readable storage medium storing program for executing
CN110795649A (en) * 2019-09-18 2020-02-14 北京你财富计算机科技有限公司 Target page display method, device and system and electronic equipment
CN110765379A (en) * 2019-09-20 2020-02-07 苏州达家迎信息技术有限公司 Method and device for loading resource file, computer equipment and storage medium
CN111589154A (en) * 2020-05-20 2020-08-28 苏州沁游网络科技有限公司 Resource normalization detection and optimization method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
创客诚品: "《HTML5+CSS3从入门到精通 从前端开发、实战演练到网页设计布局一本就够》", 30 November 2017 *
谭东: "《Android开发进阶实战》", 31 May 2020 *
陈秀兰: "Drawable 资源", 《JAVA语言与移动互联网技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116308394A (en) * 2023-05-22 2023-06-23 工业富联(佛山)创新中心有限公司 Label association method, apparatus, electronic device and computer readable storage medium
CN116308394B (en) * 2023-05-22 2023-08-04 工业富联(佛山)创新中心有限公司 Label association method, apparatus, electronic device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11868785B2 (en) Application program page processing method and device
US9602347B2 (en) Method, system and program for browser to switch IE kernel
US9367403B2 (en) Terminal and application restoring method
CN104951326B (en) Webpage access method and device
CN105302811B (en) Browser page skipping method and device
US9258357B2 (en) Method for accessing plural cloud storages, electronic apparatus and non-transitory computer readable medium
CN105740425A (en) File storage method and apparatus
CN102968338A (en) Method and device for classifying application program of electronic equipment and electronic equipment
CN106648685B (en) Intelligent terminal system application processing method and device and intelligent terminal
WO2020063780A1 (en) Application layout restoration method and apparatus, device and storage medium
CN106371819B (en) Parameter acquisition method and device and electronic equipment
JP2019520625A (en) Human computer interaction method and device thereof
CN110795192A (en) Language switching method and device and terminal equipment
CN102073514A (en) Method for updating basic input/output system
US9411602B2 (en) Techniques for booting an information processing system
CN108062226A (en) A kind of Android system application pre-installation method and terminal
CN111580876A (en) Application program control method, system and terminal
CN112306508A (en) Configuration information file updating method and device and processing equipment
CN109408471B (en) Compressed packet decompression method and device based on matching tree and storage medium
CN111274420B (en) Data processing method, device, electronic equipment and storage medium
CN111400091B (en) Factory setting restoration method, factory setting restoration device and mobile terminal
CN108549557A (en) Using storing method, terminal and storage medium
CN115495161B (en) BIOS option modification validation method and device and storage medium
CN108829455A (en) A kind of device identification acquisition methods, device and equipment
CN108595292A (en) A kind of optimization method of system, mobile terminal and computer storage media

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210202