CN112947974B - Desktop icon updating method, device and equipment and computer readable storage medium - Google Patents

Desktop icon updating method, device and equipment and computer readable storage medium Download PDF

Info

Publication number
CN112947974B
CN112947974B CN202110389050.3A CN202110389050A CN112947974B CN 112947974 B CN112947974 B CN 112947974B CN 202110389050 A CN202110389050 A CN 202110389050A CN 112947974 B CN112947974 B CN 112947974B
Authority
CN
China
Prior art keywords
desktop icon
attribute information
updating
desktop
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
CN202110389050.3A
Other languages
Chinese (zh)
Other versions
CN112947974A (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.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202110389050.3A priority Critical patent/CN112947974B/en
Publication of CN112947974A publication Critical patent/CN112947974A/en
Application granted granted Critical
Publication of CN112947974B publication Critical patent/CN112947974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of computers, and discloses a desktop icon updating method, which comprises the following steps: acquiring a preset desktop icon update script template according to the acquired desktop icon update instruction; loading attribute information to be displayed into a preset desktop icon update script template according to a preset attribute information display rule to obtain a desktop icon update script; loading attribute information to be displayed onto the original desktop icon picture through the desktop icon updating script to generate a new desktop icon; and taking the new desktop icon as the desktop icon of the application package to be installed. The invention also relates to a block chain technology, and the preset desktop icon updating script template is stored in the block chain. The method and the device can solve the problems that in the prior art, a designer needs to create different pictures as desktop icons to distinguish different program packages, so that manpower is wasted, package increment is caused, more information cannot be dynamically acquired, and the like.

Description

Desktop icon updating method, device and equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for updating a desktop icon, an electronic device, and a computer-readable storage medium.
Background
The desktop icon is a software identifier, and displays a corresponding application program on a desktop of a display screen of a computer or a mobile phone and the like. For software developers, debug (debug) and release (upgrade) packages are generated by xcode, and apprestore (program) packages are also directly downloaded from apprestore (software stores). For the three types of packages, if the desktop icons are simply seen, the packages cannot be distinguished, only the backdoor can be left through the codes and is printed and displayed, and the left backdoor can cause troubles to users due to misoperation and display of the users.
Therefore, the icons need to be added with contents to distinguish the three modes, so that developers and testers can recognize different versions at a glance.
It is conventional to create three sets of pictures for these three modes and then display the corresponding pictures in the different modes. However, this approach has significant limitations and drawbacks.
1. Three sets of pictures need to be cut simultaneously by an art designer, which causes the waste of manpower.
2. Not only does the development of adding three sets of pictures require setting up three sets of configurations, but the pictures result in packet increments.
3. The picture is a dead picture, and more information cannot be dynamically acquired.
4. Development and test are distinguished by only acquiring three modes, and more information cannot be acquired.
Disclosure of Invention
The invention provides a desktop icon updating method and device, electronic equipment and a computer readable storage medium, and mainly aims to solve the problems that in the prior art, different pictures are required to be created by art to distinguish different program packages to serve as desktop icons, so that manpower is wasted, package increment is caused, more information cannot be dynamically acquired, and the like.
In a first aspect, to achieve the above object, the present invention provides a desktop icon updating method, including:
acquiring a preset desktop icon update script template according to the acquired desktop icon update instruction; the desktop icon updating instruction comprises a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, wherein the application package to be installed comprises attribute information to be displayed and an original desktop icon picture;
loading the attribute information to be displayed into the preset desktop icon updating script template according to a preset attribute information display rule to obtain a desktop icon updating script;
loading the attribute information to be displayed onto the original desktop icon picture through the desktop icon updating script to generate a new desktop icon;
and taking the new desktop icon as the desktop icon of the application package to be installed.
In a second aspect, to solve the above problem, the present invention further provides a desktop icon updating apparatus, including:
the script template acquisition module is used for acquiring a preset desktop icon update script template according to the acquired desktop icon update instruction; the desktop icon updating instruction comprises a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, wherein the application package to be installed comprises attribute information to be displayed and an original desktop icon picture;
the attribute information loading module is used for loading the attribute information to be displayed into the preset desktop icon updating script template according to a preset attribute information display rule to obtain a desktop icon updating script;
the new desktop icon generating module is used for loading the attribute information to be displayed onto the original desktop icon image through the desktop icon updating script to generate a new desktop icon;
and the desktop icon replacing module is used for taking the new desktop icon as the desktop icon of the application program package to be installed.
In a third aspect, to solve the above problem, the present invention further provides an electronic apparatus, including:
a memory storing at least one instruction; and
and the processor executes the instructions stored in the memory to realize the steps of the desktop icon updating method.
In a fourth aspect, to solve the above problem, the present invention further provides a computer-readable storage medium, where at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the desktop icon updating method described above.
According to the desktop icon updating method, the desktop icon updating device, the electronic equipment and the computer readable storage medium, the preset desktop icon updating script template is obtained according to the obtained desktop icon updating instruction; loading the attribute information to be displayed in the application package to be installed into a preset desktop icon update script template according to a preset attribute information display rule to obtain a desktop icon update script; then, updating the script through the desktop icon, and loading the attribute information to be displayed on the original desktop icon picture to generate a new desktop icon; and finally, taking the new desktop icon as the desktop icon of the application package to be installed. The three sets of pictures are not required to be cut by the designer at the same time, so that the manpower resource of the designer is saved; three sets of environments are not required to be set for development, three sets of pictures are not required to be led in, and the size of the packet can be reduced; multiple related information of the software project, packaging environments (debug, release, appstore), dynamic acquisition of version numbers, development environments (test environment, development environment) and the like can be acquired through pictures; the attribute information added by the picture can be modified through the script, and the picture does not need to be provided again by an art designer; the script has universality, and different projects only need to be modified in a small amount of places.
Drawings
Fig. 1 is a schematic flowchart of a desktop icon updating method according to an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus for updating a Chinese desktop icon according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an internal structure of an electronic device implementing a method for updating a chinese desktop icon according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a desktop icon updating method. Fig. 1 is a schematic flow chart illustrating a desktop icon updating method according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the method for updating a desktop icon includes:
step S110, acquiring a preset desktop icon updating script template according to the acquired desktop icon updating instruction; the desktop icon updating instruction comprises a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, and the application package to be installed comprises attribute information to be displayed and an original desktop icon picture.
Specifically, each application corresponds to a plurality of application installation packages of different types or different versions, for example, a debug package, a release package, or an appstore package directly downloaded from an appstore may be used during development of a WeChat APP (application). The icons appearing on the desktop of the display after the various types of application program installation packages are all the same icons, namely desktop icons of WeChat, and the desktop icons can not be distinguished by simply watching the desktop icons, and only a back door can be left through codes for printing and displaying, but the left back door can cause misoperation and display of a user, so that trouble is caused to the user. Therefore, in order to solve the above problems, a desktop icon update script template is preset, each APP is matched with the preset desktop icon update script template, and according to the type or version of the application program installation package of the APP, a desktop icon with attribute information for displaying the application program package to be installed is generated through the preset desktop icon update script template, so that the effect of distinguishing the application program installation package from the desktop icon is achieved. The desktop icon update instruction includes a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, for example, a debug package with update wechat of 7.0, and then the desktop icon to be updated, that is, the wechat icon and the corresponding debug package of 7.0 need to be indicated in the desktop icon update instruction.
As an optional embodiment of the present invention, before acquiring a preset desktop icon update script template according to the acquired desktop icon update instruction, the method further includes:
when an application package to be installed is installed, generating application package installation information;
and triggering a desktop icon updating instruction pre-associated with the installation information of the application program package according to the installation information of the application program package.
Specifically, when an installation package of a certain type or version of a certain APP is installed, application package installation information is generated, a desktop icon update instruction pre-associated with the application package installation information is triggered according to the application package installation information, and the desktop icon is updated according to the desktop icon update instruction.
As an optional embodiment of the present invention, the storing the preset desktop icon update script template in the blockchain, and the obtaining the preset desktop icon update script template according to the obtained desktop icon update instruction includes:
acquiring a storage path of a preset desktop icon updating script template from an application program file library corresponding to the application program package to be installed according to the acquired desktop icon updating instruction;
and according to the storage path of the preset desktop icon updating script template, acquiring the preset desktop icon updating script template.
Specifically, the preset desktop icon update script template is stored in a file library of the application programs, and each application program is correspondingly matched with a corresponding file library, for example, a WeChat is correspondingly matched with a WeChat file library. And acquiring a storage path of the preset desktop icon updating script template from the file library of the application program, and searching the storage position of the preset desktop icon updating script template according to the storage path so as to acquire the preset desktop icon updating script template.
And step S120, loading the attribute information to be displayed into a preset desktop icon updating script template according to the preset attribute information display rule to obtain a desktop icon updating script.
Specifically, the attribute information to be displayed on the desktop icon can be set according to the needs of a technician, the information to be displayed is loaded into the preset desktop icon update script template, the loading of the attribute information on the desktop icon is completed through the obtained desktop icon update script, and the application package to be installed also comprises other attribute information except the attribute information to be displayed.
As an optional embodiment of the present invention, loading attribute information to be displayed into a preset desktop icon update script template according to a preset attribute information display rule, and obtaining a desktop icon update script includes:
acquiring attribute information to be displayed from an application package to be installed according to a preset attribute information display rule; the preset attribute information display rule comprises the type, the version number and the installation environment of the application program package to be installed;
and loading the attribute information to be displayed to the corresponding position of the desktop icon updating script as the input parameter to obtain the desktop icon updating script.
Specifically, in the preset attribute information display rule, a rule is set for loading which attribute information in the application package needs to be loaded to the preset desktop icon update script template, for example, the type, version number, and installation environment of the application package to be installed, and other contents can be also included and loaded to the preset desktop icon update script template, so as to obtain the desktop icon update script capable of being used for performing attribute information loading processing on the original desktop icon picture.
And step S130, loading the attribute information to be displayed on the original desktop icon picture through the desktop icon updating script to generate a new desktop icon.
Specifically, by starting the desktop icon update script, the desktop icon update script loads the attribute information to be displayed onto the original desktop icon picture, thereby generating a new desktop icon.
As an optional embodiment of the present invention, the updating the script through the desktop icon, and loading the attribute information to be displayed onto the original desktop icon image, and generating the new desktop icon includes:
acquiring an original desktop icon picture corresponding to the size of the desktop where the desktop icon to be updated is located from the original desktop icon picture of the application package to be installed, and taking the original desktop icon picture as a standby original desktop icon picture;
and loading the attribute information to be displayed to the corresponding position of the original desktop icon picture to be used through the desktop icon updating script to generate a new desktop icon.
Specifically, in order to be suitable for desktops of different sizes, each application program includes original desktop icon pictures of various sizes in various application program installation packages, the size of a desktop to be installed in the current application program installation package to be installed is identified through the device desktop identification program, so that the original desktop icon picture of the corresponding size is selected, then the desktop icon updating script is used, and the attribute information to be displayed is loaded to the corresponding position of the original desktop icon picture to be used, and a new desktop icon is generated.
As an optional embodiment of the present invention, after the updating the script through the desktop icon, loading the attribute information to be displayed onto the original desktop icon picture, and generating a new desktop icon, the method further includes:
adjusting the attribute information to be displayed loaded on the new desktop icon according to a preset attribute information design rule to be displayed to obtain a final-version new desktop icon; wherein,
the preset design rule of the attribute information to be displayed comprises the following steps: background color, text size, and text height.
Specifically, the information design of the attribute information to be displayed on the original desktop icon picture is set in advance as a preset attribute information design rule to be displayed, such as background color, character size and character height. Other information design contents can be included and set according to actual requirements. And adjusting the attribute information to be displayed on the new desktop icon according to the preset attribute information to be displayed design rule to obtain the final version new desktop icon.
And step S140, taking the new desktop icon as the desktop icon of the application program package to be installed.
Specifically, the new desktop icon is displayed on the desktop and serves as the desktop icon of the application package to be installed.
As an optional embodiment of the present invention, taking the new desktop icon as the desktop icon of the application package to be installed includes:
detecting whether an original desktop icon exists on a desktop in an application program corresponding to the desktop icon to be updated;
if the original desktop icon exists, replacing the original desktop icon with the new desktop icon;
and if the original desktop icon does not exist, taking the new desktop icon as the desktop icon of the application package to be installed.
Specifically, in order to avoid the occurrence of a plurality of desktop icons on the desktop, it is necessary to first detect whether an original desktop icon exists on the desktop in the application program corresponding to the updated desktop icon, and if the original desktop icon exists on the desktop, the original desktop icon is replaced with the new desktop icon; and if the original desktop icon does not exist, taking the new desktop icon as the desktop icon of the application package to be installed.
Fig. 2 is a functional block diagram of a desktop icon updating apparatus according to an embodiment of the present invention.
The desktop icon updating apparatus 200 of the present invention can be installed in an electronic device. According to the implemented functions, the desktop icon updating apparatus may include a script template obtaining module 210, an attribute information loading module 220, a new desktop icon generating module 230, and a desktop icon replacing module 240. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and can perform a fixed function, and are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the script template obtaining module 210 is configured to obtain a preset desktop icon update script template according to the obtained desktop icon update instruction; the desktop icon updating instruction comprises a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, and the application package to be installed comprises attribute information to be displayed and an original desktop icon picture.
Specifically, each application corresponds to a plurality of application installation packages of different types or different versions, for example, a debug package, a release package, or an appstore package directly downloaded from an appstore may be used during development of a WeChat APP (application). The icons appearing on the desktop of the display after the various types of application program installation packages are all the same icons, namely desktop icons of WeChat, and the desktop icons can not be distinguished by simply watching the desktop icons, and only a back door can be left through codes for printing and displaying, but the left back door can cause misoperation and display of a user, so that trouble is caused to the user. Therefore, in order to solve the above problems, a desktop icon update script template is preset, each APP is matched with the preset desktop icon update script template, and according to the type or version of the application program installation package of the APP, a desktop icon with attribute information for displaying the application program package to be installed is generated through the preset desktop icon update script template, so that the effect of distinguishing the application program installation package from the desktop icon is achieved. The desktop icon updating instruction includes a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, for example, a debug package with update wechat of 7.0, and then the desktop icon to be updated, that is, the wechat icon and the corresponding debug package of 7.0 need to be indicated in the desktop icon updating instruction.
As an optional embodiment of the present invention, before acquiring the preset desktop icon update script template according to the acquired desktop icon update instruction, the method further includes:
when an application program package to be installed is installed, generating application program package installation information;
and triggering a desktop icon updating instruction pre-associated with the application package installation information according to the application package installation information.
Specifically, when an installation package of a certain type or version of a certain APP is installed, application package installation information is generated, a desktop icon update instruction pre-associated with the application package installation information is triggered according to the application package installation information, and the desktop icon is updated according to the desktop icon update instruction.
As an optional embodiment of the present invention, the storing the preset desktop icon update script template in the blockchain, and the obtaining the preset desktop icon update script template according to the obtained desktop icon update instruction includes:
acquiring a storage path of a preset desktop icon updating script template from an application program file library corresponding to the application program package to be installed according to the acquired desktop icon updating instruction;
and according to the storage path of the preset desktop icon updating script template, acquiring the preset desktop icon updating script template.
Specifically, the preset desktop icon update script template is stored in a file library of the application programs, and each application program is correspondingly matched with a corresponding file library, for example, a WeChat is correspondingly matched with a WeChat file library. And acquiring a storage path of the preset desktop icon updating script template from the file library of the application program, and searching the storage position of the preset desktop icon updating script template according to the storage path so as to acquire the preset desktop icon updating script template.
The attribute information loading module 220 is configured to load the attribute information to be displayed into a preset desktop icon update script template according to a preset attribute information display rule, so as to obtain a desktop icon update script.
Specifically, the attribute information to be displayed on the desktop icon may be set according to the needs of a technician, and the information to be displayed is loaded into the preset desktop icon update script template, and the loading of the attribute information on the desktop icon is completed through the obtained desktop icon update script, wherein the application package to be installed further includes other attribute information besides the attribute information to be displayed.
As an optional embodiment of the present invention, loading attribute information to be displayed into a preset desktop icon update script template according to a preset attribute information display rule, and obtaining a desktop icon update script includes:
acquiring attribute information to be displayed from an application package to be installed according to a preset attribute information display rule; the preset attribute information display rule comprises the type, the version number and the installation environment of the application program package to be installed;
and loading the attribute information to be displayed to the corresponding position of the desktop icon updating script as the input parameter to obtain the desktop icon updating script.
Specifically, in the preset attribute information display rule, a rule is set for loading which attribute information in the application package needs to be loaded to the preset desktop icon update script template, for example, the type, version number, and installation environment of the application package to be installed, and other contents can be also included and loaded to the preset desktop icon update script template, so as to obtain the desktop icon update script capable of being used for performing attribute information loading processing on the original desktop icon picture.
And a new desktop icon generating module 230, configured to load the attribute information to be displayed onto the original desktop icon image through the desktop icon update script, and generate a new desktop icon.
Specifically, by starting the desktop icon update script, the desktop icon update script loads the attribute information to be displayed onto the original desktop icon image, thereby generating a new desktop icon.
As an optional embodiment of the present invention, the updating the script through the desktop icon, and loading the attribute information to be displayed onto the original desktop icon image, and generating the new desktop icon includes:
acquiring an original desktop icon picture corresponding to the size of the desktop where the desktop icon to be updated is located from the original desktop icon picture of the application package to be installed, and taking the original desktop icon picture as a standby original desktop icon picture;
and loading the attribute information to be displayed to the corresponding position of the original desktop icon picture to be used through the desktop icon updating script to generate a new desktop icon.
Specifically, in order to be suitable for desktops of different sizes, each application program includes original desktop icon pictures of various sizes in various application program installation packages, the size of a desktop to be installed in the current application program installation package to be installed is identified through the device desktop identification program, so that the original desktop icon picture of the corresponding size is selected, then the desktop icon updating script is used, and the attribute information to be displayed is loaded to the corresponding position of the original desktop icon picture to be used, and a new desktop icon is generated.
As an optional embodiment of the present invention, after loading attribute information to be displayed onto the original desktop icon picture through a desktop icon update script and generating a new desktop icon, the method further includes:
adjusting the attribute information to be displayed loaded on the new desktop icon according to a preset attribute information design rule to be displayed to obtain a final-version new desktop icon; wherein,
the preset design rule of the attribute information to be displayed comprises the following steps: background color, text size, and text height.
Specifically, the information design of the attribute information to be displayed on the original desktop icon picture is set in advance as a preset attribute information design rule to be displayed, such as background color, character size and character height. Other information design contents can be included and set according to actual requirements. And adjusting the attribute information to be displayed on the new desktop icon according to a preset attribute information to be displayed design rule to obtain a final-version new desktop icon.
And the desktop icon replacing module 240 is configured to use the new desktop icon as the desktop icon of the application package to be installed.
Specifically, the new desktop icon is displayed on the desktop and serves as the desktop icon of the application package to be installed.
As an optional embodiment of the present invention, taking the new desktop icon as the desktop icon of the application package to be installed includes:
detecting whether an original desktop icon exists on a desktop in an application program corresponding to the desktop icon to be updated;
if the original desktop icon exists, replacing the original desktop icon with the new desktop icon;
and if the original desktop icon does not exist, taking the new desktop icon as the desktop icon of the application package to be installed.
Specifically, in order to avoid the occurrence of a plurality of desktop icons on the desktop, it is necessary to first detect whether an original desktop icon exists on the desktop in the application program corresponding to the updated desktop icon, and if the original desktop icon exists on the desktop, the original desktop icon is replaced with the new desktop icon; and if the original desktop icon does not exist, taking the new desktop icon as the desktop icon of the application package to be installed.
Fig. 3 is a schematic structural diagram of an electronic device implementing a desktop icon updating method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a desktop icon update program 12, stored in the memory 11 and operable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes of desktop icon update programs, etc., but also to temporarily store data that has been output or will be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., desktop icon update programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The desktop icon update program 12 stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, and when running in the processor 10, can realize:
acquiring a preset desktop icon update script template according to the acquired desktop icon update instruction; the desktop icon updating instruction comprises a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, wherein the application package to be installed comprises attribute information to be displayed and an original desktop icon picture;
loading attribute information to be displayed into a preset desktop icon update script template according to a preset attribute information display rule to obtain a desktop icon update script;
loading attribute information to be displayed onto the original desktop icon image through the desktop icon updating script to generate a new desktop icon;
and taking the new desktop icon as the desktop icon of the application program package to be installed.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again. It should be emphasized that, in order to further ensure the privacy and security of the preset desktop icon update script template, the preset desktop icon update script template may also be stored in a node of a block chain.
Further, the integrated modules/units of the electronic device 1 may be stored in a computer readable storage medium if they are implemented in the form of software functional units and sold or used as independent products. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM).
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. A desktop icon updating method is applied to an electronic device, and is characterized by comprising the following steps:
when an application package to be installed is installed, generating application package installation information;
triggering a desktop icon updating instruction pre-associated with the application program package installation information according to the application program package installation information;
acquiring a preset desktop icon updating script template according to the acquired desktop icon updating instruction; the desktop icon updating instruction comprises a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, wherein the application package to be installed comprises attribute information to be displayed and an original desktop icon picture;
loading the attribute information to be displayed into the preset desktop icon updating script template according to a preset attribute information display rule to obtain a desktop icon updating script; the preset attribute information display rule comprises the type, the version number and the installation environment of the application package to be installed;
loading the attribute information to be displayed onto the original desktop icon picture through the desktop icon updating script to generate a new desktop icon;
and taking the new desktop icon as the desktop icon of the application package to be installed.
2. The method for updating a desktop icon according to claim 1, wherein the preset desktop icon update script template is stored in a block chain, and the obtaining the preset desktop icon update script template according to the obtained desktop icon update instruction comprises:
according to the obtained desktop icon updating instruction, obtaining a storage path of the preset desktop icon updating script template from a file library of an application program corresponding to the application program package to be installed;
and obtaining the preset desktop icon update script template according to the storage path of the preset desktop icon update script template.
3. The method for updating a desktop icon according to claim 1, wherein the loading the attribute information to be displayed into the preset desktop icon update script template according to a preset attribute information display rule to obtain a desktop icon update script comprises:
acquiring attribute information to be displayed from the application package to be installed according to the preset attribute information display rule; and loading the attribute information to be displayed to the corresponding position of the desktop icon updating script as an input parameter to obtain the desktop icon updating script.
4. The method for updating the desktop icon according to claim 1, wherein the loading the attribute information to be displayed onto the original desktop icon picture through the desktop icon update script, and generating a new desktop icon comprises:
acquiring an original desktop icon picture corresponding to the size of the desktop where the desktop icon to be updated is located from the original desktop icon picture of the application package to be installed, and taking the original desktop icon picture as a standby original desktop icon picture;
and loading the attribute information to be displayed to the corresponding position of the original desktop icon picture to be used through the desktop icon updating script to generate a new desktop icon.
5. The method for updating a desktop icon according to claim 1, wherein after the generating a new desktop icon by loading the attribute information to be displayed onto the original desktop icon image through the desktop icon update script, further comprises:
adjusting the attribute information to be displayed loaded on the new desktop icon according to a preset attribute information design rule to be displayed to obtain a final-version new desktop icon; wherein,
the preset attribute information to be displayed design rule comprises the following steps: background color, text size, and text height.
6. The desktop icon updating method of claim 1, wherein the step of using the new desktop icon as the desktop icon of the application package to be installed comprises:
detecting whether an original desktop icon exists on the desktop in the application program corresponding to the desktop icon to be updated;
if the original desktop icon exists, replacing the original desktop icon with the new desktop icon;
and if the original desktop icon does not exist, taking the new desktop icon as the desktop icon of the application package to be installed.
7. An apparatus for updating a desktop icon, the apparatus comprising:
the information generation module is used for generating application program package installation information when the application program package to be installed is installed;
the triggering module is used for triggering a desktop icon updating instruction which is pre-associated with the installation information of the application program package according to the installation information of the application program package;
the script template acquisition module is used for acquiring a preset desktop icon update script template according to the acquired desktop icon update instruction; the desktop icon updating instruction comprises a desktop icon to be updated and an application package to be installed corresponding to the desktop icon to be updated, wherein the application package to be installed comprises attribute information to be displayed and an original desktop icon picture;
the attribute information loading module is used for loading the attribute information to be displayed into the preset desktop icon updating script template according to a preset attribute information display rule to obtain a desktop icon updating script; the preset attribute information display rule comprises the type, the version number and the installation environment of the application package to be installed;
the new desktop icon generating module is used for loading the attribute information to be displayed onto the original desktop icon image through the desktop icon updating script to generate a new desktop icon;
and the desktop icon replacing module is used for taking the new desktop icon as the desktop icon of the application package to be installed.
8. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the desktop icon updating method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the desktop icon updating method as claimed in any one of claims 1 to 6.
CN202110389050.3A 2021-04-12 2021-04-12 Desktop icon updating method, device and equipment and computer readable storage medium Active CN112947974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110389050.3A CN112947974B (en) 2021-04-12 2021-04-12 Desktop icon updating method, device and equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110389050.3A CN112947974B (en) 2021-04-12 2021-04-12 Desktop icon updating method, device and equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112947974A CN112947974A (en) 2021-06-11
CN112947974B true CN112947974B (en) 2022-10-28

