CN112306542B - 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
CN112306542B
CN112306542B CN202011198083.1A CN202011198083A CN112306542B CN 112306542 B CN112306542 B CN 112306542B CN 202011198083 A CN202011198083 A CN 202011198083A CN 112306542 B CN112306542 B CN 112306542B
Authority
CN
China
Prior art keywords
picture
application program
package
keyword
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011198083.1A
Other languages
Chinese (zh)
Other versions
CN112306542A (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

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 application provides an application package processing method, an application package processing device, electronic equipment and a storage medium, and a target application package is acquired; traversing the target application program package to obtain each picture in the target application program package; acquiring attribute information of each picture; matching 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 keywords in each picture. Therefore, the target application program package can be searched, the pictures can be matched and deleted through the preset first keywords, the deleting efficiency of the pictures can be improved, the volume of the application program package is reduced, the time required by a user when the user downloads 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 application relates to the field of data processing technologies, and in particular, to an application package processing method, an apparatus, an electronic device, and a storage medium.
Background
At present, in daily work and life of people, application packages are often downloaded. By downloading the application package, the downloaded application package may be installed, thereby utilizing the relevant services or functions provided by the application.
However, as the functionality provided by applications increases, as well as the individual needs of people increase, the volume of application packages also becomes larger and larger. This often results in an increase in the time it takes for a person to download an application package, resulting in an inferior user experience.
Disclosure of Invention
The embodiment of the application aims to provide an application program package processing method, an application program package processing device, electronic equipment and a storage medium, so as to achieve the purposes of reducing the application program package and improving the user experience. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application 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 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 keywords in each picture.
Optionally, the attribute information of each picture includes an original name and a scene name of each picture, and 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 with 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 carrying out fuzzy matching on the first keywords which are preset by using each of the plurality of combination names and the attribute information of each picture.
Optionally, after obtaining the attribute information of each picture, the method further includes:
judging whether attribute information of each picture contains a preset second keyword or not;
and uploading the picture containing the second keyword to a cloud designated storage position 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 the application program corresponding to the application program package runs;
determining scene names corresponding to scenes with the use frequency smaller than a preset threshold as second keywords;
the step of judging whether the attribute information of each picture contains a preset second keyword or not comprises the following steps:
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:
the data volume of the target application program package is counted regularly, and the currently obtained counting result is compared with the counting result obtained in the previous time;
and when the difference value between the current obtained statistical result and the previous obtained statistical result is larger than a preset threshold value, sending reminding information.
In a second aspect, an embodiment of the present application provides an application package processing apparatus, including:
the program package acquisition module is used for acquiring a target application program package;
the image retrieval module is used for traversing the target application program package to obtain each image in the target application program package;
the information acquisition module is used for acquiring 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 pictures with attribute information matched with a 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 sub-module is used for combining the original name corresponding to the picture to be deleted, which is obtained in advance, with the scene name of the picture to be deleted by using the regular expression to obtain a plurality of combined names, wherein the picture to be deleted is a picture which is determined in advance and needs to be deleted;
and the fuzzy matching sub-module is used for performing fuzzy matching with 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 includes:
the second keyword module is used for judging whether attribute information of each picture contains a preset second keyword or not;
and the cloud end uploading module is used for uploading the picture containing the second keyword to a cloud designated storage position 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 the application program corresponding to the application program package runs;
determining scene names corresponding to scenes with the use frequency smaller than a preset threshold as second keywords;
the step of judging whether the attribute information of each picture contains a preset second keyword or not comprises the following steps:
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 statistics module is used for periodically carrying out statistics on the data volume of the target application program package and comparing the currently obtained statistical result with the statistical result obtained in the previous time;
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 larger than a preset threshold value.
In a third aspect, an embodiment of the present application 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 communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any application program package processing method when executing the computer program stored in the memory.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements any one of the application package processing methods described above.
The embodiment of the application provides an application package processing method, an application package processing device, electronic equipment and a storage medium, and a target application package is acquired; traversing the target application program package to obtain each picture in the target application program package; acquiring attribute information of each picture; matching 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 keywords in each picture. Therefore, the target application program package can be searched, the pictures can be matched and deleted through the preset first keywords, the deleting efficiency of the pictures can be improved, the volume of the application program package is reduced, the time required by a user when the user downloads the application program package is shortened, and the user experience is improved.
Of course, it is not necessary for any one product or method of practicing the application to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a first flowchart of an application package processing method according to the present application;
FIG. 2 is a second flowchart of an application package processing method according to the present application;
FIG. 3 is a third flowchart of an application package processing method according to the present application;
FIG. 4 is a flowchart of a second keyword acquisition method according to the present application;
FIG. 5 is a flow chart of a method for sending reminder information according to an embodiment of the present application;
FIG. 6 is a first schematic diagram of an application package processing device according to an embodiment of the present application;
FIG. 7 is a second schematic diagram of an application package processing device according to the present application;
FIG. 8 is a third schematic diagram of an application package processing device according to the present application;
FIG. 9 is a third schematic diagram of an application package processing device according to the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The application 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 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 application, the target application package can be searched for the picture, and the picture is matched and deleted by presetting the first keyword, so that the deletion efficiency of the picture can be improved, the volume of the application package is reduced, the time required by a user for downloading the application package is shortened, and the user experience is improved.
Referring to fig. 1, fig. 1 is a first flowchart of an application package processing method according to the present application, which includes:
step S11, obtaining a target application program package.
The target application package may be a plurality of types of packages, for example, may be a package to be online after development is completed, such as: the installation package in the iOS (iPhone Operation System) system and the installation package in the Android (Android) system can also be program packages in the process of program development, and the application is not limited to this. The application package can include a plurality of pictures needed to be used in the running process of the program.
The application package processing method of the embodiment of the application aims at the application package of the target in the intelligent terminal equipment, so that the application package processing method can be executed by the intelligent terminal equipment, and the intelligent terminal equipment 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 running of the application, for example, background pictures in the running process of the application, and the like. 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 jpg (Joint Photo graphic Experts Group) type and bmp (Bitmap) type, so when searching for a picture of the target application package, each picture in the target application package may be obtained by searching for jpg, bmp and other types of data, for example, when searching for a jpg type file, it may be determined that the file is a picture type file.
Step S13, obtaining attribute information of each picture.
Wherein, the attribute information of each picture comprises: the original name of the picture and the 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, such as when the picture with the original name apple is applied to the iPhone and the iPad, the scene names are the iPhone and the iPad, and in the development process, the developer will name the picture with the original name apple applied to the iPhone and the iPad as follows: apple & iPhone and apple & iPad.
For another example, when a certain picture is originally named as an apple, and a developer applies the picture to two modes, namely a night mode and a daytime mode, scene names are respectively black and white, and in the development process, the developer respectively names the picture as follows: black and white, or black and white, etc.
For another example, when a developer displays a picture originally named apple, scene names are respectively x 2 and x 4, and the developer names the picture in the development process as follows: apple×2 and apple×4.
In the actual use process, the scene name can also comprise the interface of the picture application. For example, after a user opens a program, the user enters a first layer interface of the program, after a specified operation is performed in the first layer interface, the user may enter a second layer interface, and after a specified operation is performed in the second layer interface, the user may enter a third layer interface, for example, after opening a certain program, the user enters a main interface, i.e., the first layer interface, clicks a setting option to enter a relevant setting 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 names of the interfaces are scene names.
Step S14, matching the attribute information of each picture with a preset first keyword.
The attribute names of the pictures are matched with a preset first keyword, and the type information of the corresponding first keyword in the acquired attribute names of the pictures can be matched with the first keyword. For example, when the first keyword is an application scene of the 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 used to determine whether the attribute information of each picture includes the preset first keyword.
The first keywords may be preset by a developer for images to be deleted by different target application programs, and preset first keywords of different target application programs may be different.
And S15, deleting the pictures with attribute information matched with the preset first keywords in each picture.
The deleting of the pictures with attribute names matching with the preset first keywords in each picture may be deleting the pictures with attribute names containing the first keywords 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 a preset first keyword, the picture corresponding to the application scene can be deleted.
For example, when a certain application scene includes a plurality of pictures, in a development process of a developer, attribute information of the pictures generally includes an identifier of the application scene, for example, an original name of the corresponding picture is: apple, girl, boy when applied to night mode, the developer typically adds a scene name black to obtain the picture attribute information, which is apple black, girl black, boy black. When deleting the pictures corresponding to the night mode, all the pictures corresponding to the night mode can be retrieved by retrieving whether the original name contains the identification of the application scene, such as a black, so as to delete the pictures.
For another example, when a certain picture is named as an apple, a developer may adjust colors, contrast, etc. of the picture when developing an application package, and then generate a plurality of pictures, and when the newly generated pictures are applied to modes such as a night mode and a daytime mode, etc., they may be named as an apple x black and an apple x white, respectively. When the attribute names of the pictures are acquired, names of different application scenes can be acquired, such as apple black, apple white and the like, when the first keyword is apple, the pictures with the attribute names matched with the preset first keyword in the pictures are deleted, the pictures corresponding to the apple black, the apple white and the like can be matched, and the matched pictures are deleted. Therefore, the situation that the developer forgets to delete the pictures of the various scenes corresponding to the pictures in the process of deleting a certain picture can be prevented, and the efficiency of deleting the pictures is improved.
Therefore, by the application package processing method provided by the embodiment of the application, the target application package can be searched for the picture, and the picture is matched and deleted by presetting the first keyword, so that the deletion efficiency of the picture can be improved, the volume of the application package is reduced, the time required by a user for downloading the application package is shortened, and the user experience is 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 picture to be deleted and the scene name of the picture to be deleted, which are obtained in advance, by using a regular expression to obtain a plurality of combined names.
The picture to be deleted is a predetermined picture to be deleted. And combining the picture name corresponding to the picture to be deleted, which is acquired in advance, with the scene name of the picture to be deleted by using the regular expression. The picture to be deleted is a predetermined picture to be deleted. The picture names and scenes can be combined by various names through a regular expression. For example, when a picture is named as an apple, and a group of pictures are generated for each night mode and day mode, possible names of the pictures can be expressed as [ apple ] + [ black ] + [ white ] or [ black ] [ apple ] | [ white ] [ apple ] by using a regular expression. And therefore, possible names of a plurality of pictures generated by the same picture are expressed, and a plurality of combined names are obtained.
In step S142, fuzzy matching is performed with the attribute information of each picture by using each of the plurality of combination names as a preset first keyword.
The first keywords generated by the regular expressions are subjected to fuzzy matching in the first name set, so that a plurality of names with certain differences with the first keywords can be matched, and a plurality of pictures generated corresponding to the original pictures can be found conveniently. For example, the combination name is apple+black, and the first keyword is used for fuzzy matching, so that pictures named apple_black, apple_black and the like can be matched. Thereby improving the efficiency of picture detection.
It can be seen that, by the method of the embodiment of the application, the identification of the picture corresponding to the picture to be deleted, which is obtained in advance, is combined with the scene name of the picture to be deleted by using the regular expression, and fuzzy matching is performed. Multiple 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 attribute information of each picture is acquired in step S13, the method further includes:
step S16, judging whether the attribute information of each picture contains a preset second keyword.
The second keyword may be a scene name corresponding to each picture. Acquiring the attribute names of the pictures can comprise acquiring scenes corresponding to the pictures, judging whether the attribute names of the pictures contain preset second keywords, and judging whether the attribute names of the pictures contain the second keywords or not by a fuzzy matching method of the attribute names of the pictures and the preset second keywords.
And S17, uploading the picture containing the second keyword to a cloud designated storage position as a target picture downloaded when an application program corresponding to the application program package runs.
The picture containing the second keyword is taken as a target picture downloaded when the application program corresponding to the application program package runs, the target picture can be deleted in the application program package, the target picture is uploaded to the cloud end, and the target picture is loaded when the target picture is possibly applied through the judgment of the progress of the program in the running process of the program by the preloading technology. Therefore, the target pictures can be deleted in the application program package, the purpose of reducing the installation package is achieved, normal running of the application program can be ensured through the target pictures downloaded when the application program corresponding to the application program package runs, and user experience is improved.
Therefore, by the method, whether the attribute information of each picture contains the preset second keyword or not is judged, 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 is uploaded to the cloud designated storage position, so that the size of the application program package can be reduced, and the picture containing the second keyword can be uploaded to the cloud designated storage position, so that the picture is downloaded from the cloud during the running of the program, and the normal running of the program is ensured.
Alternatively, referring to fig. 4, the second keyword is obtained by:
optionally, the second keyword is obtained by the following steps:
step S41, obtaining the use frequency of each scene when the application program corresponding to the application program package runs.
When the use frequency corresponding to each scene in the running process of the application program corresponding to the application program package is obtained, the scenes can be interfaces or modes applied by the pictures. For example, if an application program includes a night mode, a picture corresponding to the night mode may be acquired, and the night mode is a scene corresponding to the picture. Or, for example, after the user opens the program, the user enters the first layer interface of the program, and after the specified operation is performed in the first layer interface, the user may enter the second layer interface, and after the specified operation is performed in the second layer interface, the user may enter the third layer interface, for example, after opening a certain program, enter the main interface, i.e. the first layer interface, and click the setting option to enter the relevant setting interface, i.e. the second layer interface, click the setting of a certain attribute in the setting option, and enter the 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 pictures applied in the first layer interface, the second layer interface and the third layer interface are respectively used for acquiring the corresponding use frequency of each scene.
In step S42, the scene names corresponding to the scenes with the frequency of use smaller than the preset threshold are determined as the second keywords.
And determining scene names corresponding to the scenes with the use frequency smaller than a preset threshold as second keywords according to the obtained use frequencies corresponding to the scenes. For example, when the frequency of use of the first layer interface, the second layer interface, and the third layer interface is counted and a preset threshold value of the frequency of use of the third layer interface is obtained, determining the scene name corresponding to the third layer interface as the second keyword. For example, by counting 100000 times, 8000 times, and 50 times in a day, respectively, of the first layer interface, the second layer interface, and the third layer interface, the names of the scenes corresponding to the third layer interface can be determined as the second keywords.
Step S16 is a step of judging whether the attribute names of the pictures contain preset second keywords, and comprises the following steps:
step S161, determining whether the scene name in the attribute information of each picture includes a preset second keyword.
When the preset second keywords correspond to the scenes of the pictures, fuzzy matching can be performed between the scene names in the attribute names of the obtained pictures and the second keywords, so that the pictures in the pictures containing the second keywords can be deleted, and the size of the application program package of the target can be reduced.
Optionally, referring to fig. 5, the target application package is an application package in a development process, and the method further includes:
step S18, counting the data volume of the target application program package at regular intervals, and comparing the currently obtained statistical result with the statistical result obtained in the previous time;
and S19, when the difference between the current statistical result and the previous statistical result is larger than a preset threshold, sending reminding information.
Since development of the current application package is generally performed by cooperation of multiple development teams, each development team is responsible for development of a part of the functions of the application, in the process of developing the target application package, the data amount of pictures contained in the part of the functions responsible for each development team can be counted once every fixed time period, for example, counted 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 larger 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, uncompressed pictures and the like are added in a version iteration process, for example, 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 application, 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 pictures in each picture, where the attribute information of the pictures matches with a preset first keyword.
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 identification combination sub-module 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 combined 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 with attribute information of each picture by using each 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 attribute information of each picture includes a preset second keyword;
the cloud end uploading module 607 is configured to upload the picture including the second keyword as a target picture downloaded during the running of the application corresponding to the application package to the cloud end designated storage location.
Optionally, the second keyword is obtained by the following steps:
acquiring the use frequency of each scene when the application program corresponding to the application program package runs;
determining scene names corresponding to scenes with the use frequency smaller than a preset threshold as second keywords;
the step of judging whether the attribute information of each picture contains a preset second keyword or not comprises the following steps:
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 statistics module 608 is configured to regularly perform statistics on the data volume of the target application package, and compare the currently obtained statistics result with the previously obtained statistics result;
the information reminding module 609 is configured to send reminding information when a difference between the currently obtained statistical result and the previously obtained statistical result is greater than a preset threshold.
Therefore, by the application package processing device provided by the embodiment of the application, the target application package can be searched for the picture, and the picture is matched and deleted by presetting the first keyword, so that the deleting efficiency of the picture can be improved, the volume of the application package is reduced, the time required by a user for downloading the application package is shortened, and the user experience is improved.
The embodiment of the application also provides an electronic device, as shown in fig. 10, which comprises 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 communication with each other through the communication bus 1004,
a memory 1003 for storing a computer program;
the processor 1001 is configured to execute a program stored in the memory 1003, and implement 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 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 keywords in each picture.
Optionally, the processor may further implement any of the application package processing methods described above when executing the program stored on the memory.
The communication bus mentioned for the above-mentioned electronic devices may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include RAM (Random Access Memory ) or 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 aforementioned processor.
The processor may be a general-purpose processor, including a CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processor ), ASIC (Application Specific Integrated Circuit, application specific integrated circuit), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment of the present application, a computer readable storage medium is provided, in which a computer program is stored, the computer program implementing any one of the application package processing methods described above when executed by a processor.
In yet another embodiment of the present application, a computer program product comprising instructions that, when executed on a computer, cause the computer to perform any of the application package processing methods described above is also provided.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (8)

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;
deleting pictures in which the attribute information in each picture is matched with the preset first keyword;
judging whether scene names in the attribute information of each picture contain preset second keywords or not;
uploading the pictures containing the second keywords to a cloud appointed storage position as target pictures downloaded when the application program corresponding to the application program package runs;
the second keyword is obtained by the following steps:
acquiring the use frequency of each scene when the application program corresponding to the application program package runs;
and determining the scene names corresponding to the scenes with the use frequency smaller than the preset threshold value as second keywords.
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 picture to be deleted, which is obtained in advance, with 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 picture which is determined in advance and needs to be deleted;
and respectively 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.
3. The method of claim 1, wherein the target application package is an application package in a development process, the method further comprising:
the data volume of the target application program package is counted regularly, and the currently obtained counting result is compared with the counting result obtained in the previous time;
and when the difference value between the current obtained statistical result and the previous obtained statistical result is larger than a preset threshold value, sending reminding information.
4. An application package processing apparatus, comprising:
the program package acquisition module is used for acquiring a target application program package;
the image retrieval module is used for traversing the target application program package to obtain each image in the target application program package;
the information acquisition module is used for acquiring attribute information of each picture;
the information matching module is used for matching the attribute information of each picture with a preset first keyword;
the picture deleting module is used for deleting pictures in which the attribute information in each picture is matched with the preset first keyword;
the second keyword module is used for judging whether the scene name in the attribute information of each picture contains a preset second keyword or not;
the cloud end uploading module is used for uploading the pictures containing the second keywords to a cloud appointed storage position as target pictures downloaded when the application program corresponding to the application program package runs;
the second keyword is obtained by the following steps:
acquiring the use frequency of each scene when the application program corresponding to the application program package runs;
and determining the scene names corresponding to the scenes with the use frequency smaller than the preset threshold value as second keywords.
5. The apparatus of claim 4, 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 sub-module is used for combining the original name corresponding to the picture to be deleted, which is obtained in advance, with the scene name of the picture to be deleted by using the regular expression to obtain a plurality of combined names, wherein the picture to be deleted is a picture which is determined in advance and needs to be deleted;
and the fuzzy matching sub-module is used for performing fuzzy matching with the attribute information of each picture by taking each combination name in the plurality of combination names as a preset first keyword.
6. The apparatus of claim 4, wherein the target application package is an application package in a development process, the apparatus further comprising:
the data volume statistics module is used for periodically carrying out statistics on the data volume of the target application program package and comparing the current obtained statistical result with the previous obtained statistical 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 larger than a preset threshold value.
7. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-3 when executing said computer program stored on a memory.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-3.
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 CN112306542A (en) 2021-02-02
CN112306542B true 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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867971A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Application management method and device
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9430206B2 (en) * 2011-12-16 2016-08-30 Hsiu-Ping Lin Systems for downloading location-based application and methods using the same
US9471624B1 (en) * 2013-12-26 2016-10-18 Quixey, Inc. Method for recommending applications for deletion
US10496605B2 (en) * 2016-04-29 2019-12-03 Splunk Inc. Application deployment for data intake and query system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867971A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Application management method and device
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
CN112306542A (en) 2021-02-02

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
CN109710827B (en) Picture attribute management method and device, picture server and business processing terminal
CN111191124A (en) Method and device for determining interest label weight, storage medium and electronic equipment
CN108958755B (en) Method and device for generating application program installation package and electronic equipment
CN110121088A (en) A kind of customer attribute information determines method, apparatus and electronic equipment
CN112306542B (en) Application package processing method and device, electronic equipment and storage medium
CN110971529A (en) Data transmission method and device, electronic equipment and storage medium
CN110996142B (en) Video recall method and device, electronic equipment and storage medium
CN111399849A (en) Method and system for determining application program installation package
CN111338709B (en) Method, device, equipment and storage medium for jumping target scene in client
CN110674330B (en) Expression management method and device, electronic equipment and storage medium
CN114327375A (en) Method, tool and computer equipment for detecting java code dependency relationship
CN111399754B (en) Method and device for releasing storage space and distributed system
CN110691143B (en) File pushing method and device, electronic equipment and medium
CN108427706B (en) Information publishing method and device
CN114040223A (en) Image processing method and system
CN113868479A (en) Method and device for processing service data
CN108052648B (en) Website picture deleting method and device and electronic equipment
CN113064801A (en) Data point burying method and device, readable storage medium and computer equipment
CN112199529A (en) Picture processing method and device, electronic equipment and storage medium
CN112256820A (en) Document positioning method and device
KR20180090976A (en) Method and system for providing personalized notification within contents service
CN113971051B (en) Plug-in based development method, device and storage medium

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