CN112306542A - Application package processing method and device, electronic equipment and storage medium - Google Patents

Application package processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112306542A
CN112306542A CN202011198083.1A CN202011198083A CN112306542A CN 112306542 A CN112306542 A CN 112306542A CN 202011198083 A CN202011198083 A CN 202011198083A CN 112306542 A CN112306542 A CN 112306542A
Authority
CN
China
Prior art keywords
picture
keyword
preset
attribute information
application program
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.)
Granted
Application number
CN202011198083.1A
Other languages
Chinese (zh)
Other versions
CN112306542B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202011198083.1A priority Critical patent/CN112306542B/en
Publication of CN112306542A publication Critical patent/CN112306542A/en
Application granted granted Critical
Publication of CN112306542B publication Critical patent/CN112306542B/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/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides an application package processing method, an application package processing device, electronic equipment and a storage medium, and a target application package is obtained; traversing the target application program package to obtain each picture in the target application program package; acquiring attribute information of each picture; matching the attribute information of each picture with a preset first keyword; and deleting the pictures of which the attribute information is matched with the preset first keyword in each picture. Therefore, the picture can be retrieved for the target application program package, the picture can be matched and deleted through the preset first keyword, the deleting efficiency of the picture can be improved, the size of the application program package is reduced, the time required by a user for downloading the application program package is shortened, and the user experience is improved.

Description

Application package processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing an application package, an electronic device, and a storage medium.
Background
At present, the downloading of the application program package is often carried out in daily work and life of people. By downloading the application package, the downloaded application package can be installed, and then the relevant services or functions provided by the application program can be used.
However, as the functionality provided by applications increases, and as the need for personalization increases, so too does the size of the application package. This often results in an increase in the time that people spend downloading the application packages, resulting in a poor user experience.
Disclosure of Invention
The embodiment of the invention aims to provide an application package processing method, an application package processing device, electronic equipment and a storage medium, so as to achieve the purposes of reducing the volume of an application package and improving user experience. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an application package processing method, including:
acquiring a target application program package;
traversing the target application program package to obtain each picture in the target application program package;
acquiring attribute information of each picture;
matching the attribute name of each picture with a preset first keyword;
and deleting the pictures of which the attribute information is matched with the preset first keyword in each picture.
Optionally, the attribute information of each picture includes an original name and a scene name of each picture, and the matching of the attribute information of each picture with a preset first keyword includes:
combining an original name corresponding to a pre-acquired picture to be deleted and a scene name of the picture to be deleted by using a regular expression to obtain a plurality of combined names, wherein the picture to be deleted is a pre-determined picture to be deleted;
and respectively taking each combination name in the plurality of combination names as a preset first keyword, and performing fuzzy matching with the attribute information of each picture.
Optionally, after obtaining the attribute information of each picture, the method further includes:
judging whether the attribute information of each picture contains a preset second keyword or not;
and uploading the picture containing the second keyword to a specified storage position of the cloud as a target picture downloaded when the application program corresponding to the application program package runs.
Optionally, the second keyword is obtained by the following steps:
acquiring the use frequency of each scene when an application program corresponding to the application program package runs;
determining scene names corresponding to scenes with the use frequency smaller than a preset threshold value as second keywords;
the step of judging whether the attribute information of each picture contains a preset second keyword comprises the following steps:
and judging whether the scene name in the attribute information of each picture contains a preset second keyword.
Optionally, the target application package is an application package in a development process, and the method further includes:
carrying out data volume statistics on the target application program package regularly, and comparing the current statistical result with the previous statistical result;
and sending reminding information when the difference value between the current obtained statistical result and the previous obtained statistical result is greater than a preset threshold value.
In a second aspect, an embodiment of the present invention provides an application package processing apparatus, including:
the program package acquisition module is used for acquiring a target application program package;
the picture retrieval module is used for traversing the target application program package to obtain each picture in the target application program package;
the information acquisition module is used for acquiring the attribute information of each picture;
the information matching module is used for matching the attribute information of each picture with a preset first keyword;
and the picture deleting module is used for deleting the pictures of which the attribute information is matched with the preset first keyword in each picture.
Optionally, the attribute information of each picture includes an original name and a scene name of each picture, and the information matching module includes:
the identification combination submodule is used for combining an original name corresponding to a pre-acquired picture to be deleted and a scene name of the picture to be deleted by using a regular expression to obtain a plurality of combination names, wherein the picture to be deleted is a pre-determined picture to be deleted;
and the fuzzy matching sub-module is used for carrying out fuzzy matching on the attribute information of each picture by taking each combination name in the plurality of combination names as a preset first keyword.
Optionally, the apparatus further comprises:
the second keyword module is used for judging whether the attribute information of each picture contains a preset second keyword or not;
and the cloud uploading module is used for uploading the picture containing the second keyword to a specified storage position of the cloud as a target picture downloaded when the application program corresponding to the application program package runs.
Optionally, the second keyword is obtained by the following steps:
acquiring the use frequency of each scene when an application program corresponding to the application program package runs;
determining scene names corresponding to scenes with the use frequency smaller than a preset threshold value as second keywords;
the step of judging whether the attribute information of each picture contains a preset second keyword comprises the following steps:
and judging whether the scene name in the attribute information of each picture contains a preset second keyword.
Optionally, the target application package is an application package in a development process, and the apparatus further includes:
the data volume counting module is used for periodically counting the data volume of the target application program package and comparing the current obtained counting result with the previous obtained counting result;
and the information reminding module is used for sending reminding information when the difference value between the current obtained statistical result and the previous obtained statistical result is greater than a preset threshold value.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the processing method of any application program package when executing the computer program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any one of the above-mentioned application package processing methods.
The embodiment of the invention provides an application package processing method, an application package processing device, electronic equipment and a storage medium, and a target application package is obtained; traversing the target application program package to obtain each picture in the target application program package; acquiring attribute information of each picture; matching the attribute information of each picture with a preset first keyword; and deleting the pictures of which the attribute information is matched with the preset first keyword in each picture. Therefore, the picture can be retrieved for the target application program package, the picture can be matched and deleted through the preset first keyword, the deleting efficiency of the picture can be improved, the size of the application program package is reduced, the time required by a user for downloading the application program package is shortened, and the user experience is improved.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
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 first flowchart of an application package processing method implemented by the present invention;
FIG. 2 is a second flowchart of an application package processing method implemented by the present invention;
FIG. 3 is a third flowchart of an application package processing method implemented by the present invention;
FIG. 4 is a flowchart of a second keyword obtaining method implemented by the present invention;
FIG. 5 is a flow chart of a method for sending a reminder message in accordance with an embodiment of the present invention;
FIG. 6 is a first schematic diagram of an application package processing apparatus in accordance with an embodiment of the present invention;
FIG. 7 is a second schematic diagram of an application package processing apparatus in accordance with the present invention;
FIG. 8 is a third schematic diagram of an application package processing apparatus in accordance with the present invention;
FIG. 9 is a third schematic diagram of an application package processing apparatus in accordance with the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
The invention provides an application program package processing method, which comprises the following steps:
acquiring a target application program package;
traversing the target application program package to obtain each picture in the target application program package;
acquiring attribute information of each picture;
matching the attribute information of each picture with a preset first keyword;
deleting pictures with attribute information matched with preset first keywords in each picture
Therefore, by the application package processing method provided by the embodiment of the invention, the picture of the target application package can be retrieved, and the picture can be matched and deleted by presetting the first keyword, so that the picture deletion efficiency can be improved, the volume of the application package can be reduced, the time required by a user for downloading the application package can be shortened, and the user experience can be improved.
Referring to fig. 1, fig. 1 is a first flowchart of an application package processing method implemented by the present invention, including:
in step S11, the target application package is acquired.
The target application package may be various types of packages, for example, a package to be developed and then brought online, such as: an installation package in the ios (iphone Operation system) system, an installation package in the Android (Android) system, or a program package in the program development process, which is not limited in the present invention. The application package may include a plurality of pictures that need to be used during the running process of the program.
The application package processing method of the embodiment of the invention aims at the target application package in the intelligent terminal device, so that the application package can be executed through the intelligent terminal device, and specifically, the intelligent terminal device can be a computer or a server and the like.
And step S12, traversing the target application program package to obtain each picture in the target application program package.
The application package may include a plurality of pictures, which are used in normal operation of the application, for example, background pictures in the operation process of the application. And traversing the target application program package to obtain each picture in the target application program package, and obtaining each picture in the target application program package according to the data type information of each file in the application program package. The pictures may include multiple types of pictures, such as a jpg (joint Photo graphics Experts group) type, a bmp (bitmap) type, and the like, so that when a picture is retrieved for a target application package, each picture in the target application package may be obtained by retrieving data of the jpg, the bmp, and the like types, and for example, when a file of the jpg type is retrieved, it may be determined that the file is a file of the picture type.
In step S13, attribute information of each picture is acquired.
Wherein, the attribute information of each picture comprises: original name of picture and scene name. The scene name may be a device name, an application mode, a resolution, and the like.
For example, when the picture is applied to different devices, the scene name may be the name of the different devices, for example, when the picture with the original name of applet is applied to iPhone and iPad, the scene name is iPhone and iPad, and during the development process, the developer names the picture with the original name of applet applied to iPhone and iPad as: apple & iPhone and apple & iPad.
For another example, when a developer applies a picture originally named as an applet to a night mode and a day mode, the scene names are black and white, and the developer names the picture: apple and apple, or black and white, and the like.
For another example, when a developer shows a picture originally named as an applet with different resolutions, the scene names are x 2 and x 4, and the developer names the picture as: applet × 2 and applet × 4.
In actual use, the scene name may also include an interface of the picture application. For example, after a program is opened, a user enters a first-layer interface of the program, and after a specified operation is performed in the first-layer interface, the user can enter a second-layer interface, and only after the specified operation is performed in the second-layer interface, the user can enter a third-layer interface, for example, after a certain program is opened, the user enters a main interface, namely the first-layer interface, and clicks a setting option to enter a setting-related interface, namely the second-layer interface, clicks a setting of a certain attribute in the setting option, and enters a setting interface for the attribute, namely the third-layer interface. The first layer interface, the second layer interface and the third layer interface are respectively a scene, and the name of the interface is a scene name.
Step S14, matching the attribute information of each picture with a preset first keyword.
The attribute names of the pictures are matched with the preset first keywords, and the obtained information of the types of the first keywords in the attribute names of the pictures can be matched with the first keywords. For example, when the first keyword is an application scene of a picture to be deleted, the scene name of each picture may be matched with the application scene of the picture to be deleted. Optionally, the attribute information of each picture is matched with a preset first keyword, which may be to determine whether the attribute information of each picture includes the preset first keyword.
The first keywords may be preset by research personnel for images to be deleted by different target application programs, and the preset first keywords of different target application programs may be different.
And step S15, deleting the pictures of which the attribute information is matched with the preset first keyword in each picture.
The deleting of the picture with the attribute name matched with the preset first keyword in each picture may be deleting of the picture with the attribute name including the first keyword in each picture. For example, when the first keyword is an application scene of a picture to be deleted, after the attribute name of each picture is matched with the preset first keyword, the picture corresponding to the application scene may be deleted.
For example, an application scene includes a plurality of pictures, and in the development process of a developer, the attribute information of a picture generally includes an identifier of the application scene, for example, an original name of the corresponding picture: when the application is applied to the night mode, developers generally add a scene name black to obtain the picture attribute information of the applet, girl, and body. When the picture corresponding to the night mode is deleted, all pictures corresponding to the night mode can be retrieved by retrieving whether the original name includes the identifier of the application scene, such as black, so that the picture is deleted.
For another example, when a developer develops an application package, the developer may adjust the color, contrast, and the like of a picture to generate a plurality of pictures, and apply the newly generated pictures to a night mode, a day mode, and the like, the developer may be named as an applet black and an applet while, respectively. When the attribute names of the pictures are obtained, names for distinguishing different application scenes such as applet, black, applet, white and the like can be obtained, when the first keyword is an applet, the picture with the attribute name matched with the preset first keyword in each picture is deleted, the picture corresponding to the applet, black and the applet is matched, and the matched picture is deleted. Therefore, the situation that developers forget to delete the pictures of various scenes corresponding to the pictures in the process of deleting a certain picture can be prevented, and the picture deleting efficiency is improved.
Therefore, by the application package processing method provided by the embodiment of the invention, the picture of the target application package can be retrieved, and the picture can be matched and deleted by presetting the first keyword, so that the picture deletion efficiency can be improved, the volume of the application package can be reduced, the time required by a user for downloading the application package can be shortened, and the user experience can be improved.
Optionally, referring to fig. 2, the attribute information of each picture includes an original name and a scene name of each picture, and step S14 matches the attribute information of each picture with a preset first keyword, including:
step S141, combining the original name corresponding to the pre-acquired picture to be deleted and the scene name of the picture to be deleted by using a regular expression to obtain a plurality of combined names.
The picture to be deleted is a predetermined picture to be deleted. The method comprises the steps of combining a picture name corresponding to a picture to be deleted and a scene name of the picture to be deleted, which are acquired in advance, by using a regular expression. The picture to be deleted is a predetermined picture to be deleted. The picture name and the scene can be combined by various names through a regular expression. For example, when a picture is named as an applet, and the picture generates a set of pictures for the night mode and the day mode, the possible names of the picture can be expressed as [ applet ] + [ black ] | [ applet ] + [ white ] or [ black ] + [ white ] - [ applet ] or [ black ] + [ applet ] | [ white ] - [ applet ] by regular expressions. Therefore, possible names of a plurality of pictures generated by the same picture are expressed, and a plurality of combined names are obtained.
Step S142, each combination name in the plurality of combination names is taken as a preset first keyword, and fuzzy matching is performed on the first keyword and the attribute information of each picture.
The first keywords generated by the regular expression are subjected to fuzzy matching in the first name set, so that a plurality of names which have a certain difference with the first keywords can be matched, and a plurality of pictures generated corresponding to the original pictures can be found conveniently. For example, a combination name of applet + black is used, and fuzzy matching is performed using the combination name as the first keyword, so that pictures named as applet black, applet & black, or the like can be matched. Thereby, the efficiency of picture detection can be improved.
Therefore, according to the method of the embodiment of the application, the pre-acquired identification of the picture corresponding to the picture to be deleted and the scene name of the picture to be deleted are combined by using the regular expression, and fuzzy matching is performed. A plurality of possible names can be represented by regular expressions, and matching is performed through fuzzy matching, so that the efficiency of image matching is improved.
Optionally, referring to fig. 3, after the step S13 obtains the attribute information of each picture, the method further includes:
step S16, determining whether the attribute information of each picture includes a preset second keyword.
The second keyword may be a scene name corresponding to each picture. The obtaining of the attribute name of each picture may include obtaining a scene corresponding to each picture, and determining whether the attribute name of each picture includes a preset second keyword, and may be a method of performing fuzzy matching between the attribute name of each picture and the preset second keyword, and determining whether the attribute name of each picture includes the second keyword.
And step S17, uploading the picture containing the second keyword to a specified storage position of the cloud as a target picture downloaded when the application program corresponding to the application program package runs.
The picture containing the second keyword is used as a target picture downloaded when an application program corresponding to the application program package runs, the target picture can be deleted in the application program package and uploaded to the cloud, and the target picture is loaded by program process judgment in the program running process through a preloading technology and when the target picture is judged to be possibly applied. Therefore, the target picture can be deleted in the application program package, the purpose of reducing the installation package is achieved, the normal operation of the application program can be ensured through the target picture downloaded when the application program corresponding to the application program package operates, and the user experience is improved.
Therefore, according to the method provided by the embodiment of the application, after judging whether the attribute information of each picture contains the preset second keyword, the picture containing the second keyword is used as the target picture downloaded during the running of the application program corresponding to the application program package and uploaded to the specified storage position of the cloud, so that the size of the application program package can be reduced, the picture containing the second keyword can be uploaded to the specified storage position of the cloud, the picture is downloaded from the cloud again during the running of the program, and the normal running of the program is ensured.
Optionally, referring to fig. 4, the second keyword is obtained by the following steps:
optionally, the second keyword is obtained by the following steps:
in step S41, the usage frequency of each scene during the operation of the application program corresponding to the application package is obtained.
When the use frequency corresponding to each scene during the running of the application program corresponding to the application program package is obtained, the scene may be an interface or a mode to which the picture is applied. For example, if an application includes a night mode, a picture corresponding to the night mode may be obtained, and the night mode is a scene corresponding to the picture. Or, for example, after a user opens a program, the user enters a first-layer interface of the program, and after a specified operation is performed in the first-layer interface, the user can enter a second-layer interface, and only after the specified operation is performed in the second-layer interface, the user can enter a third-layer interface, for example, after a certain program is opened, the user enters a main interface, i.e., the first-layer interface, clicks a setting option to enter a setting-related interface, i.e., the second-layer interface, clicks a setting of a certain attribute in the setting option, and enters a setting interface for the attribute, i.e., the third-layer interface. The first layer interface, the second layer interface and the third layer interface are respectively a scene, and the pictures applied in the first layer interface, the second layer interface and the third layer interface respectively acquire the use frequency corresponding to each scene.
Step S42, determining a scene name corresponding to a scene with a frequency of use less than a preset threshold as a second keyword.
And determining the scene name corresponding to the scene with the use frequency smaller than the preset threshold value as a second keyword according to the obtained use frequency corresponding to each scene. For example, when the use frequencies of the first layer interface, the second layer interface and the third layer interface are counted to obtain the use frequency preset threshold of the third layer interface, the scene name corresponding to the third layer interface is determined as the second keyword. For example, the names of scenes corresponding to the third-layer interface can be determined as the second keyword by counting the use times of the first-layer interface, the second-layer interface and the third-layer interface which are 100000 times, 8000 times and 50 times in a day.
Step S16 is a step of determining whether the attribute name of each picture includes a preset second keyword, including:
step S161, determining whether the scene name in the attribute information of each picture includes a preset second keyword.
When a preset scene corresponding to each picture of the second keyword is used, fuzzy matching can be performed on the scene name in the obtained attribute name of each picture and the second keyword, so that the size of the target application package can be reduced by deleting the pictures in each picture containing the second keyword.
Optionally, referring to fig. 5, the target application package is an application package in a development process, and the method further includes:
step S18, regularly counting the data size of the target application program package, and comparing the current statistical result with the previous statistical result;
and step S19, when the difference value between the current obtained statistical result and the previous obtained statistical result is greater than a preset threshold value, sending reminding information.
Since the development of the current application package is generally performed by cooperation of a plurality of development teams, each development team is responsible for development of a part of functions of the application, in the development process of the target application package, the data volume of pictures included in the part of functions responsible by each development team can be counted once at fixed intervals, for example, once a day. And comparing the data quantity of the pictures in the part of functions counted by the development team at the previous time, and sending alarm information to the development team when the difference value of the two times is greater than a certain threshold value. After the development team receives the alarm information, the picture data in the responsible part of functions can be checked, and after abnormal changes of the data caused by misoperation and the like occur, for example, uncompressed pictures are added in the version iteration process, and the alarm information is sent to the development team.
Referring to fig. 6, fig. 6 is a schematic diagram of an application package processing apparatus according to an embodiment of the present invention, including:
a package obtaining module 601, configured to obtain a target application package;
the picture retrieval module 602 is configured to traverse the target application package to obtain each picture in the target application package;
an information obtaining module 603, configured to obtain attribute information of each picture;
the information matching module 604 is configured to match attribute information of each picture with a preset first keyword;
the picture deleting module 605 is configured to delete a picture in which the attribute information matches the preset first keyword in each picture.
Optionally, referring to fig. 7, the attribute information of each picture includes an original name and a scene name of each picture, and the information matching module 604 includes:
the identifier combination submodule 6041 is configured to combine, by using a regular expression, an original name corresponding to a pre-acquired picture to be deleted and a scene name of the picture to be deleted to obtain a plurality of combination names, where the picture to be deleted is a pre-determined picture to be deleted;
the fuzzy matching sub-module 6042 is configured to perform fuzzy matching on the attribute information of each picture by using each combination name of the plurality of combination names as a preset first keyword.
Optionally, referring to fig. 8, the apparatus further includes:
a second keyword module 606, configured to determine whether the attribute information of each picture includes a preset second keyword;
the cloud uploading module 607 is configured to upload the picture including the second keyword to a specified storage location of the cloud as a target picture downloaded when the application corresponding to the application package runs.
Optionally, the second keyword is obtained by the following steps:
acquiring the use frequency of each scene when an application program corresponding to the application program package runs;
determining scene names corresponding to scenes with the use frequency smaller than a preset threshold value as second keywords;
the step of judging whether the attribute information of each picture contains a preset second keyword comprises the following steps:
and judging whether the scene name in the attribute information of each picture contains a preset second keyword.
Optionally, the target application package is an application package in a development process, referring to fig. 9, the apparatus further includes:
the data volume counting module 608 is configured to periodically count the size of the data volume of the target application package, and compare the currently obtained counting result with the previously obtained counting result;
and the information reminding module 609 is configured to send a reminding message when a difference between the currently obtained statistical result and the previously obtained statistical result is greater than a preset threshold.
Therefore, the application package processing device provided by the embodiment of the invention can be used for searching the picture of the target application package, matching and deleting the picture through the preset first keyword, so that the picture deleting efficiency can be improved, the volume of the application package can be reduced, the time required by a user for downloading the application package can be shortened, and the user experience can be improved.
The embodiment of the present invention further provides an electronic device, as shown in fig. 10, which includes a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete mutual communication through the communication bus 1004,
a memory 1003 for storing a computer program;
the processor 1001 is configured to implement the following steps when executing the program stored in the memory 1003:
acquiring a target application program package;
traversing the target application program package to obtain each picture in the target application program package;
acquiring attribute information of each picture;
matching the attribute information of each picture with a preset first keyword;
and deleting the pictures of which the attribute information is matched with the preset first keyword in each picture.
Optionally, when the processor executes the program stored in the memory, the processor may further implement any of the above-described application package processing methods.
The communication bus mentioned in the electronic device may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In another embodiment provided by the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above application package processing methods.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above application package processing methods.
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 phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. An application package processing method, comprising:
acquiring a target application program package;
traversing the target application program package to obtain each picture in the target application program package;
acquiring attribute information of each picture;
matching the attribute names of the pictures with a preset first keyword;
and deleting the pictures of which the attribute information is matched with the preset first keyword in each picture.
2. The method according to claim 1, wherein the attribute information of each picture includes an original name and a scene name of each picture, and the matching the attribute information of each picture with a preset first keyword includes:
combining an original name corresponding to a pre-acquired picture to be deleted and a scene name of the picture to be deleted by using a regular expression to obtain a plurality of combined names, wherein the picture to be deleted is a pre-determined picture to be deleted;
and respectively taking each combination name in the plurality of combination names as a preset first keyword, and carrying out fuzzy matching on the first keyword and the attribute information of each picture.
3. The method according to claim 1, wherein after the obtaining of the attribute information of each picture, the method further comprises:
judging whether the attribute information of each picture contains a preset second keyword or not;
and uploading the picture containing the second keyword to a specified storage position of the cloud as a target picture downloaded when an application program corresponding to the application program package runs.
4. The method of claim 3, wherein the second keyword is obtained by:
acquiring the use frequency of each scene when the application program corresponding to the application program package runs;
determining the scene name corresponding to the scene with the use frequency smaller than the preset threshold value as a second keyword;
the step of judging whether the attribute information of each picture contains a preset second keyword includes:
and judging whether the scene name in the attribute information of each picture contains a preset second keyword or not.
5. The method of claim 1, wherein the target application package is an in-development application package, the method further comprising:
carrying out data volume statistics on the target application program package regularly, and comparing the current statistical result with the previous statistical result;
and sending reminding information when the difference value between the current obtained statistical result and the previous obtained statistical result is greater than a preset threshold value.
6. An application package processing apparatus, comprising:
the program package acquisition module is used for acquiring a target application program package;
the picture retrieval module is used for traversing the target application program package to obtain each picture in the target application program package;
the information acquisition module is used for acquiring the attribute information of each picture;
the information matching module is used for matching the attribute information of each picture with a preset first keyword;
and the picture deleting module is used for deleting the pictures of which the attribute information is matched with the preset first keyword in each picture.
7. The apparatus according to claim 6, wherein the attribute information of each picture includes an original name and a scene name of each picture, and the information matching module includes:
the identification combination submodule is used for combining an original name corresponding to a pre-acquired picture to be deleted and a scene name of the picture to be deleted by using a regular expression to obtain a plurality of combination names, wherein the picture to be deleted is a pre-determined picture to be deleted;
and the fuzzy matching sub-module is used for carrying out fuzzy matching on the attribute information of each picture by taking each combination name in the plurality of combination names as a preset first keyword.
8. The apparatus of claim 6, further comprising:
the second keyword module is used for judging whether the attribute information of each picture contains a preset second keyword or not;
and the cloud uploading module is used for uploading the picture containing the second keyword to a specified storage position of the cloud as a target picture downloaded when an application program corresponding to the application program package runs.
9. The apparatus of claim 8, wherein the second keyword is obtained by:
acquiring the use frequency of each scene when the application program corresponding to the application program package runs;
determining the scene name corresponding to the scene with the use frequency smaller than the preset threshold value as a second keyword;
the step of judging whether the attribute information of each picture contains a preset second keyword includes:
and judging whether the scene name in the attribute information of each picture contains a preset second keyword or not.
10. The apparatus of claim 6, wherein the target application package is an in-development application package, the apparatus further comprising:
the data volume counting module is used for periodically counting the data volume of the target application program package and comparing the current obtained counting result with the previous obtained counting result;
and the information reminding module is used for sending reminding information when the difference value between the current obtained statistical result and the previous obtained statistical result is greater than a preset threshold value.
11. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-5 when executing the computer program stored in the memory.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of claims 1-5.
CN202011198083.1A 2020-10-30 2020-10-30 Application package processing method and device, electronic equipment and storage medium Active CN112306542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011198083.1A CN112306542B (en) 2020-10-30 2020-10-30 Application package processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011198083.1A CN112306542B (en) 2020-10-30 2020-10-30 Application package processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112306542A true CN112306542A (en) 2021-02-02
CN112306542B CN112306542B (en) 2023-09-05

Family

ID=74334165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011198083.1A Active CN112306542B (en) 2020-10-30 2020-10-30 Application package processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112306542B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130159996A1 (en) * 2011-12-16 2013-06-20 Hsiu-Ping Lin Systems for downloading location-based application and methods using the same
CN105867971A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Application management method and device
US20170031974A1 (en) * 2013-12-26 2017-02-02 Quixey, Inc. Systems and Methods for Automated Identification of Applications for Deletion Recommendation on a User Device
US20170315796A1 (en) * 2016-04-29 2017-11-02 Splunk, Inc. Application deployment for data intake and query system
CN107656743A (en) * 2017-09-28 2018-02-02 努比亚技术有限公司 A kind of discharging method of application, terminal and readable storage medium storing program for executing
CN107741844A (en) * 2016-08-22 2018-02-27 腾讯科技(深圳)有限公司 The generation method and device of a kind of application installation package
CN108958755A (en) * 2018-08-01 2018-12-07 北京奇艺世纪科技有限公司 A kind of generation method, device and the electronic equipment of application program installation kit
CN109558145A (en) * 2017-09-26 2019-04-02 北京金山安全软件有限公司 Installation package volume optimization method and device for android application
CN109885324A (en) * 2019-02-25 2019-06-14 北京达佳互联信息技术有限公司 A kind of processing method, device, terminal and the storage medium of application program installation kit
CN111045698A (en) * 2019-12-24 2020-04-21 五八有限公司 Redundant picture deleting method and device, electronic equipment and storage medium
CN111124480A (en) * 2019-12-19 2020-05-08 北京奇艺世纪科技有限公司 Application package generation method and device, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130159996A1 (en) * 2011-12-16 2013-06-20 Hsiu-Ping Lin Systems for downloading location-based application and methods using the same
US20170031974A1 (en) * 2013-12-26 2017-02-02 Quixey, Inc. Systems and Methods for Automated Identification of Applications for Deletion Recommendation on a User Device
CN105867971A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Application management method and device
US20170315796A1 (en) * 2016-04-29 2017-11-02 Splunk, Inc. Application deployment for data intake and query system
CN107741844A (en) * 2016-08-22 2018-02-27 腾讯科技(深圳)有限公司 The generation method and device of a kind of application installation package
CN109558145A (en) * 2017-09-26 2019-04-02 北京金山安全软件有限公司 Installation package volume optimization method and device for android application
CN107656743A (en) * 2017-09-28 2018-02-02 努比亚技术有限公司 A kind of discharging method of application, terminal and readable storage medium storing program for executing
CN108958755A (en) * 2018-08-01 2018-12-07 北京奇艺世纪科技有限公司 A kind of generation method, device and the electronic equipment of application program installation kit
CN109885324A (en) * 2019-02-25 2019-06-14 北京达佳互联信息技术有限公司 A kind of processing method, device, terminal and the storage medium of application program installation kit
CN111124480A (en) * 2019-12-19 2020-05-08 北京奇艺世纪科技有限公司 Application package generation method and device, electronic equipment and storage medium
CN111045698A (en) * 2019-12-24 2020-04-21 五八有限公司 Redundant picture deleting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112306542B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN111381987A (en) Message processing method and device, electronic equipment and medium
CN110941738B (en) Recommendation method and device, electronic equipment and computer-readable storage medium
CN112256318B (en) Construction method and equipment for dependent product
CN112507167A (en) Method and device for identifying video collection, electronic equipment and storage medium
CN109710827B (en) Picture attribute management method and device, picture server and business processing terminal
CN110121088A (en) A kind of customer attribute information determines method, apparatus and electronic equipment
CN114327375A (en) Method, tool and computer equipment for detecting java code dependency relationship
CN110971529A (en) Data transmission method and device, electronic equipment and storage medium
CN110996142B (en) Video recall method and device, electronic equipment and storage medium
CN112788090B (en) Network resource transmission method, device and system
CN112306542B (en) Application package processing method and device, electronic equipment and storage medium
CN112836124A (en) Image data acquisition method and device, electronic equipment and storage medium
CN114064445A (en) Test method, device, equipment and computer readable storage medium
CN113064801B (en) Data point burying method and device, readable storage medium and computer equipment
CN113868479A (en) Method and device for processing service data
CN114040223A (en) Image processing method and system
CN110674330B (en) Expression management method and device, electronic equipment and storage medium
CN108399223B (en) Data acquisition method and device and electronic equipment
CN112199529A (en) Picture processing method and device, electronic equipment and storage medium
CN108052648B (en) Website picture deleting method and device and electronic equipment
CN108427706B (en) Information publishing method and device
CN106845202B (en) File access method, device and system for face recognition system
CN112256820A (en) Document positioning method and device
CN112256654A (en) Document sharing method and device
CN111338709A (en) Target scene skipping method, device, equipment and storage medium in client

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