CN118200303A - Deployment method, device, equipment and medium of micro client - Google Patents

Deployment method, device, equipment and medium of micro client Download PDF

Info

Publication number
CN118200303A
CN118200303A CN202410054854.1A CN202410054854A CN118200303A CN 118200303 A CN118200303 A CN 118200303A CN 202410054854 A CN202410054854 A CN 202410054854A CN 118200303 A CN118200303 A CN 118200303A
Authority
CN
China
Prior art keywords
micro
client
micro client
target
kernels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410054854.1A
Other languages
Chinese (zh)
Inventor
赖玮
张日智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Sanqi Jimeng Network Technology Co ltd
Original Assignee
Guangzhou Sanqi Jimeng Network 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 Guangzhou Sanqi Jimeng Network Technology Co ltd filed Critical Guangzhou Sanqi Jimeng Network Technology Co ltd
Priority to CN202410054854.1A priority Critical patent/CN118200303A/en
Publication of CN118200303A publication Critical patent/CN118200303A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a deployment method, device, equipment and medium of a micro client, and belongs to the technical field of Internet. The method comprises the following steps: independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client; acquiring deployment environment information of a micro client; and according to the deployment environment information, determining one or more browser kernels in the at least two browser kernels as target kernels, and packaging the target kernels based on the packaging file to obtain the packaging file of the micro client. According to the technical scheme, one or more browser kernels are determined to serve as target kernels according to deployment environment information of the micro client, and packaging is carried out, so that the support of the micro client to multiple kernels can be achieved, different requirements of each terminal device on smoothness, compatibility, storage capacity and the like are met, and the micro client is helped to respond to release requirements quickly.

Description

