CN113992655B - Software packaging method, system and computer storage medium - Google Patents
Software packaging method, system and computer storage medium Download PDFInfo
- Publication number
- CN113992655B CN113992655B CN202111246642.6A CN202111246642A CN113992655B CN 113992655 B CN113992655 B CN 113992655B CN 202111246642 A CN202111246642 A CN 202111246642A CN 113992655 B CN113992655 B CN 113992655B
- Authority
- CN
- China
- Prior art keywords
- file
- inclusion
- packaged
- marking information
- subcontracted
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000004806 packaging method and process Methods 0.000 claims abstract description 11
- 238000012858 packaging process Methods 0.000 abstract description 2
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000004075 alteration Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 230000002411 adverse Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a software packetizing method, a system and a computer storage medium, wherein the method comprises the following steps: acquiring a package file to be packaged and channel marking information, and storing the package file to be packaged according to the channel marking information; writing channel marking information into a corresponding inclusion file to be subcontracted to obtain a subcontracted inclusion file; and uploading the packet body file with the subpackaged packets to a cloud end for downloading by a client. According to the invention, the software is automatically marked according to the channel in the sub-packaging process, and manual sub-packaging is not needed, so that the sub-packaging efficiency is improved, and the sub-packaging accuracy is improved.
Description
Technical Field
The present invention relates to the field of software development technologies, and in particular, to a software packaging method, a system, and a computer storage medium.
Background
Software is an information product that people often contact in modern life. For commercial software, after the software is manufactured by a developer, the software is finally downloaded and used by a user through a series of commercial popularization. Users may directly or indirectly generate streamlines during use of the software that need to be separated by the channel and developer. Since there are many current channel parties, a developer cooperates with a plurality of channel parties to promote software in order to maximize economic benefits, but the flowing water generated by each channel party is not the same, so that the data such as the flowing water generated by each channel party needs to be distinguished so as to facilitate later separation and the like.
To facilitate the differentiation of channels, the software needs to package the software itself and some related channel information to form file packages after the development is completed, and these file packages are put on shelf and promoted by the corresponding channel parties, and this process is called subcontracting. In the prior art, because the information of the channel side is different, various information needs to be manually input in the process of subpackaging the file, and then the packaging operation is manually performed to form the file packet corresponding to the channel side. When the number of channels is large and the software is large, the efficiency of the manual processing mode is very low, for example, the software with the size of 1Gb is required to be packaged manually for 3-5 minutes, if the number of channels reaches tens or hundreds, the time for packaging the software is very long, and a large amount of repeated labor is very easy to cause personnel fatigue, so that the possibility of mistakes is increased.
Disclosure of Invention
The embodiment of the invention provides a software sub-packaging method, a system and a computer storage medium, which are used for solving the problems of low efficiency and easy error of manual sub-packaging in the prior art.
In one aspect, an embodiment of the present invention provides a software packetization method, including:
acquiring a package file to be packaged and channel marking information, and storing the package file to be packaged according to the channel marking information;
writing channel marking information into a corresponding inclusion file to be subcontracted to obtain a subcontracted inclusion file;
And uploading the packet body file with the subpackaged packets to a cloud end for downloading by a client.
On the other hand, the embodiment of the invention also provides a system of the software packaging method, which comprises the following steps:
The bag body acquisition module is used for acquiring bag body files to be packaged and channel marking information, and storing the bag body files to be packaged according to the channel marking information;
the subpackaging module is used for writing channel marking information into the corresponding packet body file to be subpackaged to obtain the packet body file with subpackaged finish;
the package uploading module is used for uploading the package files which are packaged to the cloud end for downloading by the client.
In another aspect, an embodiment of the present invention further provides an electronic device, including:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein the method comprises the steps of
The memory stores computer instructions executable by the at least one processor to cause the at least one processor to perform the method described above.
In another aspect, an embodiment of the present invention further provides a computer readable storage medium, where a plurality of computer instructions are stored, where the plurality of computer instructions are configured to cause a computer to perform the above method.
The software packetizing method, the system and the computer storage medium have the following advantages:
the software is automatically marked according to the channel in the sub-packaging process, and manual sub-packaging is not needed, so that the sub-packaging efficiency is improved, and the sub-packaging accuracy is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a software packetizing method according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of a software packetizing method according to an embodiment of the present invention. The embodiment of the invention provides a software subcontracting method, which comprises the following steps:
S100, acquiring the inclusion file to be subcontracted and channel marking information, and storing the inclusion file to be subcontracted according to the channel marking information.
The method for detecting the bag body file to be sub-packaged further comprises the following steps of: and detecting whether the path of the inclusion file to be packetized is effective, and deleting the acquired inclusion file to be packetized if the path of the inclusion file to be packetized is ineffective or is repeated with the path of the history inclusion file so as to prevent the acquisition of the history residual file and the adverse effect on the packetizing process.
When the path of the inclusion file to be subcontracted is determined to be effective, the inclusion file to be subcontracted can be duplicated according to the quantity of the channel marking information, and the duplicated inclusion file to be subcontracted is stored. For example, when 10 channel mark information is obtained, the package files to be packaged are required to be copied into 10 copies, and the 10 copies of package files to be packaged are respectively stored, so that subsequent processing operations are facilitated.
S110, writing channel marking information into the corresponding inclusion file to be subcontracted to obtain the inclusion file with the subcontracted.
The method for detecting the package file to be packaged further includes, before writing the channel marking information into the corresponding package file to be packaged, specifically: and acquiring basic information of the inclusion file to be packetized, wherein the basic information comprises the file type, the read-write permission and the like.
After the detection of the bag body file to be sub-packaged is finished, determining whether the bag body file to be sub-packaged has remark information according to the acquired basic information, and if so, checking the bag body file to be sub-packaged specifically comprises the following steps: determining whether a specified directory exists in the basic information, whether the inclusion file to be packetized is writable, whether a repeated file exists in the inclusion file to be packetized, and the like. If the verification is passed, a new file is built in the inclusion file to be subcontracted, and the new file is used for designating a position, for example, designating the new file to xxx. After the operation of creating the file is completed, channel marking information is written in the newly created file, and the package body file with the packaged package is obtained.
If the basic information does not have remark information, channel marking information is directly written in the bag body file to be packaged, the remark information of the bag body file to be packaged is formed, and the bag body file with packaged is obtained.
S120, uploading the subpackaged inclusion file to the cloud end for downloading by the client.
Illustratively, after the package file with the package is uploaded to the cloud, the package file with the package stored locally is deleted, so as to reduce the occupation of the storage space by the useless file.
In the embodiment of the invention, after the client downloads the packet body file with the sub-packet from the cloud, the client firstly installs the packet body file, then reads the basic information of the packet body file to determine whether remark information exists in the basic information, and if the remark information exists, directly reads the remark information, namely channel marking information, and stores the channel marking information. If the remark information does not exist, channel marking information is read in a file at a specified position, for example, the channel marking information is read in a new file at the position xxx.
After the client acquires the channel marking information, the client sends data to the corresponding server according to the channel marking information after subsequent consumption, recharging and other operations.
The embodiment of the invention also provides a software subcontracting system, which comprises:
The bag body acquisition module is used for acquiring bag body files to be packaged and channel marking information, and storing the bag body files to be packaged according to the channel marking information;
the subpackaging module is used for writing channel marking information into the corresponding packet body file to be subpackaged to obtain the packet body file with subpackaged finish;
the package uploading module is used for uploading the package files which are packaged to the cloud end for downloading by the client.
The embodiment of the invention also provides electronic equipment, which comprises:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein the method comprises the steps of
The memory stores computer instructions executable by the at least one processor to cause the at least one processor to perform the method described above.
The embodiment of the invention also provides a computer readable storage medium, wherein a plurality of computer instructions are stored in the computer readable storage medium, and the plurality of computer instructions are used for enabling a computer to execute the method.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (6)
1. A method of packetizing software, comprising:
acquiring a package file to be packaged and channel marking information, and storing the package file to be packaged according to the channel marking information;
writing the channel marking information into the corresponding inclusion file to be subcontracted to obtain a subcontracted inclusion file;
Uploading the packet body file which is packaged in the packet to a cloud end for downloading by a client;
Before writing the channel marking information into the corresponding inclusion file to be subcontracted to obtain the subcontracted inclusion file, the method further comprises the following steps:
detecting the bag body file to be sub-packaged to obtain basic information of the bag body file to be sub-packaged;
Writing the channel marking information into the corresponding inclusion file to be subcontracted to obtain the inclusion file with the subcontracted completion, wherein the method comprises the following steps:
Determining whether the inclusion file to be subcontracted has remark information or not according to the basic information, if so, checking the inclusion file to be subcontracted, if the checking is passed, newly building a file in the inclusion file to be subcontracted, wherein the newly built file is used for designating a position, and after finishing the operation of the newly built file, writing channel marking information in the newly built file to obtain the inclusion file after subcontracting is finished;
If the basic information does not have remark information, writing the channel marking information into the packet body file to be sub-packaged to form remark information of the packet body file to be sub-packaged, and obtaining the packet body file completed by sub-packaging.
2. The method of claim 1, comprising:
After acquiring the inclusion file to be subcontracted and the channel marking information and storing the inclusion file to be subcontracted according to the channel marking information, the method further comprises the following steps:
Determining whether the path of the inclusion file to be packetized is effective, and deleting the inclusion file to be packetized if the path of the inclusion file to be packetized is ineffective; and if the path of the inclusion file to be packetized is determined to be effective, copying the inclusion file to be packetized according to the quantity of the channel marking information, and storing the copied inclusion file to be packetized.
3. The method of claim 1, further comprising, after uploading the package file completed by the package to a cloud end for downloading by a client:
And deleting the packet body file which is stored locally and is completed by the subpackage.
4. A system for applying a software packetization method according to any of claims 1-3, characterized in that it comprises:
The bag body acquisition module is used for acquiring bag body files to be packaged and channel marking information, and storing the bag body files to be packaged according to the channel marking information;
The subpackaging module is used for writing the channel marking information into the corresponding packet body file to be subpackaged to obtain the packet body file with subpackaged finish;
And the package uploading module is used for uploading the package file which is packaged and completed to the cloud end for downloading by the client.
5. An electronic device, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein the method comprises the steps of
The memory stores computer instructions executable by the at least one processor to cause the at least one processor to perform the method of any of claims 1-3.
6. A computer readable storage medium having stored therein a plurality of computer instructions for causing a computer to perform the method of any of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111246642.6A CN113992655B (en) | 2021-10-26 | 2021-10-26 | Software packaging method, system and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111246642.6A CN113992655B (en) | 2021-10-26 | 2021-10-26 | Software packaging method, system and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113992655A CN113992655A (en) | 2022-01-28 |
CN113992655B true CN113992655B (en) | 2024-07-02 |
Family
ID=79741480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111246642.6A Active CN113992655B (en) | 2021-10-26 | 2021-10-26 | Software packaging method, system and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113992655B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104346167A (en) * | 2014-08-25 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for generating application channel package |
CN107943494A (en) * | 2017-08-04 | 2018-04-20 | 上海壹账通金融科技有限公司 | Distribution method and mobile terminal are applied by all kinds of means |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8719812B1 (en) * | 2008-06-30 | 2014-05-06 | Emc Corporation | Methods, systems, and computer readable media for dynamically modifying and utilizing a software package description for software installation |
CN108647527B (en) * | 2018-04-17 | 2020-11-17 | 创新先进技术有限公司 | File packing method, file packing device, file unpacking device and network equipment |
CN109542459A (en) * | 2018-09-29 | 2019-03-29 | 中国平安人寿保险股份有限公司 | Application program packaging method and device, computer installation and computer storage medium |
CN110830559B (en) * | 2019-10-24 | 2022-08-09 | 北京城市网邻信息技术有限公司 | Channel package automatic batch processing method, device, equipment and storage medium |
-
2021
- 2021-10-26 CN CN202111246642.6A patent/CN113992655B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104346167A (en) * | 2014-08-25 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for generating application channel package |
CN107943494A (en) * | 2017-08-04 | 2018-04-20 | 上海壹账通金融科技有限公司 | Distribution method and mobile terminal are applied by all kinds of means |
Also Published As
Publication number | Publication date |
---|---|
CN113992655A (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104156414B (en) | A kind of method for cleaning of garbage files, device and terminal | |
CN104199750B (en) | A kind of file access pattern method and device of Linux system | |
CN110058873A (en) | Application page update method, device, equipment and storage medium | |
CN109144548A (en) | A kind of multicompartment software upgrade method, device and server realized based on git | |
CN106897342B (en) | Data verification method and equipment | |
CN106293782A (en) | A kind of method for upgrading system and terminal | |
CN106648643A (en) | Method and device for generating channel package, terminal and server | |
CN112256675A (en) | Data migration method and device, terminal equipment and storage medium | |
CN107391112A (en) | A kind of FileVersion detection method and its special purpose device | |
CN106227893A (en) | A kind of file type acquisition methods and device | |
WO2019041891A1 (en) | Method and device for generating upgrade package | |
CN109908585A (en) | A kind of document handling method and system calculate equipment and storage medium | |
CN108255989A (en) | Picture storage method, device, terminal device and computer storage media | |
CN111078677B (en) | Data entry method and device | |
CN106919620B (en) | Single page processing method and device | |
CN109240936A (en) | Compatibility test method, terminal device and the medium of application program | |
CN107423095B (en) | Data processing method and device adaptive to hardware, storage medium and computer equipment | |
CN104951860A (en) | Production schedule planning support method and production schedule planning support apparatus | |
CN114780019A (en) | Electronic device management method and device, electronic device and storage medium | |
CN111400056A (en) | Message queue-based message transmission method, device and equipment | |
CN113992655B (en) | Software packaging method, system and computer storage medium | |
CN106407123A (en) | Automated testing method and device of server interface | |
US8838545B2 (en) | Incremental and prioritized restoration of blocks | |
CN110389777A (en) | A kind of edition upgrading verification method, system and the relevant apparatus of BIOS node | |
CN105278993A (en) | Linux system based drive module upgrading method and apparatus |
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 |