CN108459861B - Software installation method and system - Google Patents

Software installation method and system Download PDF

Info

Publication number
CN108459861B
CN108459861B CN201810041567.1A CN201810041567A CN108459861B CN 108459861 B CN108459861 B CN 108459861B CN 201810041567 A CN201810041567 A CN 201810041567A CN 108459861 B CN108459861 B CN 108459861B
Authority
CN
China
Prior art keywords
server
picture
picture resource
application program
installation package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810041567.1A
Other languages
Chinese (zh)
Other versions
CN108459861A (en
Inventor
刘德建
陈辉东
张晨晖
陈宏展
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Tianyi Network Technology Co ltd
Original Assignee
Fujian Tianyi 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 Fujian Tianyi Network Technology Co ltd filed Critical Fujian Tianyi Network Technology Co ltd
Priority to CN201810041567.1A priority Critical patent/CN108459861B/en
Publication of CN108459861A publication Critical patent/CN108459861A/en
Application granted granted Critical
Publication of CN108459861B publication Critical patent/CN108459861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention relates to the field of data processing, in particular to a software installation method and a software installation system. The method comprises the steps that an installation package is downloaded from a first server through a client; the client side installs an application program corresponding to the installation package; and the client starts the application program, and the application program downloads the picture resource corresponding to the installation package from a second server. The convenience of installing large-scale software of the mobile terminal is improved.

Description

Software installation method and system
Technical Field
The invention relates to the field of data processing, in particular to a software installation method and a software installation system.
Background
The application programs of the mobile terminal are various in variety, so that a user can conveniently and conveniently download the required application programs, and a special application platform is used for managing and classifying the application programs. However, most application platforms have limitations on the installation package size of the software.
The mobile phone massively multiplayer online role playing game (mobile phone MMORPG) is the MMORPG which is specially played on a mobile phone, the scene change of the role playing game is rich, a large amount of picture resources are required to be contained, and an installation package is large, and the size of the installation package of the role playing game is 500-600M, and some installation packages even exceed 1G. Because the size of the installation package of the role playing game often exceeds the limit of the application platform, a user cannot conveniently download the game through the existing application platform, and needs to go to a webpage designated by a developer to download the game, which is very inconvenient.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: how to improve the convenience of installing large-scale software of the mobile terminal.
In order to solve the technical problems, the invention adopts the technical scheme that:
the invention provides a software installation method, which comprises the following steps:
the client downloads the installation package from the first server;
the client side installs an application program corresponding to the installation package;
and the client starts the application program, and the application program downloads the picture resource corresponding to the installation package from a second server.
The present invention also provides a software installation system, comprising:
the first downloading module is used for downloading the installation package from the first server by the client;
the installation module is used for installing the application program corresponding to the installation package by the client;
and the second downloading module is used for starting the application program by the client, and the application program downloads the picture resource corresponding to the installation package from a second server.
The invention has the beneficial effects that: according to the invention, the picture resources are separated from other resources required by the installation of the application program, so that the size of the installation package is greatly reduced, and developers can upload the installation package of the large-scale software of the mobile terminal to the first server (application platform) for users to download conveniently. When the client starts the application program, the application program automatically downloads the picture resource corresponding to the installation package from the second server (namely, the server provided by the developer), so that the application program can normally run. For users, the software installation method provided by the invention only needs the same operation steps as those for installing the small-scale software of the mobile terminal, thereby improving the convenience for installing the large-scale software of the mobile terminal.
Drawings
FIG. 1 is a block flow diagram of an embodiment of a method for installing software provided by the present invention;
FIG. 2 is a block diagram of a software installation system according to an embodiment of the present invention;
description of reference numerals:
1. a first download module; 2. installing a module; 3. and a second download module.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1 and fig. 2,
as shown in fig. 1, the present invention provides a software installation method, including:
the client downloads the installation package from the first server;
the client side installs an application program corresponding to the installation package;
and the client starts the application program, and the application program downloads the picture resource corresponding to the installation package from a second server.
Further, the downloading, by the application program, the picture resource corresponding to the installation package from the second server specifically includes:
the application program downloads a picture resource compression package corresponding to the installation package from a second server;
the client acquires an installation catalog corresponding to the application program;
and the client decompresses the picture resource compression packet to the installation directory.
Further, still include:
the third server acquires picture resources corresponding to a project to obtain a first picture resource set;
the third server selects more than one picture resource from the first picture resource set to obtain a second picture resource set;
the third server compresses the second picture resource set to obtain a picture resource compression packet; the relative path between each picture resource in the picture resource compression package is the same as the relative path between the corresponding picture resources in the project;
the third server uploads the picture resource compression packet to the second server;
the third server deletes the picture resource corresponding to the second picture resource set in the project;
the third server generates an installation package according to the project engineering;
and the third server uploads the installation package to the first server.
According to the above description, when the picture resource compression packet is manufactured, the relative path between the picture resources is kept unchanged, and the picture resource compression packet is decompressed to the installation directory, so that the actual path of the picture resources after the application program is installed is the same as the path during development, and the application program can normally call and display the corresponding picture resources in the running process.
Further, the third server selects more than one picture resource from the first picture resource set to obtain a second picture resource set, specifically:
the third server obtains picture resources displayed by the application program in the starting process to obtain a third resource picture set;
and the third server selects picture resources except the third resource picture set from the first picture resource set to obtain a second picture resource set.
As can be seen from the above description, the picture resource is downloaded from the second server only when the application program is started, and therefore the installation package needs to reserve the picture resource in the starting process of the application program, so that the application program can be started normally.
Further, the downloading, by the application program, the picture resource corresponding to the installation package from the second server specifically includes:
the client detects whether the picture resource corresponding to the installation package exists or not to obtain a detection result; the detection result comprises presence and absence;
and when the detection result is that the picture resource corresponding to the installation package does not exist, the application program downloads the picture resource corresponding to the installation package from a second server.
As can be seen from the above description, the picture resource is downloaded from the second server only when the application program is first started, which saves traffic consumption.
As shown in fig. 2, the present invention also provides a software installation system, including:
the first downloading module 1 is used for downloading the installation package from the first server by the client;
the installation module 2 is used for installing the application program corresponding to the installation package at the client;
and the second downloading module 3 is used for starting the application program by the client, and the application program downloads the picture resource corresponding to the installation package from a second server.
Further, the second download module comprises:
the first downloading unit is used for downloading the picture resource compression package corresponding to the installation package from a second server by the application program;
a first obtaining unit, configured to obtain, by a client, an installation directory corresponding to the application program;
and the decompression unit is used for decompressing the picture resource compression packet to the installation directory by the client.
Further, still include:
the acquisition module is used for acquiring the picture resource corresponding to a project by the third server to obtain a first picture resource set;
the selecting module is used for selecting more than one picture resource from the first picture resource set by the third server to obtain a second picture resource set;
the compression module is used for compressing the second picture resource set by the third server to obtain a picture resource compression packet; the relative path between each picture resource in the picture resource compression package is the same as the relative path between the corresponding picture resources in the project;
the first uploading module is used for uploading the picture resource compression packet to the second server by the third server;
a deleting module, configured to delete, by a third server, the picture resource corresponding to the second picture resource set in the project;
the generating module is used for generating an installation package by the third server according to the project engineering;
and the second uploading module is used for uploading the installation package to the first server by the third server.
Further, the selecting module comprises:
the second acquisition unit is used for acquiring the picture resource displayed by the application program in the starting process by the third server to obtain a third resource picture set;
and the selecting unit is used for selecting the picture resources except the third resource picture set from the first picture resource set by the third server to obtain a second picture resource set.
Further, the second download module comprises:
the detection unit is used for detecting whether the picture resource corresponding to the installation package exists or not by the client side to obtain a detection result; the detection result comprises presence and absence;
and the second downloading unit is used for downloading the picture resource corresponding to the installation package from a second server by the application program when the detection result is that the picture resource does not exist.
The first embodiment of the invention is as follows:
the embodiment provides a software installation method, which comprises the following steps:
s1, the third server obtains the picture resource corresponding to a project engineering to obtain a first picture resource set.
And listing picture resources in the project according to the directory hierarchical relationship, wherein the picture resources comprise picture names, picture paths, picture sizes, picture previews and the like.
S2, the third server selects more than one picture resource from the first picture resource set to obtain a second picture resource set. The method specifically comprises the following steps:
and S21, the third server acquires the picture resource displayed by the application program in the starting process to obtain a third resource picture set.
S22, the third server selects picture resources except the third resource picture set from the first picture resource set to obtain a second picture resource set.
Wherein, a single file can be selected, or a plurality of files or a plurality of folders can be selected. Because the interface of the network resource package downloading is displayed first when the application program is initially started, and the process also needs to read some configuration and display interfaces, resources of related configurations and interfaces in the starting process cannot be removed from the installation package. Preferably, the picture resources, such as character picture resources, map resources and the like, which are only displayed after entering the software main interface, are uploaded to the second server.
S3, compressing the second picture resource set by the third server to obtain a picture resource compression packet; and the relative path between the picture resources in the picture resource compression packet is the same as the relative path between the corresponding picture resources in the project engineering.
For example, project projects are stored under D: \ env directory, where env is project root directory, and env also contains several folders as follows: ini, image, script, map and sound. The picture resources are stored in the image folder, and the path of the picture resources is D: \ env \ image. The image folder also comprises a plurality of folders below for storing different types of picture resources, including login, role, map and enumeration. When the installation package is removed from all the picture resources in the role and the map folder, and the new path for storing the role and the map folder is set to be D: \ optimal \ then the picture resources in the selected folder D: \ env \ image \ role and D: \ env \ image \ map are moved to the new path according to the original hierarchical relationship, namely D: \ optimal \ image \ role and D: \ optimal \ image \ map, and the original D: \ env \ image \ role and D: \ env \ image \ map are not stored. And (5) compressing and packaging the folder D \ option to generate a compressed file option.
And S4, uploading the picture resource compression packet to the second server by the third server.
For example, the compressed file option. zip is uploaded to the test server and can be obtained through the website http:// www.test.com/res/option. zip.
S5, the third server deletes the picture resource corresponding to the second picture resource set in the project; the third server generates an installation package according to the project engineering; and the third server uploads the installation package to the first server.
S6, the client downloads the installation package from the first server; and the client side installs the application program corresponding to the installation package.
S7, the client starts the application program; the client detects whether the picture resource corresponding to the installation package exists or not to obtain a detection result; the detection result includes presence and absence.
And checking whether a mark for downloading the picture resource compression package exists in the installation directory, if not, indicating that the resource package is not downloaded, and executing downloading operation.
And S8, when the detection result is that the picture resource corresponding to the installation package does not exist, downloading the picture resource corresponding to the installation package from a second server by the application program. The method specifically comprises the following steps:
and S81, downloading the picture resource compression package corresponding to the installation package from a second server by the application program.
For example, in the configuration file config.ini of the application program, there are set:
[download]
Url=http://www.test.com/res/optimize.zip
and the application program automatically downloads the picture resource compression package according to the Url path.
And S82, the client acquires the installation catalog corresponding to the application program.
And S83, decompressing the picture resource compression packet to the installation directory by the client.
As can be seen from the above description, the software installation method provided by the present embodiment can reduce the size of the installation package by separating the picture resource from other resources required for installing the application. For example, the size of an installation package generated by a project engineering according to a conventional installation package generation method is 500M, and after 100M picture resources are separated from the installation package by the method provided by this embodiment, the final installation package size is 400M. By reducing the size of the installation package, the large-scale software of the mobile terminal can be uploaded to the application platform for the user to conveniently download and use, and the convenience of downloading and using the large-scale software by the user is improved.
The second embodiment of the invention is as follows:
the present embodiment provides a software installation system, including:
and the acquisition module is used for acquiring the picture resource corresponding to the project engineering by the third server to obtain a first picture resource set.
The selecting module is used for selecting more than one picture resource from the first picture resource set by the third server to obtain a second picture resource set;
wherein, the selection module comprises:
the second acquisition unit is used for acquiring the picture resource displayed by the application program in the starting process by the third server to obtain a third resource picture set;
and the selecting unit is used for selecting the picture resources except the third resource picture set from the first picture resource set by the third server to obtain a second picture resource set.
The compression module is used for compressing the second picture resource set by the third server to obtain a picture resource compression packet; and the relative path between the picture resources in the picture resource compression packet is the same as the relative path between the corresponding picture resources in the project engineering.
And the first uploading module is used for uploading the picture resource compression packet to the second server by the third server.
And the deleting module is used for deleting the picture resource corresponding to the second picture resource set in the project by the third server.
And the generating module is used for generating the installation package by the third server according to the project engineering.
And the second uploading module is used for uploading the installation package to the first server by the third server.
And the first downloading module is used for downloading the installation package from the first server by the client.
And the installation module is used for installing the application program corresponding to the installation package by the client.
The second downloading module is used for starting the application program by the client, and the application program downloads the picture resource corresponding to the installation package from a second server;
wherein the second download module comprises:
the detection unit is used for detecting whether the picture resource corresponding to the installation package exists or not by the client side to obtain a detection result; the detection result comprises presence and absence;
the second downloading unit is used for triggering the application program to download the picture resource corresponding to the installation package from a second server through the first downloading unit when the detection result is that the picture resource does not exist;
a first obtaining unit, configured to obtain, by a client, an installation directory corresponding to the application program;
and the decompression unit is used for decompressing the picture resource compression packet to the installation directory by the client.
In summary, according to the software installation method and system provided by the present invention, the picture resource is separated from other resources required for installing the application program, so that the size of the installation package is greatly reduced, and a developer can upload the installation package of the large-scale software of the mobile terminal to the first server (application platform) for the user to download conveniently. When the client starts the application program, the application program automatically downloads the picture resource corresponding to the installation package from the second server (namely, the server provided by the developer), so that the application program can normally run. For users, the software installation method provided by the invention only needs the same operation steps as those for installing the small-scale software of the mobile terminal, thereby improving the convenience for installing the large-scale software of the mobile terminal. Furthermore, when the picture resource compression packet is manufactured, the relative path among the picture resources is kept unchanged, and the picture resource compression packet is decompressed to the installation directory, so that the actual path of the picture resources after the application program is installed is the same as the path during development, and the application program can normally call and display the corresponding picture resources in the running process. Further, the picture resource is downloaded from the second server only when the application program is started, so that the picture resource in the starting process of the application program needs to be reserved by the installation package, so that the application program can be started normally. Furthermore, the picture resource is downloaded from the second server only when the application program is started for the first time, so that the flow consumption is saved.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (8)

1. A software installation method, comprising:
the client downloads the installation package from the first server;
the client side installs an application program corresponding to the installation package;
the client starts the application program for the first time, and the application program downloads the picture resource corresponding to the installation package from a second server;
further comprising:
the third server acquires picture resources corresponding to a project to obtain a first picture resource set;
the third server selects more than one picture resource from the first picture resource set to obtain a second picture resource set;
the more than one picture resources are picture resources which can be displayed after entering a software main interface;
the third server compresses the second picture resource set to obtain a picture resource compression packet; the relative path between each picture resource in the picture resource compression package is the same as the relative path between the corresponding picture resources in the project;
the third server uploads the picture resource compression packet to the second server;
the third server deletes the picture resource corresponding to the second picture resource set in the project;
the third server generates an installation package according to the project engineering, and the installation package reserves picture resources in the starting process of the application program;
the third server uploads the installation package to the first server;
the first server is an application platform, and the second server is a server provided by a developer.
2. The software installation method according to claim 1, wherein the application program downloads a picture resource corresponding to the installation package from a second server, specifically:
the application program downloads a picture resource compression package corresponding to the installation package from a second server;
the client acquires an installation catalog corresponding to the application program;
and the client decompresses the picture resource compression packet to the installation directory.
3. The software installation method according to claim 1, wherein the third server selects one or more picture resources from the first picture resource set to obtain a second picture resource set, and specifically:
the third server obtains picture resources displayed by the application program in the starting process to obtain a third resource picture set;
and the third server selects picture resources except the third resource picture set from the first picture resource set to obtain a second picture resource set.
4. The software installation method according to claim 1, wherein the application program downloads a picture resource corresponding to the installation package from a second server, specifically:
the client detects whether the picture resource corresponding to the installation package exists or not to obtain a detection result; the detection result comprises presence and absence;
and when the detection result is that the picture resource corresponding to the installation package does not exist, the application program downloads the picture resource corresponding to the installation package from a second server.
5. A software installation system, comprising:
the first downloading module is used for downloading the installation package from the first server by the client;
the installation module is used for installing the application program corresponding to the installation package by the client;
the second downloading module is used for starting the application program for the first time by the client, and the application program downloads the picture resource corresponding to the installation package from a second server;
the acquisition module is used for acquiring the picture resource corresponding to a project by the third server to obtain a first picture resource set;
the selecting module is used for selecting more than one picture resource from the first picture resource set by the third server to obtain a second picture resource set;
the more than one picture resources are picture resources which can be displayed after entering a software main interface;
the compression module is used for compressing the second picture resource set by the third server to obtain a picture resource compression packet; the relative path between each picture resource in the picture resource compression package is the same as the relative path between the corresponding picture resources in the project;
the first uploading module is used for uploading the picture resource compression packet to the second server by the third server;
a deleting module, configured to delete, by a third server, the picture resource corresponding to the second picture resource set in the project;
the generating module is used for generating an installation package by a third server according to the project engineering, and the installation package reserves picture resources in the starting process of the application program;
the second uploading module is used for uploading the installation package to the first server by the third server;
the first server is an application platform, and the second server is a server provided by a developer.
6. The software installation system of claim 5, wherein the second download module comprises:
the first downloading unit is used for downloading the picture resource compression package corresponding to the installation package from a second server by the application program;
a first obtaining unit, configured to obtain, by a client, an installation directory corresponding to the application program;
and the decompression unit is used for decompressing the picture resource compression packet to the installation directory by the client.
7. The software installation system of claim 5, wherein the selection module comprises:
the second acquisition unit is used for acquiring the picture resource displayed by the application program in the starting process by the third server to obtain a third resource picture set;
and the selecting unit is used for selecting the picture resources except the third resource picture set from the first picture resource set by the third server to obtain a second picture resource set.
8. The software installation system of claim 5, wherein the second download module comprises:
the detection unit is used for detecting whether the picture resource corresponding to the installation package exists or not by the client side to obtain a detection result; the detection result comprises presence and absence;
and the second downloading unit is used for downloading the picture resource corresponding to the installation package from a second server by the application program when the detection result is that the picture resource does not exist.
CN201810041567.1A 2018-01-16 2018-01-16 Software installation method and system Active CN108459861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810041567.1A CN108459861B (en) 2018-01-16 2018-01-16 Software installation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810041567.1A CN108459861B (en) 2018-01-16 2018-01-16 Software installation method and system

Publications (2)

Publication Number Publication Date
CN108459861A CN108459861A (en) 2018-08-28
CN108459861B true CN108459861B (en) 2022-02-11

Family

ID=63220274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810041567.1A Active CN108459861B (en) 2018-01-16 2018-01-16 Software installation method and system

Country Status (1)

Country Link
CN (1) CN108459861B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866539A (en) * 2022-07-06 2022-08-05 飞狐信息技术(天津)有限公司 File uploading method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7007274B1 (en) * 1999-12-27 2006-02-28 Ge Medical Systems Global Technology Company, Llc Web-based apparatus and method for enhancing and monitoring picture archiving and communication systems
CN102137390A (en) * 2010-12-13 2011-07-27 华为软件技术有限公司 Method, equipment and system for downloading mobile phone software
CN106648770A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Generating method, loading method and device for application program installation package

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7007274B1 (en) * 1999-12-27 2006-02-28 Ge Medical Systems Global Technology Company, Llc Web-based apparatus and method for enhancing and monitoring picture archiving and communication systems
CN102137390A (en) * 2010-12-13 2011-07-27 华为软件技术有限公司 Method, equipment and system for downloading mobile phone software
CN106648770A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Generating method, loading method and device for application program installation package

Also Published As

Publication number Publication date
CN108459861A (en) 2018-08-28

Similar Documents

Publication Publication Date Title
CN106815370B (en) Method, device and system for updating resource file
CN100396132C (en) Method for realizing programme update of wireless terminal
CN104461504B (en) A kind of management method of end application
CN106598673B (en) Application program upgrading method and system
CN111722885B (en) Program running method and device and electronic equipment
CN111049870B (en) Application downloading and sending method, device and system
KR20070106691A (en) A method of automatically building a customised software application for a specific type of wireless computing device
CN102523268A (en) Client side upgrading method and system
CN104360871A (en) Quick starting method for installation of cell phone games
CN110362338B (en) Game resource packaging and resource quick access method under mobile platform
CN111897564A (en) Application updating method and system
CN110968331A (en) Method and device for running application program
CN112149035A (en) Website static resource processing method and device
CN108459861B (en) Software installation method and system
CN106406923B (en) Method and device for processing dynamic library file
WO2013170801A1 (en) Device management method and apparatus
CN111045698A (en) Redundant picture deleting method and device, electronic equipment and storage medium
CN113110851A (en) Resource loading method and device, electronic equipment and medium
JP2005228183A (en) Program execution method and computer system for executing the program
CN109471799A (en) A kind of dispositions method of demand environment, device, storage medium and terminal
CN107179918B (en) Software processing method, device and system
CN108874495B (en) Theme resource conversion method and device and electronic equipment
CN108572985B (en) Page display method and device
CN107301089B (en) APP deployment and calling method and terminal
US20090187880A1 (en) Customized networked-based commerce system packages

Legal Events

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