Deployment method, device, equipment and medium of micro client
Technical Field
The application belongs to the technical field of Internet, and particularly relates to a deployment method, device, equipment and medium of a micro client.
Background
Micro-clients are a lightweight client application, typically used for network gaming. The micro client can provide the minimum client download for the user, reduce the waiting time of the user, enable the user to start the game as soon as possible, gradually download the complete content in the game process, and ensure the smooth development of the game.
The micro client needs to run in the context of the browser kernel to provide interactive functionality. The smoothness, compatibility, and storage capacity of the micro-clients applying different browser kernels are correspondingly different. Only a fixed browser kernel is applied, and the diversity requirement of the terminal equipment cannot be met. Therefore, how to implement the support of the micro client to the multi-kernel is a problem that needs to be solved by the person skilled in the art.
Disclosure of Invention
The embodiment of the application aims to provide a deployment method, a device, equipment and a medium of a micro client, and aims to realize the support of the micro client to multiple cores, adapt to different requirements of each terminal equipment on fluency, compatibility, storage capacity and the like, and help the micro client to respond to release requirements quickly.
In a first aspect, an embodiment of the present application provides a method for packaging a micro client, where the method includes:
independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client;
acquiring deployment environment information of a micro client;
According to the deployment environment information, determining one or more browser kernels in the at least two browser kernels as target kernels, and packaging the target kernels based on the packaging file to obtain a packaging file of the micro client; the package file is used for installing the micro client.
In a second aspect, an embodiment of the present application provides a deployment apparatus for a micro client, where the apparatus includes:
The independent packaging module is used for independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client;
the deployment environment acquisition module is used for acquiring deployment environment information of the micro client;
The target kernel packaging module is used for determining one or more browser kernels of the at least two browser kernels as target kernels according to the deployment environment information, and packaging the target kernels based on the packaging files to obtain packaging files of the micro client; the package file is used for installing the micro client.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, at least two browser kernels are adopted for independent encapsulation of the micro client to obtain an encapsulation file of the micro client; acquiring deployment environment information of a micro client; according to the deployment environment information, determining one or more browser kernels in the at least two browser kernels as target kernels, and packaging the target kernels based on the packaging file to obtain a packaging file of the micro client; the package file is used for installing the micro client. According to the packaging device of the micro client, one or more browser kernels are determined to serve as target kernels according to the deployment environment information of the micro client, packaging is carried out, support of the micro client to multiple kernels can be achieved, different requirements of each terminal device on smoothness, compatibility, storage capacity and the like are met, and therefore the micro client is helped to respond to issuing requirements quickly.
Drawings
Fig. 1 is a flowchart of a deployment method of a micro client according to a first embodiment of the present application;
fig. 2 is a flow chart of a deployment method of a micro client according to a second embodiment of the present application;
Fig. 3 is a flow chart of a packaging method of a micro client according to a third embodiment of the present application;
Fig. 4 is a schematic structural diagram of a packaging device of a micro client according to a fourth embodiment of the present application;
Fig. 5 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments of the present application is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The deployment method, device, equipment and medium of the micro client provided by the embodiment of the application are described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Example 1
Fig. 1 is a flowchart of a deployment method of a micro client according to an embodiment of the present application. As shown in fig. 1, the method specifically comprises the following steps:
S101, independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client;
First, the usage scenario of the present solution may be a scenario in which the micro client runs a game. Based on the above usage scenario, it can be understood that the execution subject of the present application may be an intelligent terminal device capable of installing a micro client, such as a mobile phone, a tablet computer, a desktop computer, a large conference display panel, and the like. Specifically, the acquisition of deployment environment information, the downloading of package files and the like can be executed by the intelligent terminal equipment, the micro client is adapted to the storage space of the intelligent terminal equipment, and when experience problems occur, the cores are switched in time, so that the game experience of a user is ensured.
Micro-clients are a lightweight client application, typically used for network gaming. The micro client is mainly characterized by providing minimum client downloading, so that a user can start a game as soon as possible. In the game process, the micro client gradually downloads more contents so as to ensure the smooth development of the game.
The browser kernel refers to a core component of the browser for parsing and rendering web page content, is an important component of the browser, and is responsible for processing web page technologies such as HTML (Hyper Text Markup Language ), CSS (CASCADING STYLE SHEETS, cascading style sheets) and JavaScript, and converting the web page technologies into a visualized web page.
Common browser kernels include a Trident kernel, a chromoum kernel, a Gecko kernel, a WebKit kernel, a prest kernel, and the like. Specifically, the Trident kernel is a typesetting engine developed by Microsoft corporation and is used for Internet Explorer browser, which can present web page content with higher speed and higher efficiency, and provides more interactivity and dynamic functions, and because the Trident kernel has better compatibility and security, many software and websites use the Trident kernel as default browser kernel; the Chromium kernel is a typesetting engine developed by Google corporation based on other open source software, and is used for a Google Chrome browser, the goal of the Chromium kernel is to improve the stability, speed and safety of the browser, and more custom and expansion functions are provided at the same time, and the Chromium kernel is also adopted by other browsers due to the open source and flexibility of the Chromium kernel, so that the Chromium kernel becomes one of the most popular browser kernels at present; the Gecko kernel is a browser engine developed by Mozilla foundation, the most well-known application is a Firefox browser, and the Gecko kernel has the characteristics of strong functions and good expansibility, supports a plurality of Web standards, and can present a high-quality webpage rendering effect; the WebKit kernel is an open-source browser engine and is widely used in a plurality of well-known browsers, such as Safari and Google Chrome, and has the advantages of high-efficiency webpage rendering speed and stability, and is a pusher of a plurality of emerging technologies; the prest kernel is a browser engine developed by Opera Software and is characterized by being rapid and flexible, and the core goal of the prest kernel is to provide high-speed webpage loading and rendering speed, and the webpage loading speed is improved by reducing the rendering time of the browser.
The step of independently packaging the browser kernel comprises the following steps: creating an encapsulation layer or an interface layer according to the requirements of the browser kernel, wherein the encapsulation layer or the interface layer is used for encapsulating the functions and interactions of the kernel; defining a set of distinct interfaces for interacting with the browser kernel using the encapsulation layer; according to the definition of the interface, writing codes to realize the interaction between the encapsulation layer and the browser kernel, and generally relates to calling an API (Application Programming Interface, application program interface) provided by the kernel, processing callback functions, managing resources and the like; the compatibility difference existing between different browser kernels is processed to ensure consistency and stability of the micro client.
The encapsulated file refers to a code file generated in the process of executing the above-mentioned independent encapsulation step for the browser kernel.
S102, acquiring deployment environment information of a micro client;
The deployment environment information of the micro client refers to environment information of the intelligent terminal equipment to be installed with the micro client, and can comprise an operating system, hardware configuration, network connection, security measures and the like. The intelligent terminal equipment needs to run an operating system supporting the micro client, common operating systems comprise Android, iOS, windows, mac OS and the like, and it is very important to ensure that the version of the operating system is compatible with the micro client so as not to be incompatible or have limited functions; the hardware configuration of the intelligent terminal equipment determines the capability of the intelligent terminal equipment to operate the micro client, and enough memory and storage space are the basis for ensuring smooth operation of the micro client, and in addition, the performance of a processor also affects the operation speed and response time; the micro client generally needs to transmit and communicate data through a network, and the intelligent terminal equipment needs to have stable network connection capability so as to ensure normal communication with the server; the intelligent terminal equipment has necessary security measures, such as antivirus software, a firewall and the like, and can protect the security and privacy of user data.
Wherein, the memory space is an important reference for determining the target kernel later in the scheme. The storage space determines how many application programs and data the intelligent terminal equipment can install and store, and enough storage space can ensure the normal installation and operation of the micro client.
Deployment environment information is recorded in an operating system of the intelligent terminal equipment, and can be obtained by inquiring in the operating system. The operating system is core software that manages and controls computer hardware and software resources, enabling a computer to efficiently run and manage various applications by providing various services and functions.
S103, determining one or more browser kernels of the at least two browser kernels as target kernels according to the deployment environment information, and packaging the target kernels based on the packaging file to obtain a packaging file of the micro client; the package file is used for installing the micro client.
The target kernel may refer to the browser kernel that is ultimately selected for packaging. The method for determining the target kernel may determine one or more browser kernels as the target kernel according to the deployment environment information, and the package file size obtained by taking any one of the at least two browser kernels as the target kernel, and the package file size obtained by taking all of the at least two browser kernels as the target kernel.
Based on the packing mode of the packing file to the target kernel, a packing configuration file can be created according to the game item requirement and the deployment environment information of the micro client, and the configuration file designates parameters and settings required in the packing process, such as the version of the target kernel, the application program name, the application program icon, the application program resource file and the like; selecting a packaging tool suitable for the micro client and the intelligent terminal device, for example, for the micro client of the mobile device, integrated development environments such as Xcode (iOS) or Android Studio (Android) can be used for packaging; using the packaging tool, corresponding packaging commands are executed according to the packaging configuration file, which will package the packaging file and other resources into an executable micro-client file.
The executable micro client file is a package file.
In this technical solution, optionally, according to the deployment environment information, determining one or more browser kernels of the at least two browser kernels as a target kernel includes:
and determining one or more browser cores as target cores according to the deployment environment information, the package file size obtained by taking any one of the at least two browser cores as the target core, and the package file size obtained by taking all the at least two browser cores as the target core.
The packed file size may refer to the size of storage space occupied by the packed file, and may be in bytes (bytes). In computer science, the basic units of data storage and computation are bytes, with commonly used units being Kilobytes (KB), megabytes (MB), gigabytes (GB), and so forth.
Firstly, determining the target size of a packaged file according to the size of a storage space in deployment environment information, and determining target kernels according to the target size of the packaged file and the size of the packaged file obtained by taking each browser kernel as the target kernel by using a greedy algorithm.
Among them, greedy algorithm is a common algorithm design strategy. The basic idea of greedy algorithms is to make local optimal choices at each decision point without backtracking or re-evaluating previous decisions. A step of determining a target kernel using a greedy algorithm, comprising: the method comprises the steps that ascending sorting is conducted on each browser kernel according to the size of a package file; and determining the browser kernels as target kernels in turn according to the ascending result, and calculating the sum of the sizes of the package files of all the target kernels until the sum of the sizes of the package files of all the target kernels is full of the target sizes of the package files, or each browser kernel is traversed.
The method has the advantages that the target kernel is determined according to the deployment environment information and the size of the packaged file obtained by taking the browser kernel as the target kernel, so that the number of the target kernels can be maximized on the basis of ensuring that the micro client can be installed on the intelligent terminal equipment, and better game experience is provided.
In the embodiment of the application, at least two browser kernels are adopted for independent encapsulation of the micro client to obtain an encapsulation file of the micro client; acquiring deployment environment information of a micro client; according to the deployment environment information, determining one or more browser kernels in the at least two browser kernels as target kernels, and packaging the target kernels based on the packaging file to obtain a packaging file of the micro client; the package file is used for installing the micro client. According to the deployment method of the micro client, one or more browser kernels are determined as target kernels according to the deployment environment information of the micro client, and packaging is carried out, so that the support of the micro client to multiple kernels can be realized, different requirements of each terminal device on fluency, compatibility, storage capacity and the like are met, and the micro client is helped to respond to release requirements rapidly.
Example two
Fig. 2 is a flowchart of a deployment method of a micro client according to a second embodiment of the present application. The scheme makes better improvement on the embodiment, and the specific improvement is as follows: after obtaining the packaged file of the micro client, the method further includes: responding to the starting operation of the micro client, and running the main process of the installed micro client; and if the packaged file comprises a target kernel, calling the target kernel through the main process, and establishing an operation process of the micro client.
As shown in fig. 2, the method specifically comprises the following steps:
S201, independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client;
S202, acquiring deployment environment information of a micro client;
S203, determining one or more browser kernels of the at least two browser kernels as target kernels according to the deployment environment information, and packaging the target kernels based on the packaging file to obtain a packaging file of the micro client; the package file is used for installing the micro client;
S204, responding to the starting operation of the micro client, and running the main process of the installed micro client;
The micro-client start-up operation may refer to a user selecting to open a packaged file. In the code of the micro-client, an event listener or callback function for the start event may be registered, which will be triggered when the micro-client is started by the user. Wherein the event listener is a design pattern for receiving and processing notifications when specific events occur; callback function refers to a function that is called when a specific event occurs
In computer science, a process refers to an instance of a running program, which is the basic unit of resource allocation and management by an operating system. The main process of the micro client is a core program for controlling and coordinating the operation of each component in the micro client, and is responsible for managing important tasks such as the operation environment, resource allocation, interface rendering, data processing and the like of the micro client, so that the micro client can normally operate and good user experience is provided.
The main process of the installed micro client may be executed by downloading the package file of the micro client from a preset storage location, and installing and executing the micro client after the downloading is completed, so as to start the main process of the micro client.
In this technical solution, optionally, in response to a start operation of the micro client, running a main process of the installed micro client includes:
Responding to the starting operation of the micro client, and downloading the packaged file of the micro client from a preset storage position;
And installing and running the micro client after the downloading is completed so as to start the main process of the micro client.
The preset storage location may refer to a preset storage location of the micro client packaged file on the server computer. The method for downloading the package file of the micro client can adopt a mode of transmitting the package file of the micro client to the intelligent terminal equipment from a preset storage position. The transmission mode can adopt a TCP protocol, namely a TCP protocol (Transmission Control Protocol ), which is a connection-oriented, reliable and byte stream-based transmission layer communication protocol, and the TCP protocol mainly aims to provide reliable data transmission service so as to ensure reliable transmission of data in the network communication process.
The micro client is installed and operated to start the main process of the micro client, the downloaded package file can be decompressed from the package state, the components in the package file are placed in a proper catalog and configured to ensure that the micro client can normally operate, and the main process is created to execute the starting task after the operating system receives the starting task.
The method has the advantage that the main process of the installed micro client is operated in response to the starting operation of the micro client, so that a foundation can be laid for the subsequent establishment of the operation process of the micro client.
S205, if the package file comprises a target kernel, calling the target kernel through the main process, and establishing an operation process of the micro client.
By way of the host process invoking the target kernel, an API or SDK (Software Development Kit ) may be employed that is provided using the target kernel.
The running process may be a program instance that controls the browser kernel. The method for establishing the running process of the micro client can adopt a mode of acquiring the source code of the target kernel, compiling the target kernel according to the source code, creating a new process by using related functions or APIs of an operating system, and loading the compiled target kernel code.
The method has the advantage that the target kernel is called by the main process, so that finer control on the browser kernel can be realized.
Example III
Fig. 3 is a flowchart of a deployment method of a micro client according to a third embodiment of the present application. The scheme makes better improvement on the embodiment, and the specific improvement is as follows: the method further comprises the steps of: if the package file comprises at least two target kernels, determining an operation kernel from the at least two target kernels based on default setting information configured in the configuration file, so as to call the operation kernel through the main process, and establishing an operation process of the micro client.
As shown in fig. 3, the method specifically comprises the following steps:
S301, independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client;
s302, acquiring deployment environment information of a micro client;
S303, determining one or more browser kernels of the at least two browser kernels as target kernels according to the deployment environment information, and packaging the target kernels based on the packaging file to obtain a packaging file of the micro client; the package file is used for installing the micro client;
S304, responding to the starting operation of the micro client, and running the main process of the installed micro client;
S305, if the package file comprises a target kernel, calling the target kernel through the main process, and establishing an operation process of the micro client;
S306, if the package file comprises at least two target kernels, determining an operation kernel from the at least two target kernels based on default setting information configured in the configuration file, so as to call the operation kernel through the main process, and establishing an operation process of the micro client.
The configuration file may be a file for storing micro-client configuration options and parameters. The default facility information specifies the target kernel that is to be run without explicit configuration.
The run kernel may refer to the final determined initially running browser kernel. The method for determining the running kernel may adopt a browser kernel specified by default facility information as the running kernel.
The configuration file configuration method has the advantages that the browser kernel with good compatibility and adaptability can be first selected to operate by determining the operation kernel based on default setting information configured in the configuration file, and the stability of the micro client is improved.
In this technical solution, optionally, after the running kernel is called by the main process and the running process of the micro client is established, the method further includes:
and under the condition that the packing file comprises at least two target cores, if a core switching event is identified, calling the other target core in the at least two target cores through the main process so as to switch from the running process of the running core to the alternative process of the other target core.
The kernel switching event can refer to the conditions of white screen, black screen or fluency drop and the like of the micro client, and the kernel switching event can be identified by using the event monitor to monitor the white screen event, the black screen event and the fluency drop event.
An alternative process may refer to a process created by the operating system for running another target kernel. Calling the other one of the at least two target kernels through the main process, and performing data synchronization between the running process and the alternative process by adopting a mode of switching the running process of the running kernel to the alternative process of the other one of the at least two target kernels through the main process; after the data synchronization is completed, the micro client is switched to be operated by the alternative process.
The method has the advantage that the stability of the game can be ensured by switching the running process of the running core to the alternative process of the other target core under the condition that the core switching event is identified.
In this technical solution, optionally, the calling, by the main process, another target kernel of the at least two target kernels to switch from the running process of the running kernel to an alternative process of the another target kernel includes:
Calling another target kernel of the at least two target kernels through the main process to establish an alternative process;
performing data synchronization between the running process and the alternative process;
And after the data synchronization is completed, switching the micro client to be operated by the alternative process.
The occurrence of a kernel switch event may be caused by the performance and resource occupation of the running kernel being excessive. Thus, a target kernel having a smaller package file size than the package file size of the running kernel may be determined as the object to establish the alternative process. The method for establishing the alternative process may adopt a method of acquiring the source code of another target kernel and compiling the other target kernel according to the source code, creating a new process by using a related function or API of the operating system, and loading the compiled other target kernel code.
The synchronized data may refer to Cookie data, which refers to information stored in the browser about the user and session. When a user accesses a website, the website may send one or more cookies into the user's browser. These cookies contain information such as user ID, session identifier, user preferences, etc. When the user accesses the website again, the browser will send the Cookie back to the website, helping the website identify the user and providing personalized services.
The data synchronization mode may be a memory mapping mode. Specifically, the memory mapping method includes the steps of: creating a shared memory region that can be accessed and modified by multiple processes; in the running process, writing the data to be synchronized into a shared memory area; using a signal or other communication mechanism to inform the alternative process that the shared memory area has been updated and that data has been written; in an alternative process, the data in the shared memory area is read by the mapped address.
The manner in which the micro-client is switched to be run by the alternative process may employ an API or SDK (Software Development Kit ) that is invoked and provided using another target kernel.
The method has the advantages that the login state of the user can be kept by synchronizing the data of the running process and the alternative process, the user does not need to interrupt the use, and the user experience is optimized.
Example IV
Fig. 4 is a schematic structural diagram of a deployment device of a micro client according to a fourth embodiment of the present application. As shown in fig. 4, the method specifically includes the following steps:
the independent packaging module 410 is configured to independently package the micro client with at least two browser kernels to obtain a package file of the micro client;
a deployment environment acquisition module 420, configured to acquire deployment environment information of the micro client;
The target kernel packaging module 430 is configured to determine, according to the deployment environment information, one or more browser kernels of the at least two browser kernels as target kernels, and package the target kernels based on the package file, to obtain a package file of the micro client; the package file is used for installing the micro client.
In the embodiment of the application, an independent packaging module is used for independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client; the deployment environment acquisition module is used for acquiring deployment environment information of the micro client; the target kernel packaging module is used for determining one or more browser kernels of the at least two browser kernels as target kernels according to the deployment environment information, and packaging the target kernels based on the packaging files to obtain packaging files of the micro client; the package file is used for installing the micro client. According to the deployment device of the micro client, one or more browser kernels are determined as target kernels according to the deployment environment information of the micro client, and packaging is carried out, so that the support of the micro client to multiple kernels can be realized, different requirements of each terminal device on fluency, compatibility, storage capacity and the like are met, and the micro client is helped to respond to release requirements rapidly.
The deployment device of the micro client in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The deployment device of the micro client in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The deployment device of the micro client provided by the embodiment of the application can realize each process realized by each method embodiment, and in order to avoid repetition, the description is omitted.
Example five
As shown in fig. 5, the embodiment of the present application further provides an electronic device 500, which includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of running on the processor 501, where the program or the instruction implements each process of the above-mentioned embodiment of the deployment apparatus of the micro client when executed by the processor 501, and the process can achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Example six
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned deployment device embodiment of the micro client, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
Example seven
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the deployment device embodiment of the micro client can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
The foregoing description is only of the preferred embodiments of the application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous modifications, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit of the application, the scope of which is set forth in the following claims.

