CN113722704A - Installation package detection method, device, equipment and medium - Google Patents

Installation package detection method, device, equipment and medium Download PDF

Info

Publication number
CN113722704A
CN113722704A CN202110915450.3A CN202110915450A CN113722704A CN 113722704 A CN113722704 A CN 113722704A CN 202110915450 A CN202110915450 A CN 202110915450A CN 113722704 A CN113722704 A CN 113722704A
Authority
CN
China
Prior art keywords
installation package
installation
target
packages
candidate
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
CN202110915450.3A
Other languages
Chinese (zh)
Inventor
梁敏怡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN202110915450.3A priority Critical patent/CN113722704A/en
Publication of CN113722704A publication Critical patent/CN113722704A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/51Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
    • 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/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the disclosure relates to a detection method, a device, equipment and a medium for an installation package, wherein the method comprises the following steps: acquiring a plurality of installation package identifications associated with a target project, and determining a plurality of candidate installation packages corresponding to the installation package identifications in a preset project construction tool; determining a plurality of target installation packages meeting preset conditions in the plurality of candidate installation packages; and downloading a plurality of target installation packages, and detecting the plurality of target installation packages. According to the embodiment of the invention, all installation packages of related projects are automatically acquired in the project construction tool, so that the access and query of installation packages to a plurality of remote warehouses are avoided, and the detection efficiency of the installation packages is improved.

Description

Installation package detection method, device, equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for detecting an installation package.
Background
Since it is common to develop a corresponding executable file or the like in the form of an installation package in the project development, it is necessary to acquire and detect the installation package of a project in order to perform performability detection or the like on the project in the project development stage.
In the related art, in order to reduce the occupation of the installation package on the local memory resources, the installation package is deployed in a plurality of remote warehouses, so that in order to obtain the installation package required by the operation project for detection, the plurality of remote warehouses need to be accessed, and the plurality of remote warehouses need to be queried to obtain the corresponding installation package.
However, accessing a plurality of remote warehouses and acquiring the installation package requires operations such as communication and verification on the plurality of remote warehouses, which reduces the efficiency of acquiring the installation package, thereby affecting the detection efficiency of the installation package.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the present disclosure provides a method, an apparatus, a device, and a medium for detecting an installation package.
In a first aspect, an embodiment of the present disclosure provides a method for detecting an installation package, where the method includes:
acquiring a plurality of installation package identifications associated with a target project, and determining a plurality of candidate installation packages corresponding to the installation package identifications in a preset project construction tool;
determining a plurality of target installation packages meeting preset conditions in the plurality of candidate installation packages;
and downloading the target installation packages, and detecting the target installation packages.
In an optional implementation manner, the obtaining multiple installation package identifiers associated with the target project includes:
acquiring all project modules of the target project;
acquiring installation package dependency lists corresponding to all the project modules;
and acquiring the plurality of associated installation package identifications according to the installation package dependency list.
In an optional implementation manner, the obtaining multiple installation package identifiers associated with the target project includes:
acquiring a project identifier of the target project;
and inquiring a preset corresponding relation according to the project identifier to obtain the associated installation package identifiers.
In an optional embodiment, the determining a plurality of target installation packages satisfying a preset condition in the plurality of candidate installation packages includes:
determining an installation package identifier and an installation package version number of each candidate installation package;
if the installation package identification of the candidate installation package is different from the installation package identifications of all other candidate installation packages, determining the corresponding candidate installation package as a target installation package meeting the preset condition;
and if the installation package identifier of the candidate installation package is the same as the installation package identifier of at least one candidate installation package in all the other candidate installation packages, screening out the target installation package meeting the preset condition according to the installation package version number corresponding to the same installation package identifier.
In an optional implementation manner, the screening out the target installation package meeting the preset condition according to the installation package version number corresponding to the same installation package identifier includes:
screening out the latest installation package version number in the installation package version numbers corresponding to the same installation package identification;
and determining the candidate installation package corresponding to the latest installation package version number as a target installation package meeting the preset condition.
In an optional implementation manner, after determining, in the preset project building tool, a plurality of candidate installation packages corresponding to the plurality of installation package identifiers, the method further includes:
determining a plurality of pieces of storage path information of the plurality of candidate installation packages in the preset project construction tool;
and caching the plurality of storage path information at preset storage positions.
In an optional embodiment, the downloading the plurality of target installation packages includes:
determining a plurality of target storage path information corresponding to the plurality of target installation packages in the plurality of storage path information;
and downloading the target installation packages according to the target storage path information.
In a second aspect, an embodiment of the present disclosure provides an apparatus for detecting an installation package, where the apparatus includes:
the acquisition module is used for acquiring a plurality of installation package identifications associated with a target project and determining a plurality of candidate installation packages corresponding to the installation package identifications in a preset project construction tool;
the first determining module is used for determining a plurality of target installation packages which meet preset conditions in the plurality of candidate installation packages;
and the detection module is used for downloading the target installation packages and detecting the target installation packages.
In a third aspect, the present disclosure provides a computer-readable storage medium having stored therein instructions that, when run on a terminal device, cause the terminal device to implement the above-mentioned method.
In a fourth aspect, the present disclosure provides an electronic device comprising: a processor; a memory for storing the processor-executable instructions; the processor is used for reading the executable instructions from the memory and executing the instructions to realize the method.
In a fifth aspect, the present disclosure provides a computer program product comprising computer programs/instructions which, when executed by a processor, implement the method described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has at least the following advantages:
according to the embodiment of the invention, all installation packages of related projects are automatically acquired in the project construction tool, so that the access and query of installation packages to a plurality of remote warehouses are avoided, and the detection efficiency of the installation packages is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for detecting an installation package according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another installation package detection method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a detection apparatus for an installation package according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Fig. 1 is a flowchart illustrating a method for detecting an installation package according to an embodiment of the present disclosure, where the method may be performed by an apparatus for detecting an installation package, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 1, the method includes:
step 101, obtaining a plurality of installation package identifiers associated with a target project, and determining a plurality of candidate installation packages corresponding to the installation package identifiers in a preset project construction tool.
In this embodiment, the installation package refers to a set of Development tools used in a process of developing a project, and in an optional implementation, the installation package is a Software Development Kit (SDK), and the project needs support of the corresponding installation package during operation. In addition, the installation package identifier may be information that can uniquely calibrate the installation package, such as an installation package file name, an installation package file storage path, a hash value corresponding to the installation package, and the like.
In this embodiment, in order to perform performability detection and the like on a target item, a plurality of installation package identifiers associated with the target item need to be obtained, so as to obtain a corresponding installation package according to the installation package identifiers. It should be noted that there are various methods for acquiring the installation package identifier, which can be selected according to an application scenario, and this embodiment is not limited to this, and the following examples are illustrated:
example one: in this example, the target project is composed of a plurality of project modules, and the installation package identifier associated with the target project can be determined by obtaining the installation package identifier associated with each project module, which specifically includes:
step a, all project modules of a target project are obtained.
And b, acquiring installation package dependency lists corresponding to all the project modules.
In actual implementation, the target item includes a plurality of item modules, for example, an automatic distribution item includes an in-warehouse module, an out-warehouse module, and the like, and therefore, in this embodiment, the item modules are used as a granularity to obtain corresponding installation package identifiers, in this example, the installation package identifiers are recorded in an installation package dependency list corresponding to the item modules, in an optional implementation, an android dependencies command is used to obtain the installation package dependency list of each item module, and then, in order to obtain the installation identifier corresponding to the target item, all the item modules in the target item are obtained, and then, the installation package dependency list corresponding to each item module is obtained. The installation package dependency list comprises installation package identifiers corresponding to the project modules.
And c, acquiring a plurality of associated installation package identifications according to the installation package dependency list.
After the installation package dependency list corresponding to each project module is obtained, analyzing each installation package dependency list corresponding to each project module to obtain a plurality of corresponding installation package identifications, wherein the installation package identifications are installation package identifications associated with the target project.
In this example, by splitting the target project into project modules, the installation package dependency list based on the project modules can quickly acquire the associated installation package identifiers, thereby improving the traversability of acquiring the installation package identifiers and ensuring the integrity of acquiring the installation package identifiers.
In this example, a corresponding installation identifier may be determined by a project identifier, where the project identifier may be information that uniquely identifies a project, such as a project name and a project number, and specifically includes:
step a, acquiring the item identification of the target item.
And b, inquiring a preset corresponding relation according to the project identifiers to obtain a plurality of associated installation package identifiers.
In this example, a database may be preset, where a corresponding relationship between the project identifier and the installation package identifier is stored in the database, and a query operation is performed on the preset database according to the project identifier to obtain a plurality of installation package identifiers associated with the project identifier.
Further, in this embodiment, a project building tool is used to build a project and manage an installation package that a project runtime depends on, and there are a variety of project building tools, which can be selected according to an application scenario, and this embodiment is not limited, for example: a gradle. In this embodiment, after obtaining a plurality of installation package identifiers associated with a target project, a plurality of corresponding candidate installation packages are determined in a project building tool according to the plurality of installation package identifiers, so that access to a plurality of remote databases is avoided, and efficiency of obtaining the candidate installation packages is improved.
In an embodiment of the present disclosure, if the installation package identifier corresponds to an installation package storage path in the project building tool, the corresponding candidate installation package may be directly obtained in the corresponding project building tool according to the installation package storage path, where a source code of the target project is obtained, where the source code includes a storage path for installation of each installation package in the corresponding project building tool.
In an embodiment of the present disclosure, after determining a plurality of candidate installation packages, considering that if all the candidate installation packages are downloaded, the memory pressure is large, and therefore, in order to reduce the occupation pressure on the memory, in this embodiment, instead of downloading the candidate installation packages, a plurality of storage path information of the candidate installation packages in a preset project building tool is determined, and the plurality of storage path information is cached in a preset storage location, thereby only caching the storage path information, greatly reducing the occupation rate on the memory, and the storage path information and the corresponding candidate installation package uniquely correspond to each other, facilitating the subsequent downloading of the relevant candidate installation package according to the storage path information, wherein the mentioned preset storage location may be in the project building tool to further reduce the local storage pressure, and the preset storage location may also be local, to further improve the efficiency of downloading the relevant candidate packages.
Step 102, determining a plurality of target installation packages meeting preset conditions in the plurality of candidate installation packages.
The candidate installation packages may include versions different from the same installation package, or may include some testing installation packages that clearly indicate that the test installation packages are not needed, and therefore, in order to ensure the reliability of the test results of the installation packages, it is necessary to determine a plurality of target installation packages that satisfy the preset conditions among the plurality of candidate installation packages.
And 103, downloading a plurality of target installation packages, and detecting the plurality of target installation packages.
In this embodiment, after the target installation package is determined, the target installation package is downloaded in order to support detection of the target item.
In some application scenarios, determining the multiple candidate installations includes directly downloading and storing the corresponding candidate installation packages in a preset storage location, for example, in a project building tool, and therefore, the multiple target installation packages need to be further downloaded, and if the multiple candidate installation packages have already been downloaded locally, the corresponding target installation packages may be directly screened locally.
In other possible scenarios, when the storage path information of multiple candidate packages is cached in a preset storage location, in order to download the target installation package, the storage location is accessed to obtain multiple pieces of storage path information, the storage path information includes storage paths of the multiple candidate installation packages, and the storage path information is searched according to the target installation package and the multiple target installation packages are downloaded. For example, if the project construction tool is a gradle, and the storage path corresponding to the storage path information is a gradle cache directory, the storage path cache directory (-/. gradle/caches/modules-2/files-2.1) is searched according to the name of the target installation package, and the corresponding target installation package is downloaded. It should be noted that, because the installation package with the same installation package version number may be issued multiple times, more than one installation package with the same installation package version number is searched, and after the target installation package is acquired, the cache of the target installation package needs to be cleared, so as to avoid the target installation package with the non-latest version acquired next time, thereby ensuring that the result acquired next time is accurate.
In addition, after downloading a plurality of target installation packages, the downloaded target installation packages need to be detected, where the detection is used to determine that the currently acquired target installation package can support the operation of the target program, and it can be understood that there are various specific detection methods, which are not limited in this embodiment, for example: detecting the sub-file types contained in the target installation package, and determining that the necessary file types are not lacked in the target installation package; or, the operation sequence of the target installation package is determined according to the preset installation package operation dependency relationship of the target project, the target installation package is operated based on the operation sequence, the function detection of the target installation package is performed based on whether the operation result of the target installation package is consistent with the preset operation result, and of course, the performance detection of the target installation package can also be realized by comparing the time consumption of the operation result of the target installation package with the pre-calibrated standard time consumption.
In summary, according to the detection method for the installation packages in the embodiment of the disclosure, all installation packages of related projects are automatically obtained in the project construction tool, so that access and query of installation packages to a plurality of remote warehouses are avoided, and thus the detection efficiency of the installation packages is improved.
Based on the above embodiment, in different application scenarios, the manner of determining the target installation packages meeting the preset condition in the candidate installation packages is different, and the following is exemplified:
in an embodiment of the present disclosure, as shown in fig. 2, determining a plurality of target installation packages satisfying a preset condition from a plurality of candidate installation packages includes:
step 201, determining the installation package identifier and the installation package version number of each candidate installation package.
Step 202, if the installation package identifiers of the candidate installation packages are different from the installation package identifiers of all other candidate installation packages, determining the corresponding candidate installation packages as target installation packages meeting preset conditions.
In order to screen the candidate installation packages, the installation package identification and the installation package version number of each candidate installation package are determined.
If the installation package identification of the candidate installation package is different from the installation package identifications of all other candidate installation packages, the candidate installation package is different from the other candidate installation packages, namely the other candidate installation packages can not substitute the candidate installation package to provide support for the operation of the target project, and therefore the candidate installation package is determined to be the target installation package meeting the preset condition.
And 203, if the installation package identifier of the candidate installation package is the same as the installation package identifier of at least one candidate installation package in all other candidate installation packages, screening out the target installation package meeting the preset condition according to the installation package version number corresponding to the same installation package identifier.
If the installation package identifier of the candidate installation package is the same as the installation package identifier of at least one candidate installation package of all other candidate installation packages, it is indicated that the candidate installation package and the other candidate installation packages correspond to the same executable file, and in order to reduce the storage space occupied by downloading the installation package, a target installation package is screened from the candidate installation packages of the same installation package identifier according to the installation package version number, the screening method may be set according to an application scenario, which is not limited in this embodiment, and examples are as follows:
example one: in order to ensure the stability of the target installation package, if one of the installation package version numbers corresponding to the same installation package identifier is a test version number, determining a candidate installation package corresponding to the other installation package version number as the target installation package meeting preset conditions.
Example two: in order to make the version of the target installation package newer, the latest installation package version number in the installation package version numbers corresponding to the same installation package identification is screened out, and the candidate installation package corresponding to the latest installation package version number is determined to be the target installation package meeting the preset condition.
In an embodiment of the present disclosure, since the installation package of the target project belongs to an executable file and the like, and the corresponding file type is exe and the like, in this embodiment, the file type of each candidate installation package is obtained, and the installation package of which the file type belongs to the preset file type corresponding to the target project is determined to be the target installation package and the like.
In summary, according to the detection method for the installation package in the embodiment of the disclosure, the target installation package is determined according to the installation package identifier, so that the waste of the storage space caused by the repetition of the target installation package is avoided, further, the target installation package is determined according to the installation package version number, and the target installation package suitable for the application scenario can be selected from the candidate installation packages with the same installation package identifier, so that on the basis of ensuring the normal operation of the target project, the waste of the storage space caused by the repetition of the target installation package is avoided, and meanwhile, the efficiency of obtaining the target installation package is improved.
Fig. 3 is a schematic structural diagram of an installation package detection apparatus provided in an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 3, the apparatus 300 includes:
an obtaining module 301, configured to obtain multiple installation package identifiers associated with a target project, and determine multiple candidate installation packages corresponding to the multiple installation package identifiers in a preset project building tool;
a first determining module 302, configured to determine a plurality of target installation packages that satisfy a preset condition in the plurality of candidate installation packages;
the detecting module 303 is configured to download the target installation packages, and perform detection processing on the target installation packages.
Optionally, the obtaining module 301 is configured to:
acquiring all project modules of the target project;
acquiring installation package dependency lists corresponding to all the project modules;
and acquiring the plurality of associated installation package identifications according to the installation package dependency list.
Optionally, the obtaining module 301 is configured to:
acquiring a project identifier of the target project;
and inquiring a preset corresponding relation according to the project identifier to obtain the associated installation package identifiers.
Optionally, the first determining module 302 includes:
the first determining unit is used for determining the installation package identifier and the installation package version number of each candidate installation package;
a second determining unit, configured to determine, if the installation package identifier of the candidate installation package is different from the installation package identifiers of all other candidate installation packages, that the corresponding candidate installation package is the target installation package meeting the preset condition;
and the screening unit is used for screening the target installation package meeting the preset condition according to the installation package version number corresponding to the same installation package identifier if the installation package identifier of the candidate installation package is the same as the installation package identifier of at least one candidate installation package in all other candidate installation packages.
Optionally, the screening unit is configured to:
screening out the latest installation package version number in the installation package version numbers corresponding to the same installation package identification;
and determining the candidate installation package corresponding to the latest installation package version number as a target installation package meeting the preset condition.
Optionally, in the apparatus, the method further includes:
the second determining module is used for determining a plurality of pieces of storage path information of the plurality of candidate installation packages in the preset project construction tool;
and the cache module is used for caching the information of the plurality of storage paths at a preset storage position.
Optionally, the detecting module 303 is configured to:
determining a plurality of target storage path information corresponding to the plurality of target installation packages in the plurality of storage path information;
and downloading the target installation packages according to the target storage path information.
The access right verifying device provided by the embodiment of the disclosure can execute the access right verifying method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the executing method.
Embodiments of the present disclosure also provide a computer program product, which includes a computer program/instruction, and when executed by a processor, the computer program/instruction implements the method for verifying the access right provided in any embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Referring now specifically to fig. 4, a schematic diagram of an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 400 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and fixed terminals such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the detection method of an installation package of the embodiment of the present disclosure when executed by the processing apparatus 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a plurality of installation package identifications associated with a target project, and determining a plurality of candidate installation packages corresponding to the installation package identifications in a preset project construction tool; determining a plurality of target installation packages meeting preset conditions in the plurality of candidate installation packages; and downloading a plurality of target installation packages, and detecting the plurality of target installation packages. According to the embodiment of the invention, all installation packages of related projects are automatically acquired in the project construction tool, so that the access and query of installation packages to a plurality of remote warehouses are avoided, and the detection efficiency of the installation packages is improved.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the disclosure. Thus, the present disclosure is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A detection method of an installation package is characterized by comprising the following steps:
acquiring a plurality of installation package identifications associated with a target project, and determining a plurality of candidate installation packages corresponding to the installation package identifications in a preset project construction tool;
determining a plurality of target installation packages meeting preset conditions in the plurality of candidate installation packages;
and downloading the target installation packages, and detecting the target installation packages.
2. The method of claim 1, wherein obtaining a plurality of installation package identifiers associated with a target project comprises:
acquiring all project modules of the target project;
acquiring installation package dependency lists corresponding to all the project modules;
and acquiring the plurality of associated installation package identifications according to the installation package dependency list.
3. The method of claim 1, wherein obtaining a plurality of installation package identifiers associated with a target project comprises:
acquiring a project identifier of the target project;
and inquiring a preset corresponding relation according to the project identifier to obtain the associated installation package identifiers.
4. The method of claim 1, wherein the determining a plurality of target installation packages of the plurality of candidate installation packages that satisfy a preset condition comprises:
determining an installation package identifier and an installation package version number of each candidate installation package;
if the installation package identification of the candidate installation package is different from the installation package identifications of all other candidate installation packages, determining the corresponding candidate installation package as a target installation package meeting the preset condition;
and if the installation package identifier of the candidate installation package is the same as the installation package identifier of at least one candidate installation package in all the other candidate installation packages, screening out the target installation package meeting the preset condition according to the installation package version number corresponding to the same installation package identifier.
5. The method as claimed in claim 4, wherein the screening out the target installation package meeting the preset condition according to the installation package version number corresponding to the same installation package identifier comprises:
screening out the latest installation package version number in the installation package version numbers corresponding to the same installation package identification;
and determining the candidate installation package corresponding to the latest installation package version number as a target installation package meeting the preset condition.
6. The method of claim 1, wherein after determining a plurality of candidate installation packages corresponding to the plurality of installation package identifications in a preset project building tool, further comprising:
determining a plurality of pieces of storage path information of the plurality of candidate installation packages in the preset project construction tool;
and caching the plurality of storage path information at preset storage positions.
7. The method of claim 6, wherein said downloading said plurality of target installation packages comprises:
determining a plurality of target storage path information corresponding to the plurality of target installation packages in the plurality of storage path information;
and downloading the target installation packages according to the target storage path information.
8. An installation package detection device, comprising:
the acquisition module is used for acquiring a plurality of installation package identifications associated with a target project and determining a plurality of candidate installation packages corresponding to the installation package identifications in a preset project construction tool;
the first determining module is used for determining a plurality of target installation packages which meet preset conditions in the plurality of candidate installation packages;
and the detection module is used for downloading the target installation packages and detecting the target installation packages.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for reading the executable instructions from the memory and executing the instructions to realize the detection method of the installation package in any one of the claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program for executing the method for detecting an installation package according to any one of claims 1 to 7.
CN202110915450.3A 2021-08-10 2021-08-10 Installation package detection method, device, equipment and medium Pending CN113722704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110915450.3A CN113722704A (en) 2021-08-10 2021-08-10 Installation package detection method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110915450.3A CN113722704A (en) 2021-08-10 2021-08-10 Installation package detection method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN113722704A true CN113722704A (en) 2021-11-30

