CN110659055B - Installation file application program updating method, updating detection method and device - Google Patents

Installation file application program updating method, updating detection method and device Download PDF

Info

Publication number
CN110659055B
CN110659055B CN201911015838.7A CN201911015838A CN110659055B CN 110659055 B CN110659055 B CN 110659055B CN 201911015838 A CN201911015838 A CN 201911015838A CN 110659055 B CN110659055 B CN 110659055B
Authority
CN
China
Prior art keywords
file
application program
installation file
installation
module
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
CN201911015838.7A
Other languages
Chinese (zh)
Other versions
CN110659055A (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.)
Tunnel Tang Technology Co ltd
Original Assignee
Tunnel Tang 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 Tunnel Tang Technology Co ltd filed Critical Tunnel Tang Technology Co ltd
Priority to CN201911015838.7A priority Critical patent/CN110659055B/en
Publication of CN110659055A publication Critical patent/CN110659055A/en
Application granted granted Critical
Publication of CN110659055B publication Critical patent/CN110659055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an updating method of an installation file application program, which comprises the following steps: unpacking the application program template of the installation file stored in the self; modifying the parameters of the installation files; deleting an original signature fingerprint file in an installation file application program template; linking a dynamic link library to an executable binary file in an installation file application program template; making a new signature fingerprint file; and packaging the template content of the current installation file application program and the new signature fingerprint file into an installation file application program.

Description

