CN109683913A - Generate method and device, the computer equipment, storage medium of compressed package - Google Patents
Generate method and device, the computer equipment, storage medium of compressed package Download PDFInfo
- Publication number
- CN109683913A CN109683913A CN201811353901.3A CN201811353901A CN109683913A CN 109683913 A CN109683913 A CN 109683913A CN 201811353901 A CN201811353901 A CN 201811353901A CN 109683913 A CN109683913 A CN 109683913A
- Authority
- CN
- China
- Prior art keywords
- file
- compressed package
- item file
- type
- compressed
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012856 packing Methods 0.000 claims abstract description 30
- 238000009434 installation Methods 0.000 claims description 26
- 230000015654 memory Effects 0.000 claims description 20
- 230000006835 compression Effects 0.000 claims description 17
- 238000007906 compression Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012544 monitoring process Methods 0.000 claims description 8
- 230000001960 triggered effect Effects 0.000 claims description 7
- 230000006870 function Effects 0.000 description 9
- 230000006837 decompression Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a kind of method and device, computer equipments, storage medium for generating compressed package.On the one hand, plug-in unit is packaged this method comprises: creating in the scaffold of webpack, wherein the packing plug-in unit is for automatically generating compressed package;The item file that specified type is selected according to file type, calls the packing plug-in unit, and the item file is packaged and generates compressed package;The compressed package is sent to opencms system.Through the invention, the technical issues of low efficiency when issuing compressed package by opencms system in the prior art is solved.
Description
[technical field]
The present invention relates to computer field more particularly to a kind of method and device for generating compressed package, computer equipment, deposit
Storage media.
[background technique]
Compressed package is very widely used file format, in management file, file publishing, often uses compression
Packet.
In the prior art, all it is that user generates compressed package manually, is such as using an opencms system (professional rank
Open source Web Content Management System) when, compressed package format need manually be packaged, if file directory is excessive, when project is excessive
It is packaged manually than relatively time-consuming and easy error.
For the above problem present in the relevant technologies, at present it is not yet found that the solution of effect.
[summary of the invention]
In view of this, the embodiment of the invention provides a kind of method and device, computer equipments, storage for generating compressed package
Medium.
On the one hand, the embodiment of the invention provides a kind of methods for generating compressed package, which comprises in webpack
Scaffold in creation be packaged plug-in unit, wherein the packings plug-in unit be used for automatically generate compressed package;Referred to according to file type selection
The item file for determining type calls the packing plug-in unit, and the item file is packaged and generates compressed package;The compressed package is sent out
It send to opencms system.
Optionally, selecting the item file of specified type according to file type includes: the project text for selecting suffix as html
Part selects suffix for the item file of css, selects suffix for the item file of images, selects suffix for the item file of js.
Optionally, selecting the item file of specified type according to file type includes: the specified file for storing address of monitoring
It whether include item file in folder;When including item file in the file, the type of the item file is obtained;According to
File type selects the item file of specified type in the file.
Optionally, the item file being packaged and generating compressed package includes following one: by all items of a type
File, which is packaged, generates a compressed package, wherein the corresponding compressed package of each type;By each item file of each type point
It is not packaged, obtains multiple compressed packages, wherein the corresponding compressed package of each item file;By all items of multiple types
The packing of mesh file is generated as a compressed package, wherein the corresponding compressed package of the item file of multiple types.
Optionally, after the compressed package is sent to opencms system, the method also includes: described
The compressed package is unziped into multiple directory paths in opencms system, obtains the multiple item file, wherein is every
The corresponding directory path of a type;The item file of one or more target types in directory path is selected, installation is generated
Packet.
Optionally, after generating installation kit, the method also includes at least one of: by the opencms system
The upper publication installation kit;The installation kit is pushed to application shop.
Optionally, the item file being packaged and generating compressed package includes: when contractive condition is triggered, according to preset
Press cycles, compression zone and compressed file storage position, creation filename meet the empty compressed file of setting rule;It obtains
The item file and its bibliographic structure, and the item file is compressed;By compressed item file and the mesh
Directory structures is output to the empty compressed file, generates zip packet.
On the other hand, the embodiment of the invention provides a kind of device for generating compressed package, described device includes: creation mould
Block, for the creation packing plug-in unit in the scaffold of webpack, wherein the packing plug-in unit is for automatically generating compressed package;The
One generation module calls the packing plug-in unit, by the project for selecting the item file of specified type according to file type
File, which is packaged, generates compressed package;Sending module, for the compressed package to be sent to opencms system.
Optionally, first generation module includes: first selecting unit, for selecting suffix for the project text of html
Part;Second selecting unit, for selecting suffix for the item file of css;Third selecting unit, for selecting suffix for images
Item file;4th selecting unit, for selecting suffix for the item file of js.
Optionally, first generation module includes: monitoring unit, is in the file for monitoring specified storage address
No includes item file;First acquisition unit obtains the item file when for including item file in the file
Type;Selecting unit, for selecting the item file of specified type in the file according to file type.
Optionally, first generation module includes following one: the first generation unit, for by all of type
Item file, which is packaged, generates a compressed package, wherein the corresponding compressed package of each type;Second generation unit, being used for will be every
Each item file of a type is packaged respectively, obtains multiple compressed packages, wherein the corresponding compression of each item file
Packet;Third generation unit, for all items file packing of multiple types to be generated as a compressed package, wherein multiple classes
The corresponding compressed package of the item file of type.
Optionally, described device further include: the sending module by the compressed package be sent to opencms system it
Afterwards, decompression module obtains described for the compressed package to be unziped to multiple directory paths in the opencms system
Multiple item files, wherein the corresponding directory path of each type;Second generation module, for selecting directory path
In one or more target types item file, generate installation kit.
Optionally, described device further includes at least one of: the first release module, in second generation module
After generating installation kit, the installation kit will be issued in the opencms system;Second release module, for described second
After generation module generates installation kit, the installation kit is pushed to application shop.
Optionally, first generation module includes: creating unit, for when contractive condition is triggered, according to default
Press cycles, compression zone and compressed file storage position, creation filename meet setting rule empty compressed file;The
Two acquiring units are compressed for obtaining the item file and its bibliographic structure, and to the item file;4th generates
Unit generates zip packet for compressed item file and the bibliographic structure to be output to the empty compressed file.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, it is packaged plug-in unit by creating in the scaffold of webpack, then selects the project of specified type
File calls the packing plug-in unit, and the item file is packaged and generates compressed package, is finally sent to the compressed package
Opencms system can automatically generate compressed package by the packing plug-in unit of creation, issue compressed package by opencms system,
Manual creation compressed package is not needed to issue, solves low efficiency when issuing compressed package by opencms system in the prior art
The technical issues of, improve the efficiency of the efficiency for generating compressed package and publication compressed package.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field
For those of ordinary skill, without any creative labor, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of hardware block diagram of the mobile terminal of generation compressed package of the embodiment of the present invention;
Fig. 2 is the flow chart of the method according to an embodiment of the present invention for generating compressed package;
Fig. 3 is the flow diagram of the item file of selection specified type of the embodiment of the present invention;
Fig. 4 is the structural block diagram of the device according to an embodiment of the present invention for generating compressed package.
[specific embodiment]
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune
It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of mobile end of generation compressed package of the embodiment of the present invention
The hardware block diagram at end.As shown in Figure 1, mobile terminal 10 may include one or more (only showing one in Fig. 1) processing
Device 102 (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.) and
Memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the transmission device for communication function
106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, simultaneously
The structure of above-mentioned mobile terminal is not caused to limit.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 or less
Component, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
The corresponding computer program of method of generation compressed package in bright embodiment, processor 102 are stored in memory 104 by operation
Interior computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 can
Including high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or
Other non-volatile solid state memories of person.In some instances, memory 104 can further comprise remote relative to processor 102
The memory of journey setting, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes
But be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to
It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as
RF) module is used to wirelessly be communicated with internet.
A kind of method for generating compressed package is provided in the present embodiment, and Fig. 2 is generation pressure according to an embodiment of the present invention
The flow chart for the method wrapped that contracts, as shown in Fig. 2, the process includes the following steps:
Step S202, creation is packaged plug-in unit in the scaffold of webpack, wherein is packaged plug-in unit for automatically generating pressure
Contracting packet;
Step S204 selects the item file of specified type according to file type, calls and is packaged plug-in unit, item file is beaten
Packet generates compressed package;
Compressed package is sent to opencms system by step S206.
Scheme through this embodiment, is packaged plug-in unit by creating in the scaffold of webpack, then selects specified class
The item file of type calls the packing plug-in unit, and the item file is packaged and generates compressed package, finally sends out the compressed package
It send to opencms system, compressed package can be automatically generated by the packing plug-in unit of creation, pressure is issued by opencms system
Contracting packet, does not need manual creation compressed package to issue, and solves and issues compressed package timeliness by opencms system in the prior art
The low technical problem of rate improves the efficiency of the efficiency for generating compressed package and publication compressed package.
Compressed package in the present embodiment can be zip, the compressed package of the formats such as RAR, by building a webpack foot hand
Frame, creation are packaged plug-in unit, this plug-in unit can be according to configuration the item file (text of the suffix such as html, css, images, js
Part) integration compression, then generate one or more compressed packages.
The format of item file can be multiple types, be distinguished by suffix title, such as html, css, images,
The suffix such as js, as the source file for generating compressed package, when selecting the item file of specified type according to file type, comprising:
Select suffix for the item file of html;Select suffix for the item file of css;Select suffix for the item file of images;
Select suffix for the item file of js.
Optionally, the condition of packed card, or the condition of automatic starting condensing routine are triggered, can be file type
Either storage address is such as locally monitoring the item file of preset kind, or is scanning and arrive in preset storage address
When file, with regard to automatic trigger, Fig. 3 is the flow diagram of the item file of selection specified type of the embodiment of the present invention, such as Fig. 3 institute
Show, selects the item file of specified type to include:
Whether step S302, monitoring in the file of specified storage address includes item file;
Step S304 obtains the type of item file when in file comprising item file;
Step S306 selects the item file of specified type according to file type in file.
The packed card of the present embodiment can regard an instruction set as, and in the prior art, these instruction sets are hands
Dynamic completion, and the packed card in the present embodiment can be completed with automatic trigger, these instruction sets and its execution timing include:
It determines item file to be compressed, selects item file, compress the item file of selection.Compression item file can be one one
A compression, can also concentrate compression, e.g., when packed card is after designated storage location detects an item file, touch immediately
The operation of hair selection and compression, and then generate zip packet.One or more file types of triggering compression can be preset;Root
It is triggered according to type and according to two trigger conditions that address triggering is compressed as triggering, can combine or be used separately.
In the present embodiment, due to including multiple item files, and different types is adhered to separately, therefore there are multiple packings generations
The strategy of compressed package, it includes following one that item file, which is packaged, and generates compressed package: all items file of a type is beaten
Packet generates a compressed package, wherein the corresponding compressed package of each type;Each item file of each type is carried out respectively
It is packaged, obtains multiple compressed packages, wherein the corresponding compressed package of each item file;By all items file of multiple types
Packing is generated as a compressed package, wherein the corresponding compressed package of the item file of multiple types.E.g., including A, B, C tri-
The item file of type, each type have item file, are a1, a2, a3, b1, b2, b3, c1, c2, c3 respectively, using above-mentioned
Three compressed packages can be generated in one embodiment, and the file of each compressed package is respectively: " a1, a2, a3 " " b1, b2, b3 ",
Using above-mentioned second embodiment 9 compressed packages can be generated, the file of each compressed package is respectively in " c1, c2, c3 ":
" a1 ", " a2 ", " a3 ", " b1 ", " b2 ", " b3 ", " c1 ", " c2 ", " c3 " can be generated 1 using above-mentioned third embodiment
The file of a compressed package, compressed package is: " a1, a2, a3, b1, b2, b3, c1, c2, c3 ".Optionally, in the project of multiple types
When file is successively packaged, the packing priority that multiple file types can be set is beaten when being packaged one by one according to priority
Packet.
In the present embodiment, for the generating process of a compressed package, item file, which is packaged generation compressed package, includes:
S11, when contractive condition is triggered, according to preset press cycles, compression zone and compressed file storage position
It sets, creation filename meets the empty compressed file of setting rule;
S21 obtains item file and its bibliographic structure, and compresses to item file;
Compressed item file and bibliographic structure are output to sky compressed file, generate zip packet by S31.
Optionally, after compressed package is sent to opencms system, further includes:
Compressed package is unziped into multiple directory paths in opencms system, obtains multiple item files, wherein is each
Type corresponds to a directory path;
The item file of one or more target types in directory path is selected, installation kit is generated.
Since opencms has carried the function of decompression zip packet, the function can be used to decompress zip packet,
The front end on opencms may be implemented in conjunction with the function of the included decompression zip packet of opencms in the function of Webpack compression zip packet
The one-touch publication of resource, upload zip packet opencms can automatically generate with zip packet title catalogue, zip packet is directly solved
It is compressed under the catalogue, does not need manual grassroot project catalogue.
In the present embodiment, it can choose the item file of predetermined format, installation kit generated, such as the installation kit of Android platform
File including js suffix, the installation kit including browser interface include the file of html suffix.The corresponding pressure of each catalogue
File after contracting packet decompression, after decompression, a type file there are when multiple directory paths, by same type
Under file mergences a to catalogue;The file under multiple directory paths is selected, installation kit is generated.The installation kit of one version is corresponding
A directoryof.
Optionally, after generating installation kit, method further includes at least one of: being pacified issuing in opencms system
Dress packet;Installation kit is pushed to application shop.Different application shops is uploaded to according to the difference of version, as ios version on
Pass to apple application shop.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of device for generating compressed package is additionally provided in the present embodiment, and the device is for realizing above-described embodiment and excellent
Embodiment is selected, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
Software and/or hardware combination.Although device described in following embodiment is preferably realized with software, hardware,
Or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 4 is the structural block diagram of the device according to an embodiment of the present invention for generating compressed package, as shown in figure 4, the device packet
It includes:
Creation module 40, for the creation packing plug-in unit in the scaffold of webpack, wherein the packing plug-in unit is used for
Automatically generate compressed package;
First generation module 42 calls described be packaged to insert for selecting the item file of specified type according to file type
The item file is packaged and generates compressed package by part;
Sending module 44, for the compressed package to be sent to opencms system.
Optionally, optionally, first generation module includes: first selecting unit, for selecting suffix for html's
Item file;Second selecting unit, for selecting suffix for the item file of css;Third selecting unit, for select suffix for
The item file of images;4th selecting unit, for selecting suffix for the item file of js.
Optionally, first generation module includes: monitoring unit, is in the file for monitoring specified storage address
No includes item file;First acquisition unit obtains the item file when for including item file in the file
Type;Selecting unit, for selecting the item file of specified type in the file according to file type.
Optionally, first generation module includes following one: the first generation unit, for by all of type
Item file, which is packaged, generates a compressed package, wherein the corresponding compressed package of each type;Second generation unit, being used for will be every
Each item file of a type is packaged respectively, obtains multiple compressed packages, wherein the corresponding compression of each item file
Packet;Third generation unit, for all items file packing of multiple types to be generated as a compressed package, wherein multiple classes
The corresponding compressed package of the item file of type.
Optionally, described device further include: decompression module, for the compressed package to be sent in the sending module
After opencms system, the compressed package is unziped into multiple directory paths in the opencms system, is obtained described more
A item file, wherein the corresponding directory path of each type;Second generation module, for selecting in directory path
One or more target types item file, generate installation kit.This partial function can be set in opencms system,
By being realized automatically by opencms system, can also be realized by generating the device of compressed package to control, in actual motion
In the process, generate compressed package device and opencms system operation on one entity, or operate in it is multiple physically.
Optionally, described device further includes at least one of: the first release module, in second generation module
After generating installation kit, the installation kit will be issued in the opencms system;Second release module, for described second
After generation module generates installation kit, the installation kit is pushed to application shop.
Optionally, first generation module includes: creating unit, for when contractive condition is triggered, according to default
Press cycles, compression zone and compressed file storage position, creation filename meet setting rule empty compressed file;The
Two acquiring units are compressed for obtaining the item file and its bibliographic structure, and to the item file;4th generates
Unit generates zip packet for compressed item file and the bibliographic structure to be output to the empty compressed file.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 3
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S1, creation is packaged plug-in unit in the scaffold of webpack, wherein the packing plug-in unit is for automatically generating compression
Packet;
S2 selects the item file of specified type according to file type, the packing plug-in unit is called, by the item file
It is packaged and generates compressed package;
The compressed package is sent to opencms system by S3.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1, creation is packaged plug-in unit in the scaffold of webpack, wherein the packing plug-in unit is for automatically generating compression
Packet;
S2 selects the item file of specified type according to file type, the packing plug-in unit is called, by the item file
It is packaged and generates compressed package;
The compressed package is sent to opencms system by S3.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (10)
1. a kind of method for generating compressed package, which is characterized in that the described method includes:
Creation is packaged plug-in unit in the scaffold of webpack, wherein the packing plug-in unit is for automatically generating compressed package;
The item file that specified type is selected according to file type, calls the packing plug-in unit, and the item file is packaged and is given birth to
At compressed package;
The compressed package is sent to opencms system.
2. the method according to claim 1, wherein selecting the item file packet of specified type according to file type
It includes:
It selects suffix for the item file of html, selects suffix for the item file of css, select suffix for the project text of images
Part selects suffix for the item file of js.
3. the method according to claim 1, wherein selecting the item file packet of specified type according to file type
It includes:
It whether include item file in the file of the specified storage address of monitoring;
When including item file in the file, the type of the item file is obtained;
The item file of specified type is selected in the file according to file type.
4. the method according to claim 1, wherein it includes following that the item file, which is packaged generation compressed package,
One of:
The all items file of one type is packaged and generates a compressed package, wherein the corresponding compressed package of each type;
Each item file of each type is packaged respectively, obtains multiple compressed packages, wherein each item file is corresponding
One compressed package;
The all items file packing of multiple types is generated as a compressed package, wherein the item file of multiple types is corresponding
One compressed package.
5. the method according to claim 1, wherein after the compressed package is sent to opencms system,
The method also includes:
The compressed package is unziped into multiple directory paths in the opencms system, obtains multiple item files,
In, the corresponding directory path of each type;
The item file of one or more target types in directory path is selected, installation kit is generated.
6. according to the method described in claim 5, it is characterized in that, the method also includes following after generating installation kit
At least one:
The installation kit will be issued in the opencms system;
The installation kit is pushed to application shop.
7. the method according to claim 1, wherein including: by item file packing generation compressed package
When contractive condition is triggered, according to preset press cycles, compression zone and compressed file storage position, creation text
Part name meets the empty compressed file of setting rule;
The item file and its bibliographic structure are obtained, and the item file is compressed;
Compressed item file and the bibliographic structure are output to the empty compressed file, generate zip packet.
8. a kind of device for generating compressed package, which is characterized in that described device includes:
Creation module, for the creation packing plug-in unit in the scaffold of webpack, wherein the packing plug-in unit is for automatically raw
At compressed package;
First generation module calls the packing plug-in unit, by institute for selecting the item file of specified type according to file type
It states item file and is packaged generation compressed package;
Sending module, for the compressed package to be sent to opencms system.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is located
The step of reason device realizes method described in any one of claims 1 to 7 when executing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811353901.3A CN109683913A (en) | 2018-11-14 | 2018-11-14 | Generate method and device, the computer equipment, storage medium of compressed package |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811353901.3A CN109683913A (en) | 2018-11-14 | 2018-11-14 | Generate method and device, the computer equipment, storage medium of compressed package |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109683913A true CN109683913A (en) | 2019-04-26 |
Family
ID=66185811
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811353901.3A Pending CN109683913A (en) | 2018-11-14 | 2018-11-14 | Generate method and device, the computer equipment, storage medium of compressed package |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109683913A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110286917A (en) * | 2019-05-21 | 2019-09-27 | 深圳壹账通智能科技有限公司 | File packing method, device, equipment and storage medium |
CN110633253A (en) * | 2019-08-20 | 2019-12-31 | 贵州省广播电视信息网络股份有限公司 | Method and system for decompressing compression packet and generating project file |
CN111901684A (en) * | 2020-07-30 | 2020-11-06 | 深圳市康冠科技股份有限公司 | File classification method and related device |
CN112765112A (en) * | 2021-01-22 | 2021-05-07 | 苏州浪潮智能科技有限公司 | Installation package packing and unpacking method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150227354A1 (en) * | 2012-09-12 | 2015-08-13 | Zte Corporation | Software Installation Package Generation and Software Installation Method, Device, and System |
CN106502708A (en) * | 2016-11-15 | 2017-03-15 | 航天信息股份有限公司 | A kind of method and system for creating web project project based on Eclipse plug-in units |
CN107632826A (en) * | 2016-07-14 | 2018-01-26 | 腾讯科技(深圳)有限公司 | The Compilation Method and client of a kind of source code |
-
2018
- 2018-11-14 CN CN201811353901.3A patent/CN109683913A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150227354A1 (en) * | 2012-09-12 | 2015-08-13 | Zte Corporation | Software Installation Package Generation and Software Installation Method, Device, and System |
CN107632826A (en) * | 2016-07-14 | 2018-01-26 | 腾讯科技(深圳)有限公司 | The Compilation Method and client of a kind of source code |
CN106502708A (en) * | 2016-11-15 | 2017-03-15 | 航天信息股份有限公司 | A kind of method and system for creating web project project based on Eclipse plug-in units |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110286917A (en) * | 2019-05-21 | 2019-09-27 | 深圳壹账通智能科技有限公司 | File packing method, device, equipment and storage medium |
CN110633253A (en) * | 2019-08-20 | 2019-12-31 | 贵州省广播电视信息网络股份有限公司 | Method and system for decompressing compression packet and generating project file |
CN111901684A (en) * | 2020-07-30 | 2020-11-06 | 深圳市康冠科技股份有限公司 | File classification method and related device |
CN111901684B (en) * | 2020-07-30 | 2022-06-14 | 深圳市康冠科技股份有限公司 | File classification method and related device |
CN112765112A (en) * | 2021-01-22 | 2021-05-07 | 苏州浪潮智能科技有限公司 | Installation package packing and unpacking method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109683913A (en) | Generate method and device, the computer equipment, storage medium of compressed package | |
US10303522B2 (en) | System and method for distributed graphics processing unit (GPU) computation | |
CN102801779B (en) | Interface presentation method, system and terminal | |
CN103259936B (en) | Operating system upgrade method for mobile terminal and operating system upgrade device of operating system upgrade method | |
CN108170740A (en) | Data migration method, system and computer readable storage medium | |
CN105163135B (en) | Method for down loading, apparatus and system and the mobile terminal of Internet resources | |
CN106603581B (en) | Test method and device supporting multiple communication protocols | |
CN102799640A (en) | Page loading device and page loading method | |
CN103513998A (en) | Method and device for generating upgrade package and method and terminal for upgrading dynamic documents in difference mode | |
CN104199951B (en) | Web page processing method and device | |
CN110209731A (en) | Method of data synchronization, device and storage medium, electronic device | |
CN109508319A (en) | A kind of cross-platform resource management system of 3D and method | |
CN105323309B (en) | A kind of method and device of bubble resource supplying | |
CN103747067A (en) | Data configuration method based on digital home intelligent gateway | |
CN107526584A (en) | Data cut-in method and device | |
CN106815271B (en) | Query condition generation method and device | |
CN106161517B (en) | The method and apparatus for realizing cloud storage access by cloud file system | |
CN109945412A (en) | Remote control equipment, control method and device thereof and storage medium | |
CN106341482B (en) | Cloud rendering mixing compression transmission System and method for based on file type | |
CN105847117A (en) | Method of sending E-mail having attachment, device, and mobile terminal | |
CN105516106A (en) | Packet packing method and device of message, and unpacking method and device of message | |
CN107179918B (en) | Software processing method, device and system | |
CN107577822A (en) | A kind of method of data synchronization, data synchronization unit and mobile terminal | |
CN104375871B (en) | A kind of method and apparatus based on the start of eMMC acceleration systems | |
CN106878354B (en) | Method, device and system for file mutual transmission among multiple cloud storage systems |
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 |