Application installation package processing methods, apparatus, device and storage medium

By compressing the language resource files during the application installation package packaging process, the problem of excessive volume of the application installation package is solved and the installation conversion rate is improved.

WO2025029189A1PCT designated stage expired Publication Date: 2025-02-06LEMON INC(GB)
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/SG2024/050476
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-28
Filing Date
2024-07-26
Publication Date
2025-02-06

AI Technical Summary

Technical Problem

The volume of the application installation package is too large, resulting in a decrease in the installation conversion rate, and it is difficult for the prior art to effectively reduce the installation package volume.

Method used

During the application installation package packaging process, the language resource file is compressed, the language resource compression package is generated, and it is packaged into the application installation package.

Benefits of technology

This significantly reduces the volume of the application installation package, thereby improving installation conversion rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure SG2024050476_06022025_PF_FP_ABST
    Figure SG2024050476_06022025_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure provides application installation package processing methods, an apparatus, a device and a storage medium. A method comprises: acquiring language resource files of at least one language type; in response to an installation package packaging request, compressing at least part of the language resource files of the at least one language type to obtain a language resource compressed package; and packaging the language resource compressed package to obtain an application installation package. The application installation package processing methods provided in the embodiments of the present disclosure compress language resource files, so as to reduce the size of installation packages, thus improving the installation conversion rate of the application installation packages.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Method, device, equipment and storage medium for processing application installation packages This application claims priority to Chinese patent application No. 202310948494.5 filed on July 28, 2023. The contents disclosed in the above Chinese patent application are hereby incorporated by reference in their entirety as part of this application. Technical field The embodiments of the present disclosure relate to a method, device, equipment and storage medium for processing application installation packages. Background technology The excessive size of application installation packages has always been a problem that needs to be solved in the industry. With the increasing number of business iterations, application installation packages will inevitably produce a lot of uncontrollable volume increments. Larger application installation packages will lead to lower installation conversion rates, so reducing the size of application installation packages is particularly important. Summary of the invention The embodiments of the present disclosure provide a method, device, equipment and storage medium for processing application installation packages. By compressing language resource files during the packaging process of the application installation package, the size of the application installation package can be greatly reduced. In a first aspect, embodiments of the present disclosure provide a method for processing an application installation package, comprising: obtaining a language resource file of at least one language type; in response to an installation package packaging request, compressing at least a portion of the language resource file of the at least one language type to obtain a language resource compressed package; and packaging the language resource compressed package to obtain an application installation package. In a second aspect, embodiments of the present disclosure also provide a method for processing an application installation package, comprising: in response to an application launch request, obtaining first resource version information of the language resource file in the application installation package and second resource version information in a local resource directory; wherein the application corresponds to the application installation package; the application installation package includes a language resource compressed package of at least one language type; the language resource compressed package is obtained by compressing the language resource file; the second resource version information is verified based on the first resource version information; and after the verification is complete, obtaining a target language resource file based on a triggered resource request; wherein the resource request carries the target language type. In a third aspect, embodiments of the present disclosure further provide an apparatus for processing an application installation package, comprising: a language resource file acquisition module, configured to acquire a language resource file of at least one language type; a language resource file compression module, configured to respond to an installation package packaging request and compress at least a portion of the language resource file of the at least one language type to obtain a language resource compressed package; and an application installation package packaging module, configured to package the language resource compressed package to obtain an application installation package.In a fourth aspect, embodiments of the present disclosure further provide an apparatus for processing an application installation package, comprising: a resource version information acquisition module, configured to, in response to an application startup request, acquire first resource version information of a language resource file in the application installation package and second resource version information in a local resource directory; wherein the application corresponds to the application installation package; the application installation package includes a language resource compression package of at least one language type; the language resource compression package is obtained by compressing a language resource file; a verification module, configured to verify the second resource version information based on the first resource version information; and a target language resource file acquisition module, configured to, after verification is complete, acquire a target language resource file based on a triggered resource request; wherein the resource request carries the target language type. In a sixth aspect, embodiments of the present disclosure further provide an electronic device, comprising: one or more processors; and a storage device, configured to store one or more programs, such that when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing an application installation package as described in embodiments of the present disclosure. In a seventh aspect, embodiments of the present disclosure further provide a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform the method for processing an application installation package as described in the embodiments of the present disclosure. The foregoing and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the accompanying drawings and the following detailed description. Throughout the drawings, identical or similar reference numerals represent identical or similar elements. It should be understood that the drawings are schematic, and the components and elements are not necessarily drawn to scale. Figure 1 is a flow chart of a method for processing an application installation package provided in an embodiment of the present disclosure; Figure 2 is a flow chart of a method for processing an application installation package provided in an embodiment of the present disclosure; Figure 3 is a flow chart of a method for processing an application installation package provided in an embodiment of the present disclosure; Figure 4 is a schematic diagram of the structure of an apparatus for processing an application installation package provided in an embodiment of the present disclosure; Figure 5 is a schematic diagram of the structure of an apparatus for processing an application installation package provided in an embodiment of the present disclosure; and Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE EMBODIMENTS The embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in a different order and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit steps shown. The scope of the present disclosure is not limited in this respect. The term "including" and its variations as used herein are open-ended, including but not limited to, the term "based on" being "based, at least in part, on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments." Definitions of other terms are provided below. It should be noted that the concepts of "first" and "second" mentioned in this disclosure are merely used to distinguish different devices, modules, or units, and are not intended to limit the order or interdependence of the functions performed by these devices, modules, or units. It should be noted that the modifiers "one" and "multiple" mentioned in this disclosure are illustrative and non-restrictive. Those skilled in the art should understand that, unless the context clearly indicates otherwise, they should be understood to mean "one or more." The names of the messages or information exchanged between the multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information. It should be understood that before using the technical solutions disclosed in the various embodiments of this disclosure, In accordance with relevant laws and regulations, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure and their authorization should be obtained through appropriate means. For example, in response to a user's active request, a prompt message may be sent to the user to clearly inform the user that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the technical solution of this disclosure based on the prompt message. As an optional but non-limiting implementation, in response to a user's active request, the prompt message may be sent to the user in the form of a pop-up window, in which the prompt message may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "Agree" or "Disagree" to provide personal information to the electronic device. It is understood that the above notification and user authorization process is merely illustrative and does not limit the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure. It is understood that the data involved in this technical solution (including but not limited to the data itself, The acquisition or use of data shall comply with the requirements of relevant laws, regulations and provisions.Application installation packages contain a portion of language resource files used to switch the application's language (also known as the language type). Language resource files occupy a large portion of the application installation package, but their compression rate is very high. Therefore, the language resource files can be compressed when packaging the application installation package and decompressed before launching the application. This can improve installation conversion rates to a certain extent. Figure 1 is a flow diagram of a method for processing an application installation package provided by an embodiment of the present disclosure. This embodiment of the present disclosure is applicable to processing application installation packages. The method can be executed by an application installation package processing device, which can be implemented in software and / or hardware. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server. As shown in Figure 1, the method includes:

[0002] S110: Obtain a language resource file of at least one language type. The term "language type" can be understood as a language type, i.e., a language. A language resource file can be understood as a resource file that displays application interface content in a certain language type, and can also be referred to as a translation resource file. In this embodiment, when an application developer develops or upgrades an application, they need to develop or update the language resource file corresponding to the application and submit the developed or updated language resource file to obtain at least one language resource file. For applications installed on different operating systems, the language resource file is presented in the format corresponding to the operating system.

[0003] S120: In response to the installation package packaging request, at least a portion of the language resource files of at least one language type is compressed to obtain a language resource compressed package. The at least a portion of the language resource files of at least one language type can be understood as part or all of the language resource files of at least one language type. The installation package packaging request can be triggered by the user. The language resource files can be compressed using any existing compression algorithm, which is not limited here, for example, ZIP compression. In this embodiment, upon detecting the installation package packaging request, part or all of the obtained language resource files are compressed to obtain a language resource compressed package. Optionally, compressing at least a portion of the language resource files of at least one language type to obtain the language resource compressed package can be performed by obtaining a target language type and compressing language resource files of non-target language types to obtain a language resource compressed package corresponding to the non-target language type. The target language type can be a user-set language type, such as Chinese, English, or French, which is not limited here. To facilitate subsequent application switching between various language types, language resource files corresponding to multiple language types are developed. When compressing language resource files, only language resource files in non-target languages ​​are compressed; language resource files corresponding to the target language are not compressed. For example, assuming the language resource files include Chinese and English resource files, and if the target language is English, the Chinese resource files are compressed, while the English resource files are not. In this embodiment, compressing language resource files in non-target languages ​​prevents decompression issues when launching an application. This prevents application startup failures caused by decompression issues, requiring the language resource files corresponding to the target language to be loaded as a fallback.

[0004] S130: Package the language resource compressed package to obtain an application installation package. The process of packaging the language resource compressed package can be understood as adding the language resource compressed package to an executable resource file, so that the application can be successfully launched by loading the generated application installation package. Optionally, the process of packaging the language resource compressed package to obtain the application installation package can include placing the language resource compressed package into an executable resource file to obtain the application installation package. The executable resource file can be in a set format. Specifically, after obtaining the language resource compressed package, the compressed language resource package is placed into an executable file in the set format to obtain the application installation package. The technical solution of the disclosed embodiment comprises obtaining a language resource file of at least one language type; in response to an installation package packaging request, compressing at least a portion of the language resource file of the at least one language type to obtain a language resource compressed package; and packaging the language resource compressed package to obtain an application installation package. The application installation package processing method provided in the disclosed embodiment compresses the language resource files to reduce the size of the installation package, thereby improving the installation conversion rate of the application installation package. Optionally, FIG2 illustrates a method for processing an application installation package provided by an embodiment of the present disclosure. This method is applicable to processing application installation packages and can be executed by an application installation package processing device. This device can be implemented in software and / or hardware. Optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server. As shown in FIG2 , the method includes the following steps:

[0005] S210: In response to the application launch request, obtain first resource version information of the language resource file in the application installation package and second resource version information in the local resource directory. The application corresponds to the application installation package; the application installation package includes a language resource compressed package of at least one language type; the language resource compressed package is obtained by compressing the language resource file. The first resource version information can be understood as the version information corresponding to the language resource file in the application installation package. The second resource version information can be understood as the version information corresponding to the language resource file of the application already installed on the terminal device. Both the first resource version information and the second resource version information are reflected in the form of setting fields. Optionally, obtaining the first resource version information of the language resource file in the application installation package may be performed by: obtaining a first configuration file in the application installation package; and extracting the first resource version information of the language resource file from the first configuration file. The first configuration file is stored in the executable file of the application installation package, and then extracting the first resource version information corresponding to the resource version field of the language resource file from the first configuration file. Optionally, obtaining the second resource version information of the language resource file in the local resource directory may be performed by: obtaining a second configuration file in the local resource directory; and extracting the second resource version information of the language resource file from the second configuration file. The local resource directory is used to display locally stored language resource files, and the second configuration file is used to store version information corresponding to the local language resource files.

[0006] S220: Verify the second resource version information based on the first resource version information. In this application scenario, after development, the application will continue to be updated and upgraded. Therefore, the language resource files will have different versions. To ensure that the application starts with the latest version, the first resource version information in the application installation package is used to verify the second resource version information in the local resource directory. Only after the verification is complete will the latest target resource file be loaded to start the application. Optionally, the second resource version information can be verified based on the first resource version information: if the first resource version information and the second resource version information are the same, the second resource version information in the local resource directory remains unchanged; if the first resource version information and the second resource version information are different, the second resource version information in the local resource directory is replaced with the first resource version information. If the first resource version information and the second resource version information are the same, it indicates that the target resource file in the local directory is the latest and does not need to be updated. If the first resource version information and the second resource version information are different, it indicates that the target resource file in the local directory is not the latest and needs to be updated. Specifically, the process of replacing the second resource version information in the local resource directory with the first resource version information may include: clearing the second configuration file in the local resource directory, and then adding the first configuration file containing the first resource version information to the local directory. Optionally, if the second resource version information in the local resource directory is not obtained, the first resource version information is added to the local resource directory. If the second resource version information in the local resource directory is not obtained, it indicates that the application corresponding to the application installation package is being installed and launched on the terminal device for the first time. In this case, the first resource version information is directly added to the local resource directory to facilitate subsequent application launches.

[0007] S230: After verification is complete, the target language resource file is obtained based on the triggered resource request. The resource request includes the target language type. The resource request is triggered by the user or automatically. In this application scenario, when launching the application, the user selects the language type, and the terminal generates a resource request based on the user-triggered selection. Alternatively, if no user-triggered target language selection operation is detected when launching the application, a resource request corresponding to the default language type is automatically generated. Optionally, the process of obtaining the target language resource file based on the triggered resource request may include: determining whether a decompressed target language resource file corresponding to the resource request exists in the local resource directory; if the decompressed target language resource file corresponding to the resource request does not exist in the local resource directory, decompressing the resource package corresponding to the resource request to obtain the target language resource file. In this embodiment, after detecting the triggered resource request, the terminal first determines whether a decompressed target language resource file corresponding to the resource request already exists in the local resource directory. If so, the target language resource file is directly obtained. If not, the resource package corresponding to the resource request is decompressed to obtain the target language resource file. In this embodiment, a determination is first made as to whether the local resource directory already contains a decompressed target language resource file corresponding to the resource request. This prevents repeated decompression of the language resource package, thereby saving resources. Optionally, decompressing the language resource package corresponding to the resource request to obtain the target language resource file may involve launching a child thread, which decompresses the language resource package corresponding to the resource request to obtain the target language resource file. The child thread is launched based on a user-triggered resource request and is a child thread relative to the main thread. The main thread is used to obtain the target language resource file to launch the application, while the child thread is used to decompress the language resource package. In this embodiment, decompressing the language resource package corresponding to the resource request by the child thread can improve the application startup speed. In this embodiment, the target language resource file corresponds to the target language type. After obtaining the target language resource file, the application is launched based on the target language resource file, so that the launched application displays in the target language type. For example, based on the above embodiment, FIG3 is a flow chart of a method for processing an application installation package in an embodiment of the present disclosure. As shown in FIG3 , the method includes the following steps:

[0008] S310: Respond to the application startup request and obtain first resource version information in the application installation package.

[0009] S320, determine whether the second resource version information exists in the local resource directory; if so, execute S330, otherwise, execute S340.

[0010] S330: Determine whether the first resource version information and the second resource version information are the same. If they are not the same, execute S340; if they are the same, execute S350.

[0011] S340: Clear the local resource directory and add the first resource version information to the local resource directory.

[0012] S350: Obtain a resource request triggered by a user.

[0013] S360: Determine whether the decompressed target language resource file corresponding to the resource request exists in the local resource directory. If so, execute 380; otherwise, execute S370. S370: Decompress the language resource compressed package corresponding to the resource request to obtain the target language resource file.

[0014] S380: Obtain the target language resource file from the local resource directory. The technical solution of this disclosed embodiment involves, in response to an application startup request, obtaining first resource version information of the language resource file in the application installation package and second resource version information in the local resource directory. The application corresponds to the application installation package; the application installation package includes a language resource compressed package of at least one language type; the language resource compressed package is obtained by compressing the language resource file; the second resource version information is verified based on the first resource version information; after the verification is complete, the target language resource file is obtained based on a triggered resource request; the resource request carries the target language type. In this embodiment, the second resource version information is verified based on the first resource version information to ensure that the application is launched based on the latest version of the resource file. Figure 4 is a schematic diagram of the structure of an application installation package processing device provided by an embodiment of the present disclosure. As shown in Figure 4, the device includes: a language resource file acquisition module 410, configured to acquire language resource files of at least one language type; a language resource file compression module 420, configured to respond to an installation package packaging request and compress at least a portion of the language resource files of the at least one language type to obtain a language resource compressed package; and an application installation package packaging module 430, configured to package the language resource compressed package to obtain an application installation package. Optionally, language resource file compression module 420 is further configured to: acquire a target language type; and compress language resource files of non-target language types to obtain language resource compressed packages corresponding to the non-target language types. FIG5 is a schematic diagram of the structure of an application installation package processing device provided by an embodiment of the present disclosure. As shown in FIG5 , the device includes: a resource version information acquisition module 510, configured to respond to an application startup request and acquire first resource version information of a language resource file in the application installation package and second resource version information in a local resource directory; wherein the application corresponds to the application installation package; the application installation package includes a language resource compressed package of at least one language type; the language resource compressed package is obtained by compressing a language resource file; a verification module 520, configured to verify the second resource version information based on the first resource version information; and a target language resource file acquisition module 530, configured to acquire a target language resource file based on a triggered resource request after verification is complete; wherein the resource request carries the target language type.Optionally, the verification module 520 is further configured to: if the first resource version information and the second resource version information are the same, keep the second resource version information in the local resource directory unchanged; if the first resource version information and the second resource version information are different, replace the second resource version information in the local resource directory with the first resource version information. Optionally, the verification module 520 is further configured to: if the second resource version information in the local resource directory is not obtained, add the first resource version information to the local resource directory. Optionally, the target language resource file acquisition module 530 is further configured to: determine whether a decompressed target language resource file corresponding to the resource request exists in the local resource directory; if a decompressed target language resource file corresponding to the resource request does not exist in the local resource directory, extract a language resource compressed package corresponding to the resource request from the application installation package, and decompress the language resource compressed package to obtain the target language resource file. Optionally, the target language resource file acquisition module 530 is further configured to: initiate a sub-thread, and decompress the language resource compressed package corresponding to the resource request via the sub-thread to obtain the target resource file. The application installation package processing device provided in the embodiments of the present disclosure can execute the application installation package processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as they can achieve the corresponding functions. In addition, the specific names of the functional units are only for the purpose of mutual distinction and are not intended to limit the scope of protection of the embodiments of the present disclosure. Figure 6 is a schematic diagram of the structure of an electronic device provided in the embodiments of the present disclosure. Referring now to Figure 6, it shows a schematic diagram of the structure of an electronic device (e.g., the terminal device or server in Figure 6) 500 suitable for implementing the embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG6 is merely an example and should not limit the functionality or scope of use of the embodiments of the present disclosure.As shown in FIG6 , electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 502 or programs loaded from a storage device 508 into a random access memory (RAM) 503. RAM 503 also stores various programs and data required for the operation of electronic device 500. Processing device 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to bus 504. Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; a storage device 508 including, for example, a magnetic tape, hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or wired to exchange data. Although FIG6 shows an electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may alternatively be implemented or present. In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via communication device 509, or installed from storage device 508, or installed from ROM 502. When executed by processing device 501, the computer program performs the aforementioned functions defined in the method of the embodiment of the present disclosure. The names of the messages or information exchanged between the multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information. The electronic device provided in the embodiment of the present disclosure and the method for processing application installation packages provided in the above embodiment are based on the same inventive concept. Technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment. The embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When executed by a processor, the program implements the method for processing application installation packages provided in the above embodiment.It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), or any suitable combination thereof. In some embodiments, clients and servers may communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), internets (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or later developed network. The computer-readable medium may be included in the electronic device; or it may exist independently without being incorporated into the electronic device.The computer-readable medium carries one or more programs. When executed by the electronic device, the electronic device: The computer-readable medium carries one or more programs. When executed by the electronic device, the electronic device: obtains a language resource file of at least one language type; in response to an installation package packaging request, compresses at least a portion of the language resource file of the at least one language type to obtain a language resource compressed package; and packages the language resource compressed package to obtain an application installation package. Alternatively, in response to an application launch request, obtains first resource version information of the language resource file in the application installation package and second resource version information of the language resource file in the local resource directory; wherein the application corresponds to the application installation package; the application installation package includes a language resource compressed package of at least one language type; the language resource compressed package is obtained by compressing the language resource file; the second resource version information is verified based on the first resource version information; and after the verification is completed, obtains a target language resource file based on a triggered resource request; wherein the resource request carries the target language type. Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider). The flowcharts and block diagrams in the accompanying figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code, which includes one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in an order different from that noted in the accompanying drawings.For example, two blocks shown in succession may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, as well as combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified functions or operations, or may be implemented using a combination of dedicated hardware and computer instructions. The units described in the embodiments of this disclosure may be implemented via software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses." The functions described above may be at least partially performed by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like. In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. The above description is merely an illustration of preferred embodiments of the present disclosure and the technical principles employed. Those skilled in the art should understand that the scope of the present disclosure is not limited to technical solutions formed by a specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the scope of the above-mentioned disclosure. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.Furthermore, although operations are depicted in a particular order, this should not be construed as requiring that these operations be performed in the particular order shown or in a sequential order. Multitasking and parallel processing may be advantageous under certain circumstances. Similarly, although the above discussion includes several specific implementation details, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable subcombination. Although the subject matter has been described using language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

Claims 1. A method for processing an application installation package, comprising: Get a language resource file of at least one language type; In response to the installation package packaging request, compress at least part of the language resource file of the at least one language type to obtain a language resource compression package; The language resource compression package is packaged to obtain an application installation package.

2. The method according to claim 1, wherein: Compressing at least part of the language resource files of the at least one language type to obtain a language resource compression package includes: obtaining a target language type; and compressing language resource files of a non-target language type to obtain a language resource compression package corresponding to the non-target language type.

3. A method for processing an application installation package, comprising: In response to an application startup request, first resource version information of a language resource file in an application installation package and second resource version information in a local resource directory are obtained; wherein the application corresponds to the application installation package; the application installation package includes a language resource compression package of at least one language type; the language resource compression package is obtained by compressing a language resource file; the second resource version information is verified based on the first resource version information; after the verification is completed, a target language resource file is obtained based on a triggered resource request; wherein the resource request carries a target language type.

4. The method according to claim 3, wherein: The second resource version information is verified based on the first resource version information, including: if the first resource version information and the second resource version information are the same, keeping the second resource version information in the local resource directory unchanged; if the first resource version information and the second resource version information are different, replacing the second resource version information in the local resource directory with the first resource version information.

5. The method according to claim 3 or 4, wherein: If the second resource version information in the local resource directory is not obtained, the first resource version information is added to the local resource directory.

6. The method according to any one of claims 3 to 5, wherein: Trigger-based resource request acquisition Obtaining the target language resource file includes: determining whether there is a decompressed target language resource file corresponding to the resource request in a local resource directory; if there is no decompressed target language resource file corresponding to the resource request in the local resource directory, extracting a language resource compressed package corresponding to the resource request from the application installation package, and decompressing the language resource compressed package to obtain the target language resource file.

7. The method according to claim 6, wherein: Decompressing the language resource compression package corresponding to the resource request to obtain a target language resource file includes: starting a child thread, and decompressing the language resource compression package corresponding to the resource request through the child thread to obtain the target resource file.

8. A device for processing an application installation package, comprising: A language resource file acquisition module, configured to acquire a language resource file of at least one language type; The language resource file compression module is configured to respond to the installation package packaging request, compress at least part of the language resource file of the at least one language type, and obtain a language resource compressed package; the application installation package packaging module is configured to package the language resource compressed package to obtain an application installation package.

9. A device for processing an application installation package, comprising: A resource version information acquisition module is configured to respond to an application startup request and acquire first resource version information of a language resource file in an application installation package and second resource version information in a local resource directory; wherein the application corresponds to the application installation package; the application installation package includes a language resource compression package of at least one language type; the language resource compression package is obtained by compressing a language resource file; a verification module is configured to verify the second resource version information based on the first resource version information; a target language resource file acquisition module is configured to obtain a target language resource file based on a triggered resource request after the verification is completed; wherein the resource request carries a target language type.

10. An electronic device, comprising: one or more processors; A storage device configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing an application installation package according to any one of claims 1 to 7.

11. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the method for processing an application installation package according to any one of claims 1 to 7 when executed by a computer processor.

Citation Information

Patent Citations

  • Methods and apparatus for dynamically loading language resources

    CN105094905B

  • Pre-installed application program starting method and device, electronic equipment and storage medium

    CN112732365A

  • Method and device for constructing application program resource package and terminal equipment

    CN112835610A

  • Language translation processing method and device and computer equipment

    CN113220340A

  • Efficient storage and retrieval of resource data

    CN114303152A