Installation file application program updating method, updating detection method and device
Technical Field
The invention relates to the field of software, in particular to an update method, an update detection method and an update detection device for an installation file application program.
Background
Under the condition that a lot of project products are available, management of the project products becomes the most troubling thing of operators, different configurations are required to be carried out according to different products in each version updating, the versions are uploaded to a plurality of platforms, a large amount of data are required to be filled in each uploading, the uploading error is required to be confirmed every time, and the operation is troublesome.
Disclosure of Invention
The invention aims to provide an installation file application program updating method, an update detection method and an update detection device, which can update an installation file more accurately and quickly.
Specifically, the invention is realized by the following technical scheme:
an update method for an application program of an installation file, which is applied to an application generation signature server, and comprises the following steps:
s1: unpacking the application program template of the installation file stored in the self;
s2: modifying the parameters of the installation files;
s3: deleting an original signature fingerprint file in the installation file application program template;
s4: linking a dynamic link library to an executable binary file in an installation file application program template;
s5: making a new signature fingerprint file;
s6: and packaging the template content of the current installation file application program and the new signature fingerprint file into an installation file application program.
Preferably, the method further comprises:
s7: and distributing the installation file application program.
Preferably, the S2 includes:
s21: acquiring installation file parameters;
s22: and modifying the installation file parameters into an installation file application program template.
Preferably, the S5 includes:
s51: acquiring a certificate private key from a developer certificate stored in the developer private key;
s52: and digitally signing each file in the installation file application program template one by adopting the certificate private key to generate a new signature fingerprint file.
An update detection method for an installation file application program is applied to a client, and comprises the following steps:
s1': requesting an application signature fingerprint file from a version management server;
s2': acquiring a corresponding application signature fingerprint file sent by a version management server;
s3': comparing whether the content of the current signature fingerprint file applied by the user and the content of the corresponding application signature fingerprint file acquired from the version management server are the same or not, if so, ending, otherwise, executing S4';
s4': and prompting a user to update the corresponding application or downloading an installation file application program of the corresponding application from the version management server.
An installation file application update apparatus for application generation signature servers, the apparatus comprising:
the unpacking module is used for unpacking the application program template of the installation file stored in the unpacking module;
the parameter modifying module is used for modifying the parameters of the installation files;
the deleting module is used for deleting the original signature fingerprint file in the installation file application program template;
the link module is used for linking the dynamic link library to the executable binary file in the installation file application program template;
the new signature module is used for making a new signature fingerprint file;
and the packaging module is used for packaging the template content of the current installation file application program and the new signature fingerprint file into the installation file application program.
Preferably, the apparatus further comprises:
and the distribution module is used for distributing the installation file application program.
Preferably, the parameter modification module includes:
the parameter acquisition submodule is used for acquiring the parameters of the installation files;
and the modification writing sub-module is used for modifying the installation file parameters into an installation file application program template.
Preferably, the new signature module includes:
the certificate acquisition sub-module is used for acquiring a certificate private key from a developer certificate stored in the certificate acquisition sub-module;
and the signature operation submodule is used for digitally signing each file in the installation file application program template one by adopting the certificate private key to generate a new signature fingerprint file.
An installation file application update detection apparatus, applied to a client, the apparatus comprising:
the request module is used for requesting an application signature fingerprint file from the version management server;
the fingerprint file acquisition module is used for acquiring a corresponding application signature fingerprint file sent by the version management server;
the comparison module is used for comparing whether the content of the current signature fingerprint file applied by the comparison module is the same as the content of the corresponding application signature fingerprint file acquired from the version management server;
a download prompting module for prompting the user to update the corresponding application or downloading the installation file application program of the corresponding application from the version management server
The beneficial effects of the invention are: and automatically filling required data, and automatically packaging, uploading and distributing the data.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of an update method for an installation file application program according to the present invention;
FIG. 2 is a schematic view of a detailed process of S2 in FIG. 1;
FIG. 3 is a schematic view of a detailed process of S5 in FIG. 1;
FIG. 4 is a schematic flow chart illustrating a method for detecting update of an installation file application according to the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for installing a file application update according to the present invention;
fig. 6 is a schematic structural diagram of an update detection apparatus for installing a file application according to the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present invention. The word "if," as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination," depending on the context.
The present invention will be described in detail below by way of examples.
An update method of an installation file application program, applied to an application generation signature server, as shown in fig. 1, includes:
s1: and unpacking the application program template of the installation file stored in the self.
Specifically, the installation file application template is an installation file application module preset in the application generation signature server, and various subfiles required by the installation file application are arranged in the installation file application template and can be modified by the application generation signature server. Unpacking, namely decompressing the installation file application template, so that all subfiles in the installation file application template are exposed, and generating the modification of the content of the subfiles by the signature server.
S2: and modifying the parameters of the installation file.
Specifically, as shown in fig. 2, the S2 includes:
s21: and acquiring installation file parameters.
Specifically, the installation file parameters include installation file parameters such as App Name, logo, appkey, appscript, bundle id, and the like. Further, the application generation signature server may obtain installation file parameters such as App Name, logo, appkey, appscript, bundle id, and the like from a database, where the installation file parameters may be manually input into the database, or may be generated by using another method and then imported into the database.
S22: and modifying the installation file parameters into an installation file application program template.
Specifically, the application signature generation server modifies a specific field in the info.plist file in the installation file application template, for example, modifies a character corresponding to the App Name to a field corresponding to a software application Name in the info.plist file.
S3: and deleting the original signature fingerprint file in the installation file application program template.
The signature fingerprint file is an identification file in the current installation file application program template, and an installation file of one version has a unique signature fingerprint file.
S4: and linking the dynamic link library to the executable binary file in the installation file application program template.
Specifically, an ld tool is used for linking a dynamic link library to the executable binary file in the installation file application program template. ld is a link program which is used for linking a plurality of assembled binary files into an executable binary file, namely, an ld tool is used for linking a dynamic link library of the executable binary file to obtain the executable binary file.
S5: and making a new signature fingerprint file.
Specifically, as shown in fig. 3, the S5 includes:
s51: and obtaining the private key of the certificate from the developer certificate stored in the private key.
S52: and digitally signing each file in the installation file application program template one by adopting the certificate private key to generate a new signature fingerprint file.
For example, after the aajsfiles/bundle/aahighchartslib.js file is signed by a certificate private key, the content of the generated new signature fingerprint file is as follows: mlArYUProynsmUmrSdlFPEyP + KE =.
Specifically, the digital signature of the file by using the certificate private key is the prior art, and the description of the invention is omitted.
S6: and packaging the template content of the current installation file application program and the new signature fingerprint file into an installation file application program.
Further, the method for updating the installation file application program may further include:
s7: and distributing the installation file application program.
Specifically, the S7 includes: and generating a distribution two-dimensional code linked with the installation file application program, or synchronizing the installation file application program to a version management server. The version management server is provided specifically for storing the latest version of the installation file application.
By adopting the method, the installation file application program of each software application can be automatically updated and distributed, time and labor are saved, and repeated manual labor is avoided.
Further, the present invention also provides a method for detecting update of an application program of an installation file, which is applied to a client, and as shown in fig. 4, the method includes:
s1': an application signature fingerprint file is requested from the version management server.
Specifically, the application signature fingerprint file may be requested from the version management server when the client is started, and the application signature fingerprint file is defaulted to be the signature fingerprint file of the new version application.
And S2': and acquiring a corresponding application signature fingerprint file sent by the version management server.
S3': and comparing whether the content of the current signature fingerprint file of the self application and the content of the corresponding application signature fingerprint file acquired from the version management server are the same or not, if so, ending, otherwise, executing S4'.
And S4': and prompting a user to update the corresponding application or downloading an installation file application program of the corresponding application from the version management server.
By adopting the method, the client can automatically identify whether the currently installed software application is the latest version, and prompt or update the software application in time when the currently installed software application is not the latest version.
Further, the present invention provides an installation file application program updating apparatus, which is applied to an application generation signature server, and as shown in fig. 5, the apparatus includes:
and the unpacking module is used for unpacking the application program template of the installation file stored in the unpacking module.
And the parameter modification module is used for modifying the parameters of the installation files.
And the deleting module is used for deleting the original signature fingerprint file in the installation file application program template.
And the link module is used for linking the dynamic link library to the executable binary file in the installation file application program template.
And the new signature module is used for making a new signature fingerprint file.
And the packaging module is used for packaging the template content of the current installation file application program and the new signature fingerprint file into the installation file application program.
Further, the installation file application updating apparatus may further include:
and the distribution module is used for distributing the installation file application program.
Specifically, the parameter modification module includes:
and the parameter acquisition submodule is used for acquiring the parameters of the installation files.
And the modification writing submodule is used for modifying the installation file parameters into an installation file application program template.
Specifically, the new signature module includes:
and the certificate acquisition sub-module is used for acquiring the certificate private key from the developer certificate stored in the certificate acquisition sub-module.
And the signature operation submodule is used for digitally signing each file in the installation file application program template one by adopting the certificate private key to generate a new signature fingerprint file.
Further, the present invention also provides an update detection apparatus for an application program of an installation file, which is applied to a client, and as shown in fig. 6, the apparatus includes:
and the request module is used for requesting the application signature fingerprint file from the version management server.
And the fingerprint file acquisition module is used for acquiring the corresponding application signature fingerprint file sent by the version management server.
And the comparison module is used for comparing whether the content of the current signature fingerprint file applied by the self is the same as the content of the corresponding application signature fingerprint file acquired from the version management server.
And the prompt downloading module is used for prompting a user to update the corresponding application or downloading an installation file application program of the corresponding application from the version management server.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention. It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and reference may be made to the partial description of the method embodiment for relevant points.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.

Claims (6)

1. An update method for an application program of an installation file, which is applied to an application generation signature server, and comprises the following steps:
s1: unpacking an installation file application program template stored in the self;
s2: modifying the parameters of the installation files;
s3: deleting an original signature fingerprint file in the installation file application program template;
s4: linking a dynamic link library to an executable binary file in an installation file application program template;
s5: making a new signature fingerprint file;
s6: packaging the template content of the current installation file application program and the new signature fingerprint file into an installation file application program;
the S2 comprises the following steps:
s21: acquiring installation file parameters including App Name, logo, appkey, appscreen and bundle id;
s22: and modifying a specific field in the info.plist file in the installation file application program template according to the characters corresponding to the installation file parameters.
2. The method of claim 1, further comprising:
s7: and distributing the installation file application program.
3. The method according to any one of claims 1 to 2, wherein S5 comprises:
s51: acquiring a certificate private key from a developer certificate stored in the developer private key;
s52: and digitally signing each file in the installation file application program template one by adopting the certificate private key to generate a new signature fingerprint file.
4. An installation file application program updating device applied to an application generation signature server, the device comprising:
the unpacking module is used for unpacking the application program template of the installation file stored in the unpacking module;
the parameter modification module is used for modifying the parameters of the installation files;
the deleting module is used for deleting the original signature fingerprint file in the installation file application program template;
the link module is used for linking the dynamic link library to the executable binary file in the installation file application program template;
the new signature module is used for making a new signature fingerprint file;
the packaging module is used for packaging the template content of the current installation file application program and the new signature fingerprint file into an installation file application program;
the parameter modification module comprises:
the parameter acquisition submodule is used for acquiring installation file parameters, and the installation file parameters comprise App Name, logo, appkey, appsecret and bundle id;
and the modification writing sub-module is used for modifying specific fields in the info.
5. The apparatus of claim 4, further comprising:
and the distribution module is used for distributing the installation file application program.
6. The apparatus of any of claims 4-5, wherein the new signature module comprises:
the certificate acquisition sub-module is used for acquiring a certificate private key from a developer certificate stored in the certificate acquisition sub-module;
and the signature operation submodule is used for digitally signing each file in the installation file application program template one by adopting the certificate private key to generate a new signature fingerprint file.
CN201911015838.7A 2019-10-24 2019-10-24 Installation file application program updating method, updating detection method and device Active CN110659055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911015838.7A CN110659055B (en) 2019-10-24 2019-10-24 Installation file application program updating method, updating detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911015838.7A CN110659055B (en) 2019-10-24 2019-10-24 Installation file application program updating method, updating detection method and device