Family

ID=76231742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110389050.3A Active CN112947974B (en) 2021-04-12 2021-04-12 Desktop icon updating method, device and equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112947974B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6546417B1 (en) * 1998-12-10 2003-04-08 Intellinet, Inc. Enhanced electronic mail system including methods and apparatus for identifying mime types and for displaying different icons
CN108388428A (en) * 2018-01-23 2018-08-10 北京五八信息技术有限公司 Switch method, apparatus, electronic equipment and the storage medium of application software icon

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097421A1 (en) * 2001-10-04 2003-05-22 Wille Allan D. System and method for directed delivery of information to end users
CN102799438A (en) * 2012-07-19 2012-11-28 腾讯科技(深圳)有限公司 Application updates prompting method and desktop management platform
US9367403B2 (en) * 2012-12-10 2016-06-14 Dongguan Yulong Telecommunication Tech Co., Ltd. Terminal and application restoring method
CN105653130B (en) * 2015-12-29 2019-01-04 小米科技有限责任公司 Show the method, apparatus and terminal of icon
CN105892816A (en) * 2016-03-31 2016-08-24 北京奇虎科技有限公司 Method and device for calculating equipment desktop resetting
CN106055243A (en) * 2016-05-23 2016-10-26 北京金山安全软件有限公司 Application icon processing method and device and electronic equipment
US11775273B2 (en) * 2016-06-08 2023-10-03 Veriversion Labs Ltd. Methods and systems of software testing, distribution, installation and deployment
CN107066294B (en) * 2017-03-17 2020-12-29 深圳市邦华电子有限公司 Application installation method and device and intelligent terminal
CN109471988B (en) * 2018-10-12 2024-06-25 平安科技(深圳)有限公司 Page information updating method and device, computer equipment and storage medium
CN110399195B (en) * 2019-07-30 2024-01-09 努比亚技术有限公司 Desktop icon dynamic replacement method, equipment and computer readable storage medium
CN112379810B (en) * 2020-12-08 2022-09-09 四川酷赛科技有限公司 Method for dynamically adjusting size of desktop icon and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6546417B1 (en) * 1998-12-10 2003-04-08 Intellinet, Inc. Enhanced electronic mail system including methods and apparatus for identifying mime types and for displaying different icons
CN108388428A (en) * 2018-01-23 2018-08-10 北京五八信息技术有限公司 Switch method, apparatus, electronic equipment and the storage medium of application software icon

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
将版本信息显示在App图标上;杏树林;《https://blog.csdn.net/xsl_bj/article/details/51120285》;20160411;第1-4页 *

Also Published As

Publication number Publication date
CN112947974A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN111625252A (en) Cluster upgrading maintenance method and device, electronic equipment and storage medium
CN112685117A (en) System language internationalization maintenance method, device and computer readable storage medium
CN112579098A (en) Software release method and device, electronic equipment and readable storage medium
CN113051171A (en) Interface test method, device, equipment and storage medium
CN114385497A (en) Test environment generation method and device, electronic equipment and storage medium
CN112214256B (en) Machine learning operation control method and device, electronic equipment and storage medium
CN111858604B (en) Data storage method and device, electronic equipment and storage medium
CN112579475A (en) Code testing method, device, equipment and readable storage medium
CN112947974B (en) Desktop icon updating method, device and equipment and computer readable storage medium
CN113515265B (en) Site configuration method, device, equipment and computer readable storage medium
CN113468458B (en) WEB-based application running method
CN114911479A (en) Interface generation method, device, equipment and storage medium based on configuration
CN113505079A (en) Application program testing method, device, equipment and medium
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN114036068A (en) Update detection method, device, equipment and storage medium based on privacy security
CN114020414A (en) Symbiotic method and device of Android system and bottom layer Linux, electronic equipment and storage medium
CN112527443A (en) Prompt box display method and device, electronic equipment and computer readable storage medium
CN113485711A (en) Task triggering method and device based on dependency relationship, electronic equipment and medium
CN114564413B (en) Synchronous equipment testing method and device
CN112631573B (en) Component adding method, device, equipment and computer readable storage medium
CN113360398B (en) Hybrid application program testing method, device, equipment and medium
CN114579117A (en) Visual configuration method and device, electronic equipment and storage medium
CN112637280B (en) Data transmission method, device, electronic equipment and storage medium
CN112596829A (en) Lottie-based prompt box generation method and device, electronic equipment 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