Claims (10)

1. A method for deploying a micro client, the method comprising:
independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client;
acquiring deployment environment information of a micro client;
According to the deployment environment information, determining one or more browser kernels in the at least two browser kernels as target kernels, and packaging the target kernels based on the packaging file to obtain a packaging file of the micro client; the package file is used for installing the micro client.
2. The method for deploying a micro client according to claim 1, wherein after obtaining the packaged file of the micro client, the method further comprises:
responding to the starting operation of the micro client, and running the main process of the installed micro client;
and if the packaged file comprises a target kernel, calling the target kernel through the main process, and establishing an operation process of the micro client.
3. The method of deployment of micro clients of claim 2, wherein the method further comprises:
If the package file comprises at least two target kernels, determining an operation kernel from the at least two target kernels based on default setting information configured in the configuration file, so as to call the operation kernel through the main process, and establishing an operation process of the micro client.
4. The deployment method of the micro client according to claim 3, wherein after the running kernel is called by the main process to establish the running process of the micro client, the method further comprises:
and under the condition that the packing file comprises at least two target cores, if a core switching event is identified, calling the other target core in the at least two target cores through the main process so as to switch from the running process of the running core to the alternative process of the other target core.
5. The deployment method of the micro client according to claim 4, wherein invoking the other of the at least two target kernels by the main process to switch from the running process of the running kernel to an alternative process of the other target kernel comprises:
Calling another target kernel of the at least two target kernels through the main process to establish an alternative process;
performing data synchronization between the running process and the alternative process;
And after the data synchronization is completed, switching the micro client to be operated by the alternative process.
6. The deployment method of the micro client according to claim 2, wherein running the main process of the installed micro client in response to the start-up operation of the micro client comprises:
Responding to the starting operation of the micro client, and downloading the packaged file of the micro client from a preset storage position;
And installing and running the micro client after the downloading is completed so as to start the main process of the micro client.
7. The deployment method of the micro client according to claim 1, wherein determining one or more browser kernels of the at least two browser kernels as target kernels according to the deployment environment information comprises:
and determining one or more browser cores as target cores according to the deployment environment information, the package file size obtained by taking any one of the at least two browser cores as the target core, and the package file size obtained by taking all the at least two browser cores as the target core.
8. A deployment apparatus for a micro client, the apparatus comprising:
The independent packaging module is used for independently packaging the micro client by adopting at least two browser kernels to obtain a packaging file of the micro client;
the deployment environment acquisition module is used for acquiring deployment environment information of the micro client;
The target kernel packaging module is used for determining one or more browser kernels of the at least two browser kernels as target kernels according to the deployment environment information, and packaging the target kernels based on the packaging files to obtain packaging files of the micro client; the package file is used for installing the micro client.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the micro-client deployment method of any of claims 1-7.
10. A readable storage medium, characterized in that it stores thereon a program or instructions, which when executed by a processor, implement the steps of the micro-client deployment method according to any of claims 1-7.
CN202410054854.1A 2024-01-12 2024-01-12 Deployment method, device, equipment and medium of micro client Pending CN118200303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410054854.1A CN118200303A (en) 2024-01-12 2024-01-12 Deployment method, device, equipment and medium of micro client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410054854.1A CN118200303A (en) 2024-01-12 2024-01-12 Deployment method, device, equipment and medium of micro client