Publications (2)

Publication Number Publication Date
CN110659055A CN110659055A (en) 2020-01-07
CN110659055B true CN110659055B (en) 2023-03-14

Family

ID=69041608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911015838.7A Active CN110659055B (en) 2019-10-24 2019-10-24 Installation file application program updating method, updating detection method and device

Country Status (1)

Country Link
CN (1) CN110659055B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7089552B2 (en) * 2002-08-29 2006-08-08 Sun Microsystems, Inc. System and method for verifying installed software
CN102053853A (en) * 2010-12-30 2011-05-11 北京像素软件科技股份有限公司 Version updating method of online game
US9858094B2 (en) * 2015-11-10 2018-01-02 Samsung Electronics Co., Ltd. Monitoring and actuation of view controller parameters to reach deep states without manual developer intervention
CN105574369A (en) * 2015-12-14 2016-05-11 网易(杭州)网络有限公司 Method, device and system for re-signing application program
CN106095500A (en) * 2016-06-08 2016-11-09 江苏中威科技软件系统有限公司 A kind of method and system of automatic software updating
CN106201522A (en) * 2016-07-12 2016-12-07 杭州华三通信技术有限公司 A kind of packaging method and device
CN109189459B (en) * 2018-11-16 2020-03-03 北京微播视界科技有限公司 Application program updating method and device, electronic equipment, server and storage medium
CN110321669A (en) * 2019-06-04 2019-10-11 平安科技(深圳)有限公司 Method, apparatus, equipment and the storage medium that application program is signed again

Also Published As

Publication number Publication date
CN110659055A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
US8510762B1 (en) Generate custom client library samples based on a machine readable API description
CN104346167A (en) Method and device for generating application channel package
CN105049287A (en) Log processing method and log processing devices
CN109445827B (en) Game updating method and device, electronic equipment and storage medium
US9239716B1 (en) Usage-based program slicing
CN109766114B (en) Processing method and device for patch file
CN106406943A (en) Customized upgrading method and system for clients of different versions
CN108345467B (en) Version tree file updating method and device
CN105573734A (en) Method and device for providing SDK file
WO2016041499A1 (en) Application downloading method and mobile terminal
CN112702195A (en) Gateway configuration method, electronic device and computer readable storage medium
CN108694049B (en) Method and equipment for updating software
CN110659055B (en) Installation file application program updating method, updating detection method and device
CN111984279A (en) Application software upgrading method, system and storage medium
CN113515269B (en) Application package processing method and device, computer equipment and storage medium
CN113436699A (en) Method, system, electronic device and storage medium for generating new corona nucleic acid detection report
CN114237736A (en) Page resource loading method, system, device, computer equipment and storage medium
CN114115856A (en) Code multiplexing method, device, storage medium and computer equipment
CN108595924B (en) Business authority management method and device, computer equipment and storage medium
CN109241515B (en) Method and device for generating report file
CN106681914B (en) Television picture quality debugging method and device
CN113535221A (en) Method and device for managing application version
CN110825406A (en) Software upgrading method and related equipment
CN111679966A (en) Gray scale distribution method, device, server and storage medium
CN111045947A (en) Test environment construction method and device and related equipment thereof

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