Family

ID=78675392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110915450.3A Pending CN113722704A (en) 2021-08-10 2021-08-10 Installation package detection method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113722704A (en)

Similar Documents

Publication Publication Date Title
CN110851139B (en) Method and device for checking codes and electronic equipment
CN110764748B (en) Code calling method, device, terminal and storage medium
WO2022105563A1 (en) Indexed file generation method, terminal device, electronic device, and medium
CN112214408A (en) Dependency conflict detection method and device, electronic equipment and computer readable medium
CN112597047A (en) Test method, test device, electronic equipment and computer readable medium
CN110888817B (en) Code coverage rate report generation method, device and readable storage medium
CN112099982A (en) Collapse information positioning method, device, medium and electronic equipment
CN112650521B (en) Software development kit SDK thermal restoration method and device and electronic equipment
CN111506904A (en) Method and device for online vulnerability repair
CN110888773A (en) Method, device, medium and electronic equipment for obtaining thread identification
CN113722704A (en) Installation package detection method, device, equipment and medium
CN113032046A (en) Method, device and equipment for repairing so file and storage medium
CN114611483A (en) Method and device for automatically upgrading nuclear power DCS control logic diagram and function diagram association
CN114116480A (en) Method, device, medium and equipment for determining application program test coverage rate
CN112379967A (en) Simulator detection method, device, equipment and medium
CN111797009A (en) Method and device for detecting code compatibility and electronic equipment
CN110489341B (en) Test method and device, storage medium and electronic equipment
CN113518132B (en) Network address category identification method, device, equipment and storage medium
CN111562913B (en) Method, device and equipment for pre-creating view component and computer readable medium
CN111209042B (en) Method, device, medium and electronic equipment for establishing function stack
CN111625232B (en) Method and device for generating application program installation package, readable medium and electronic equipment
CN112084440B (en) Data verification method, device, electronic equipment and computer readable medium
CN115391296A (en) File processing method, device, equipment and medium
CN114116517A (en) Front-end item analysis method, device, medium and electronic equipment
CN114327475A (en) Function duplicate name checking method, device, equipment, readable storage medium and product

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