Publications (1)

Publication Number Publication Date
CN118200303A true CN118200303A (en) 2024-06-14

Family

ID=91401023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410054854.1A Pending CN118200303A (en) 2024-01-12 2024-01-12 Deployment method, device, equipment and medium of micro client

Country Status (1)

Country Link
CN (1) CN118200303A (en)

Similar Documents

Publication Publication Date Title
US8966508B2 (en) Method for executing hybrid web application and apparatus therefor
US20220156133A1 (en) Cross-Process Communication Method, Apparatus, and Device
US20080147671A1 (en) System for Running Web Applications Offline and Providing Access to Native Services
CN110750255B (en) Applet rendering method and device
US20140208326A1 (en) File presenting method and apparatus for a smart terminal
CN112114913B (en) Application program interface updating method and device, computer equipment and storage medium
WO2023093429A1 (en) Micro-application running method and apparatus, and device, storage medium and program product
JP2011513841A (en) XML-based web feed for remote resource web access
EP4210053A1 (en) Application program control method and apparatus, electronic device, and storage medium
JP2023513717A (en) IMAGE PROCESSING METHOD AND DEVICE, SERVER AND COMPUTER PROGRAM
JP2008524686A (en) Method for maintaining an application in a computer device
CN111427594B (en) Application program running method and device
CN110990075A (en) Starting method, device and equipment of fast application and storage medium
KR20120017430A (en) System for making an application available on a user terminal
CN110780930A (en) Method and device for starting Android system, electronic equipment and storage medium
WO2017019284A1 (en) Computer-implemented method and system for executing android apps natively on any environment
CN111596916A (en) Application program management method, device and equipment and computer storage medium
KR101117165B1 (en) Web platform unit for mobile terminal connectioned web-application program in heterogeneous operating system
KR101482151B1 (en) Device and method for executing web application
US9164817B2 (en) Mobile communication terminal to provide widget expansion function using message communication, and operation method of the mobile communication terminal
CN113448650A (en) Live broadcast function plug-in loading method, device, equipment and storage medium
KR20130068564A (en) Terminal apparatus having operating system based on web and method for providing service using thereof
CN112235132A (en) Method, device, medium and server for dynamically configuring service
CN111770043B (en) Game data communication method, device, storage medium and electronic equipment
CN118200303A (en) Deployment method, device, equipment and medium of micro client

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination