Nothing Special   »   [go: up one dir, main page]

CN109408486B - File distribution method and system, distribution server and file generation device - Google Patents

File distribution method and system, distribution server and file generation device Download PDF

Info

Publication number
CN109408486B
CN109408486B CN201811266319.3A CN201811266319A CN109408486B CN 109408486 B CN109408486 B CN 109408486B CN 201811266319 A CN201811266319 A CN 201811266319A CN 109408486 B CN109408486 B CN 109408486B
Authority
CN
China
Prior art keywords
file
configuration
publishing
updated
server
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
CN201811266319.3A
Other languages
Chinese (zh)
Other versions
CN109408486A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811266319.3A priority Critical patent/CN109408486B/en
Publication of CN109408486A publication Critical patent/CN109408486A/en
Application granted granted Critical
Publication of CN109408486B publication Critical patent/CN109408486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a file publishing method and system, a publishing server and a file generating device. The file publishing method comprises the following steps: the method comprises the steps that a configuration issuing configuration file is received by an issuing server, wherein the configuration issuing configuration file comprises file names of files to be issued; the publishing server compares the configuration publishing configuration file with the published file and determines the file needing to be updated; and the publishing server publishes the files needing to be updated outwards. The method and the device can determine the update file to be issued according to the configuration issuing configuration file, thereby saving system resources in the issuing process and improving the issuing speed.

Description

File distribution method and system, distribution server and file generation device
Technical Field
The present invention relates to the field of file publishing, and in particular, to a file publishing method and system, a publishing server, and a file generating apparatus.
Background
HMI (Human Machine Interface) is a medium for interaction and information exchange between systems and users, which enables conversion between internal forms of information and Human-acceptable forms. Human-machine interfaces exist in all fields of participation in human-machine information exchange, and comprise an HMI hardware part and an HMI software part.
The HMI software is generally divided into two parts, i.e., system software running in the HMI hardware and screen configuration software (such as JB-HMI screen configuration software) running under the Windows operating system of the PC. The user must first use the HMI picture configuration software to make the project file, and then download the project file to the HMI processor through the serial communication port of PC and HMI product.
Disclosure of Invention
The applicant found that: updating of applications is an important aspect of configuration software. Related art if a cross-version update requires multiple patches to be released, for example: if the client is 1.0 version, the client needs to be upgraded to 3.0 version, and the related technology is that the client needs to publish 2.0 version and 3.0 version on the publishing server to complete the upgrade, thereby occupying a large amount of system resources.
In view of the above technical problems, the present invention provides a file publishing method and system, a publishing server and a file generating apparatus, which can save system resources in the publishing process.
According to an aspect of the present invention, there is provided a file publishing method, including:
the method comprises the steps that a configuration issuing configuration file is received by an issuing server, wherein the configuration issuing configuration file comprises file names of files to be issued;
the publishing server compares the configuration publishing configuration file with the published file and determines the file needing to be updated;
and the publishing server publishes the files needing to be updated outwards.
In some embodiments of the present invention, the publishing server comparing the configuration publishing configuration file with the published file, and determining the file to be updated includes:
the publishing server receives a file to be published;
and the publishing server compares the configuration publishing configuration file, the file to be published and the published file to determine the file needing to be updated.
In some embodiments of the present invention, the file publishing method further comprises:
and the publishing server confirms the integrity of the file to be published according to the file to be published and the file names of the file to be published.
In some embodiments of the present invention, the publishing server comparing the configuration publishing configuration file with the published file, and determining the file to be updated includes:
the publishing server compares the configuration publishing configuration file with the published file and determines the file name to be updated;
the publishing server receives the file that needs to be updated.
The step of the publishing server receiving the file needing to be updated comprises the following steps:
the publishing server sends a file receiving request to the file generating device, wherein the file receiving request comprises the file name needing to be updated, so that the file generating device packages the file needing to be updated and sends the file needing to be updated to the publishing server.
In some embodiments of the present invention, the file publishing method further comprises:
the publishing server generates block data according to the file name required to be updated;
and the issuing server sends the block volume data to each user node of the block chain network so that the client updates the application program according to the block volume data.
In some embodiments of the present invention, the file publishing method further comprises:
the publishing server decrypts the configuration publishing configuration file by adopting a preset decryption algorithm to obtain the version information of the file to be published and the file names of the file to be published, wherein the file generating device traverses the whole publishing folder, encrypts the file names of the file to be published by adopting an encryption algorithm corresponding to the preset decryption algorithm, and writes the generated key into the configuration publishing configuration file.
In some embodiments of the present invention, the generating, by the publishing server, the block volume data according to the file name that needs to be updated includes:
and the issuing server encrypts the file name needing to be updated by adopting a preset encryption algorithm to generate block data.
According to another aspect of the present invention, there is provided a file publishing method, including:
the file generating device generates a configuration release configuration file, wherein the configuration release configuration file comprises file names of files to be released;
the file generating device sends the configuration issuing configuration file to the issuing server so that the issuing server compares the configuration issuing configuration file with the issued file, determines the file needing to be updated, and issues the file needing to be updated outwards.
In some embodiments of the present invention, the generating the configuration distribution configuration file by the file generating device includes:
the file generation device traverses the whole release folder;
the file generation device encrypts each file name of the file to be issued by adopting a first preset encryption algorithm, and writes the generated secret key into the configuration issuing configuration file.
In some embodiments of the present invention, the sending the configuration distribution configuration file to the distribution server by the file generating device includes:
the file generating device sends the configuration release configuration file and the complete file to be released to the release server, so that the release server compares the configuration release configuration file with the released file, determines the file to be updated, and releases the file to be updated outwards.
In some embodiments of the present invention, the file publishing method further comprises:
a file generation device receives a file receiving request sent by a release server, wherein the file receiving request comprises a file name needing to be updated;
the file generation device packages the files needing to be updated and sends the files to the distribution server, so that the distribution server distributes the files needing to be updated outwards.
According to another aspect of the present invention, there is provided a publishing server comprising:
the file receiving module is used for receiving a configuration release configuration file by a release server, wherein the configuration release configuration file comprises file names of files to be released;
the updating determining module is used for comparing the configuration release configuration file with the released file and determining the file needing to be updated;
and the file publishing module is used for publishing the files needing to be updated outwards.
In some embodiments of the present invention, the publishing server is configured to perform operations for implementing the file publishing method according to any of the above embodiments.
According to another aspect of the present invention, there is provided a publishing server comprising:
an issue server memory for storing instructions;
a publishing server processor configured to execute the instructions to cause the publishing server to perform operations to implement the file publishing method according to any of the above embodiments.
According to another aspect of the present invention, there is provided a file generating apparatus including:
the file generating module is used for generating a configuration release configuration file, wherein the configuration release configuration file comprises file names of files to be released;
and the file sending module is used for sending the configuration release configuration file to the release server so that the release server compares the configuration release configuration file with the published file, determines the file to be updated and externally releases the file to be updated.
In some embodiments of the present invention, the file generation apparatus is configured to execute operations for implementing the file publishing method according to any one of the above embodiments.
According to another aspect of the present invention, there is provided a file generating apparatus including:
a file generation device memory to store instructions;
a file generating device processor configured to execute the instructions to cause the file generating device to perform operations for implementing the file publishing method according to any of the above embodiments.
According to another aspect of the present invention, there is provided a file distribution system including the distribution server according to any one of the above embodiments, and the file generation apparatus according to any one of the above embodiments.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the file distribution method according to any one of the above embodiments.
The method and the device can determine the update file to be issued according to the configuration issuing configuration file, thereby saving system resources in the issuing process and improving the issuing speed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of some embodiments of a document publishing system of the present invention.
Fig. 2 is a schematic diagram of some embodiments of a file publishing method according to the invention.
Fig. 3 is a schematic diagram of another embodiment of a file publishing method according to the present invention.
Fig. 4 is a schematic diagram of some further embodiments of the document publishing method of the present invention.
Fig. 5 is a schematic diagram of some embodiments of a publishing server of the present invention.
Fig. 6 is a schematic diagram of another embodiment of a publishing server of the present invention.
Fig. 7 is a schematic diagram of still other embodiments of the document distribution method of the present invention.
FIG. 8 is a diagram of a file generation apparatus according to some embodiments of the present invention.
FIG. 9 is a schematic diagram of another embodiment of a file generation apparatus according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
The applicant found that: related art if a cross-version update requires multiple patches to be released, for example: if the client is 1.0 version, i need to upgrade to 3.0 version, and the prior art is that i need to release 2.0 version and 3.0 version on the release server to complete the upgrade, thereby occupying a large amount of system resources.
The related technology is based on the characteristics of configuration software, and when BUG occurs, the configuration software project engineering can not be built continuously. The developer is required to resolve the BUG as soon as possible and send it to the publishing server. In the related art, a third party may tamper with the published file in the publishing process, and all configuration files are packaged during publishing, so that resource waste is caused.
The application provides a file publishing method and system, which can solve at least one of the technical problems.
FIG. 1 is a schematic diagram of some embodiments of a document publishing system of the present invention. As shown in fig. 1, the file distribution system may include a file generation apparatus 1 and a distribution server 2, in which:
the file generating device 1 is used for generating a configuration release configuration file; and sending the configuration release configuration file to the release server 2, wherein the configuration release configuration file comprises file names of files to be released.
The publishing server 2 is used for receiving the configuration publishing configuration file generated by the file generating device 1; comparing the configuration release configuration file with the released file, and determining the file needing to be updated; the files that need to be updated are published out (e.g., to the client 3).
In some embodiments of the present invention, the publishing server 2 may also be configured to generate block volume data according to the file name that needs to be updated; and sending the block volume data to each user node of the block chain network so that the client 3 updates the application program according to the block volume data.
Based on the file publishing system provided by the embodiment of the invention, the updated file to be published can be determined according to the configuration publishing configuration file, so that the system resources in the publishing process are saved, and the publishing speed is increased.
Therefore, for the specific example that the client is 1.0 version and needs to be upgraded to 3.0 version, the above-mentioned embodiment of the present invention only needs to provide one version (3.0 version) and one configuration file to implement file release and version update, so that the above-mentioned embodiment of the present invention greatly saves system resources during the release process,
the embodiment of the invention utilizes a mechanism that the block chain can not be tampered, so that a third party can be prevented from tampering the update file.
In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
Fig. 2 is a schematic diagram of some embodiments of a file publishing method according to the invention. Preferably, this embodiment can be executed by the file distribution system of the present invention. The method comprises the following steps:
in step 21, the file generation apparatus 1 generates a configuration distribution configuration file.
In some embodiments of the invention, step 21 may comprise:
in step 211, the file generation apparatus traverses the entire publishing folder.
In step 212, the file generation apparatus encrypts the file name by using a first predetermined algorithm to generate a plurality of keys, and writes the generated keys into the configuration distribution configuration file.
In some embodiments of the present invention, the first predetermined algorithm may be a DES, MD5, or like encryption algorithm.
The key in the above embodiment of the present invention is used to prevent the configuration distribution configuration file from being illegally acquired in the process of being sent to the distribution server. The file generation device and the issuing server set corresponding algorithm uniformly, and the key is decrypted by the issuing server.
In some embodiments of the invention, the plurality of keys comprises keys generated based on a software version number; and respectively generating a key based on the character string of each file name, wherein each key corresponds to the character string of one file name.
In the above embodiments of the present invention, the software version number is mainly used to determine that the updated version is higher than the version of the published file, and the configuration file name is named by a key generated by the software version number.
In step 22, the file generation apparatus 1 sends the configuration distribution configuration file to the distribution server 2.
Step 23, the publishing server 2 compares the configuration publishing configuration file with the published file to determine the file name to be updated.
In some embodiments of the invention, step 23 may comprise:
in step 231, the publishing server 2 decrypts the configuration publishing configuration file by using a predetermined decryption algorithm, and obtains version information of the file to be published and each file name of the file to be published, where the predetermined decryption algorithm corresponds to the first predetermined algorithm.
In step 232, the publishing server 2 compares the published file to determine the file name that needs to be updated.
Step 24, the publishing server 2 generates block data according to the file name to be updated.
In some embodiments of the present invention, step 24 may comprise: the distribution server 2 encrypts the file name to be updated by using a predetermined encryption algorithm to generate block data.
In some embodiments of the invention, the predetermined encryption algorithm may be a hash algorithm.
In some embodiments of the present invention, step 24 may comprise: and carrying out hash operation on the file determined to be updated based on a hash algorithm to generate block data.
In the above embodiments of the present invention, the blockchain encrypts the information in one transaction block through a hash algorithm. According to the embodiment of the invention, through the calculated hash value, the block chain can uniquely and accurately identify one block.
Step 25, the publishing server 2 sends the block volume data to each user node in the block chain network pre-deployed on the publishing server.
In step 26, the distribution server 2 sends a file receiving request to the file generation apparatus, where the file receiving request includes a file name to be updated.
In step 27, the file generation apparatus 1 packages the files to be updated and transmits the packaged files to the distribution server 2.
In step 28, the publishing server 2 publishes the file to be updated to the client 3.
In step 29, the client 3 updates the application according to the block volume data.
Based on the file publishing system provided by the embodiment of the invention, the file generating device only sends the configuration publishing configuration file to the publishing server in advance, the publishing server determines the update file to be published according to the configuration publishing configuration file, and then the file generating device only needs to send the update file to be published to the publishing server, so that the transmission time and the transmission resources are saved; meanwhile, system resources in the issuing process of the issuing server are saved, and the issuing speed is improved.
In the above embodiment of the present invention, a plurality of keys are generated by traversing the names of the update files, and the keys are written in the configuration file. If the integrity verification passes, the name generation key of the configuration file is written into the block chain, so that the embodiment of the invention can prevent a third party from tampering the update file by using a mechanism that the block chain cannot be tampered.
In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
Fig. 3 is a schematic diagram of another embodiment of a file publishing method according to the present invention. Preferably, this embodiment can be executed by the file distribution system of the present invention. The method comprises the following steps:
in step 31, the file generating apparatus 1 generates a configuration distribution configuration file.
In some embodiments of the present invention, step 31 may comprise:
in step 311, the file generation means traverses the entire release folder.
In step 312, the file generation apparatus encrypts the file name by using a first predetermined algorithm, and writes the generated key into the configuration distribution configuration file.
In some embodiments of the present invention, the first predetermined algorithm may be a DES, MD5, or like encryption algorithm.
The key in the embodiment of the invention can prevent the configuration distribution configuration file from being illegally acquired in the process of being sent to the distribution server. The file generation device and the issuing server set corresponding algorithm uniformly, and the key is decrypted by the issuing server.
Step 32, the file generating device 1 sends the configuration distribution configuration file and the complete file to be distributed to the distribution server 2.
Step 33, the publishing server 2 compares the configuration publishing configuration file with the published file to determine the file name to be updated.
In some embodiments of the invention, step 23 may comprise:
in step 331, the publishing server 2 decrypts the configuration publishing configuration file by using a predetermined decryption algorithm, and obtains version information of the file to be published and each file name of the file to be published, where the predetermined decryption algorithm corresponds to the first predetermined algorithm.
In step 332, the publishing server 2 verifies the configuration form, and confirms the integrity of the file to be published according to the version information of the file to be published and the file names of the file to be published, so as to prevent a third party from tampering the updated file.
Step 333, the publishing server 2 compares the published file and determines the file name to be updated.
In step 34, the distribution server 2 generates block data according to the file name to be updated.
In some embodiments of the present invention, step 34 may comprise: the distribution server 2 encrypts the file name to be updated by using a predetermined encryption algorithm to generate block data.
In some embodiments of the invention, the predetermined encryption algorithm may be a hash algorithm.
In some embodiments of the present invention, step 34 may comprise: and carrying out hash operation on the file determined to be updated based on a hash algorithm to generate block data.
In the above embodiments of the present invention, the blockchain encrypts the information in one transaction block through a hash algorithm. According to the embodiment of the invention, through the calculated hash value, the block chain can uniquely and accurately identify one block.
Step 35, the publishing server 2 sends the block volume data to each user node in the block chain network pre-deployed on the publishing server.
In step 36, the publishing server 2 selects a file to be updated from the complete files to be published, and publishes the file to be updated to the client 3.
In step 37, the client 3 updates the application according to the block volume data.
Based on the file publishing system provided by the embodiment of the invention, the updated file to be published can be determined according to the configuration publishing configuration file, so that the system resources in the publishing process of the publishing server are saved, and the publishing speed is increased.
The file generation device of the embodiment of the invention can send the configuration release configuration file and the complete file to be released to the release server at one time, thereby avoiding multiple interactions between the file generation device and the release server and further improving the release speed.
The embodiment of the invention utilizes a mechanism that the block chain can not be tampered, so that a third party can be prevented from tampering the update file.
In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
The above embodiment of the present invention can verify the integrity of the file through the configuration file before generating the block data, for example, the above embodiment of the present invention determines whether the file is missing or not, and determines whether the specific contents of the file are consistent or not under the condition of being attacked by a hacker, thereby ensuring the correctness of the issuing program.
Fig. 4 is a schematic diagram of some further embodiments of the document publishing method of the present invention. Preferably, this embodiment can be performed by the distribution server of the present invention. The method comprises the following steps:
in step 41, the publishing server 2 receives the configuration publishing configuration file generated by the file generating device 1, where the configuration publishing configuration file includes each file name of the file to be published.
In some embodiments of the present invention, after step 41, the file publishing method may further include: the publishing server 2 decrypts the configuration publishing configuration file by adopting a preset decryption algorithm to obtain version information of the file to be published and each file name of the file to be published, wherein the file generating device 1 traverses the whole publishing folder, encrypts the file name by adopting an encryption algorithm corresponding to the preset decryption algorithm, and writes the generated key into the configuration publishing configuration file.
Step 42, the publishing server compares the configuration publishing configuration file with the published file to determine the file to be updated.
In some embodiments of the present invention, step 42 may comprise:
in step 421, the publishing server receives the whole file to be published.
In step 422, the publishing server confirms the integrity of the file to be published according to the file to be published and the file names of the file to be published.
In step 423, the publishing server compares the configuration publishing configuration file, the file to be published and the published file to determine the file to be updated.
The file generation device of the embodiment of the invention can send the configuration release configuration file and the complete file to be released to the release server at one time, thereby avoiding multiple interactions between the file generation device and the release server and further improving the release speed.
In other embodiments of the present invention, step 42 may comprise:
step 42a, the publishing server compares the configuration publishing configuration file with the published file to determine the file name to be updated.
And step 42b, the publishing server sends a file receiving request to the file generating device, wherein the file receiving request comprises the name of the file to be updated, so that the file generating device packages the file to be updated and sends the file to the publishing server.
In step 42c, the publishing server receives the file to be updated.
The file generation device of the embodiment of the invention only sends the configuration release configuration file to the release server in advance, the release server determines the update file to be released according to the configuration release configuration file, and then the file generation device only needs to send the update file to be released to the release server, so that the transmission time and the transmission resource are saved; meanwhile, system resources in the issuing process of the issuing server are saved, and the issuing speed is improved.
In some embodiments of the present invention, after step 42, the method may further comprise: the publishing server generates block data according to the file name required to be updated; and the issuing server sends the block volume data to each user node of the block chain network so that the client updates the application program according to the block volume data.
In some embodiments of the present invention, after step 42, the method may further comprise: the issuing server 2 encrypts the file name to be updated by adopting a preset encryption algorithm to generate block data; and the issuing server sends the block volume data to each user node of the block chain network so that the client updates the application program according to the block volume data.
The publishing server publishes the file to be updated externally (e.g., to the client), step 43.
Based on the file publishing method provided by the embodiment of the invention, the updated file to be published can be determined according to the configuration publishing configuration file, so that system resources in the publishing process are saved, and the publishing speed is increased. The embodiment of the invention utilizes a mechanism that the block chain can not be tampered, so that a third party can be prevented from tampering the update file. In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
Fig. 5 is a schematic diagram of some embodiments of a publishing server of the present invention. As shown in fig. 5, the publishing server (e.g. the publishing server 2 in the embodiment of fig. 1) of the present invention may include a file receiving module 21, an update determining module 22, and a file publishing module 23, where:
the file receiving module 21 is configured to receive a configuration distribution configuration file by the distribution server, where the configuration distribution configuration file includes file names of files to be distributed.
And an update determining module 22, configured to compare the configuration release configuration file with the released file, and determine a file that needs to be updated.
In some embodiments of the present invention, the update determining module 22 may be configured to decrypt the configuration distribution configuration file by using a predetermined decryption algorithm, and obtain version information of the file to be distributed and file names of the file to be distributed; confirming the integrity of the file to be released according to the version information of the file to be released and the file names of the file to be released; and comparing the published files, and determining the file name needing to be updated.
And the file publishing module 23 is used for publishing the files needing to be updated outwards.
In some embodiments of the present invention, the file publishing module 23 may be configured to send the chunk volume data to each user node of the blockchain network, so that the client updates the application according to the chunk volume data.
In some embodiments of the present invention, the file publishing module 23 may be configured to encrypt the file name to be updated by using a predetermined encryption algorithm, so as to generate the block volume data.
In some embodiments of the present invention, the publishing server 2 is configured to perform operations for implementing the file publishing method according to any of the embodiments (for example, the embodiment of fig. 4) described above.
Based on the publishing server provided by the embodiment of the invention, the update file to be published can be determined according to the configuration publishing configuration file, so that the system resources in the publishing process are saved, and the publishing speed is increased. The embodiment of the invention utilizes a mechanism that the block chain can not be tampered, so that a third party can be prevented from tampering the update file. In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
In some embodiments of the present invention, the file receiving module 21 may be further configured to receive the configuration distribution configuration file and the complete file to be distributed, which are generated by the file generating apparatus 1. The file publishing module 23 may also be configured to select a file to be updated from the complete files to be published, and publish the file to be updated to the client, so that the client updates the application program according to the block volume data.
The file generation device of the embodiment of the invention sends the configuration release configuration file and the complete file to be released to the release server at one time, thereby avoiding multiple interactions between the file generation device and the release server and further improving the release speed.
In some embodiments of the present invention, as shown in fig. 5, the publishing server may further include a request sending module 24, where:
the request sending module 24 is configured to send a file receiving request to the file generating apparatus 1, where the file receiving request includes a name of a file to be updated, so that the file generating apparatus 1 packages and sends the file to be updated to the publishing server 2.
The file publishing module 23 may also be configured to publish a file that needs to be updated to the client, so that the client updates the application according to the tile volume data.
The file generation device of the embodiment of the invention only sends the configuration release configuration file to the release server in advance, the release server determines the update file to be released according to the configuration release configuration file, and then the file generation device only needs to send the update file to be released to the release server, so that the transmission time and the transmission resource are saved; meanwhile, system resources in the issuing process of the issuing server are saved, and the issuing speed is improved.
Fig. 6 is a schematic diagram of another embodiment of a publishing server of the present invention. As shown in fig. 6, a publishing server of the present invention (e.g., publishing server 2 of the embodiment of fig. 1) may publish server memory 28 and a publishing server processor 29, wherein:
issue server memory 28 for storing instructions.
A publishing server processor 29 configured to execute the instructions, so that the publishing server 2 performs operations to implement the file publishing method according to any of the embodiments (for example, the embodiment of fig. 4) described above.
Based on the publishing server provided by the embodiment of the invention, the update file to be published can be determined according to the configuration publishing configuration file, so that the system resources in the publishing process are saved, and the publishing speed is increased. The embodiment of the invention utilizes a mechanism that the block chain can not be tampered, so that a third party can be prevented from tampering the update file. In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
Fig. 7 is a schematic diagram of still other embodiments of the document distribution method of the present invention. Preferably, this embodiment can be executed by the file generation apparatus of the present invention. The method comprises the following steps:
step 71, the file generating device 1 generates a configuration distribution file, wherein the configuration distribution file includes file names of files to be distributed.
In some embodiments of the present invention, step 71 may comprise:
in step 711, the file generating apparatus 1 traverses the entire distribution folder.
In step 712, the file generation apparatus 1 encrypts the file name by using a first predetermined encryption algorithm, and writes the generated key into the configuration distribution configuration file.
Step 72, the file generating device 1 sends the configuration release configuration file to the release server 2, so that the release server 2 compares the configuration release configuration file with the issued file, determines the file name to be updated, generates block data according to the file name to be updated, and sends the block data to each user node of the block chain network, so that the client updates the application program according to the block data.
Based on the file publishing method provided by the embodiment of the invention, the configuration publishing configuration file can be generated and sent to the publishing server, so that the publishing server can determine the updated file to be published according to the configuration publishing configuration file, thereby saving system resources in the publishing process and improving the publishing speed. The embodiment of the invention utilizes a mechanism that the block chain can not be tampered, so that a third party can be prevented from tampering the update file. In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
In some embodiments of the present invention, after step 72, the file publishing method may further comprise: the file generation device 1 receives a file receiving request sent by the release server 2, wherein the file receiving request comprises a file name needing to be updated; the file generation apparatus 1 packages and transmits the file requiring update to the distribution server 2, so that the distribution server 2 distributes the file requiring update to the client.
The file generation device of the embodiment of the invention only sends the configuration release configuration file to the release server in advance, the release server determines the update file to be released according to the configuration release configuration file, and then the file generation device only needs to send the update file to be released to the release server, so that the transmission time and the transmission resource are saved; meanwhile, system resources in the issuing process of the issuing server are saved, and the issuing speed is improved.
In some embodiments of the present invention, step 72 may comprise: the file generation device 1 sends the configuration release configuration file and the complete file to be released to the release server 2, so that the release server 2 compares the configuration release configuration file with the released file, determines the name of the file to be updated, generates block data according to the name of the file to be updated, sends the block data to each user node of the block chain network, and releases the file to be updated to the client, so that the client updates the application program according to the block data.
The file generation device of the embodiment of the invention can send the configuration release configuration file and the complete file to be released to the release server at one time, thereby avoiding multiple interactions between the file generation device and the release server and further improving the release speed.
FIG. 8 is a diagram of a file generation apparatus according to some embodiments of the present invention. As shown in fig. 8, the file generating apparatus (for example, the file generating apparatus 1 in the embodiment of fig. 1) of the present invention may include a file generating module 11 and a file sending module 12, where:
the file generating module 11 is configured to generate a configuration distribution configuration file.
The file sending module 12 is configured to send the configuration release configuration file to the release server 2, so that the release server 2 compares the configuration release configuration file with the published file, determines a file name that needs to be updated, generates block data according to the file name that needs to be updated, and sends the block data to each user node of the block link network, so that the client updates the application program according to the block data.
In some embodiments of the present invention, the file generation apparatus 1 is configured to execute operations for implementing the file publishing method according to any one of the above-described embodiments (for example, the embodiment of fig. 7).
FIG. 9 is a schematic diagram of another embodiment of a file generation apparatus according to the present invention. As shown in fig. 9, the file generating apparatus (e.g. the file generating apparatus 1 of the embodiment of fig. 1) of the present invention may include a file generating apparatus memory 18 and a file generating apparatus processor 19, wherein:
a file generating means memory 18 for storing instructions.
A file generating apparatus processor 19, configured to execute the instructions, so that the file generating apparatus 1 performs operations to implement the file publishing method according to any one of the embodiments (for example, the embodiment of fig. 7) described above.
Based on the file generation device provided by the embodiment of the invention, the configuration release configuration file can be generated and sent to the release server, so that the release server can determine the update file to be released according to the configuration release configuration file, thereby saving system resources in the release process and improving the release speed. The embodiment of the invention utilizes a mechanism that the block chain can not be tampered, so that a third party can be prevented from tampering the update file. In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, which when executed by a processor, implement the file publishing method according to any one of the above embodiments (e.g., any one of fig. 2-4 and 7).
Based on the computer-readable storage medium provided by the above embodiment of the present invention, the update file to be published can be determined according to the configuration publishing configuration file, so that system resources in the publishing process are saved, and the publishing speed is increased. The embodiment of the invention utilizes a mechanism that the block chain can not be tampered, so that a third party can be prevented from tampering the update file. In the above embodiment of the present invention, each time the update file is issued, a new block is generated on the block chain, and the issue record can be tracked through the block chain.
The file generation apparatus and publication server described above may be implemented as a general purpose processor, a Programmable Logic Controller (PLC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof, for performing the functions described herein.
Thus far, the present invention has been described in detail. Some details well known in the art have not been described in order to avoid obscuring the concepts of the present invention. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (17)

1. A method for publishing a file, comprising:
the method comprises the steps that a publishing server receives a configuration publishing configuration file and a complete file to be published sent by a file generating device, wherein the configuration publishing configuration file comprises file names of the file to be published;
the publishing server confirms the integrity of the file to be published according to the file to be published and each file name of the file to be published;
the publishing server compares the configuration publishing configuration file with the published file and determines the file needing to be updated;
the publishing server generates block data according to the file name to be updated under the condition that the integrity verification is passed;
the release server sends the block volume data to each user node of the block chain network;
and the publishing server selects the files needing to be updated from the complete files to be published and publishes the files needing to be updated to the client so that the client can update the application program according to the block volume data.
2. The method of claim 1, wherein the publishing server compares the configuration publishing configuration file with the published file, and determining the file to be updated comprises:
the publishing server receives a file to be published;
and the publishing server compares the configuration publishing configuration file, the file to be published and the published file to determine the file needing to be updated.
3. The method of claim 1, wherein the publishing server compares the configuration publishing configuration file with the published file, and determining the file to be updated comprises:
the publishing server compares the configuration publishing configuration file with the published file and determines the file name to be updated;
the publishing server receives the file that needs to be updated.
4. The file publishing method of claim 3, wherein the publishing server receiving the file needing to be updated comprises:
the publishing server sends a file receiving request to the file generating device, wherein the file receiving request comprises the file name needing to be updated, so that the file generating device packages the file needing to be updated and sends the file needing to be updated to the publishing server.
5. The file publishing method according to any one of claims 1-4, further comprising:
the publishing server decrypts the configuration publishing configuration file by adopting a preset decryption algorithm to obtain the version information of the file to be published and the file names of the file to be published, wherein the file generating device traverses the whole publishing folder, encrypts the file names of the file to be published by adopting an encryption algorithm corresponding to the preset decryption algorithm, and writes the generated key into the configuration publishing configuration file.
6. The file publishing method according to claim 5, wherein the publishing server generating the block volume data according to the file name to be updated comprises:
and the issuing server encrypts the file name needing to be updated by adopting a preset encryption algorithm to generate block data.
7. A method for publishing a file, comprising:
the file generating device generates a configuration release configuration file, wherein the configuration release configuration file comprises file names of files to be released;
the file generation device sends the configuration release configuration file and the complete file to be released to the release server, so that the release server compares the configuration release configuration file with the released file, determines the file to be updated, confirms the integrity of the file to be released according to the file names of the file to be released and the file to be released, generates block data according to the file name to be updated under the condition that the integrity verification is passed, sends the block data to each user node of the block chain network, selects the file to be updated from the complete file to be released, and releases the file to be updated to the client, so that the client updates the application program according to the block data.
8. The method according to claim 7, wherein the generating of the configuration distribution configuration file by the file generating device comprises:
the file generation device traverses the whole release folder;
the file generation device encrypts each file name of the file to be issued by adopting a first preset encryption algorithm, and writes the generated secret key into the configuration issuing configuration file.
9. The file distribution method according to claim 7 or 8, further comprising:
a file generation device receives a file receiving request sent by a release server, wherein the file receiving request comprises a file name needing to be updated;
the file generation device packages the files needing to be updated and sends the files to the distribution server, so that the distribution server distributes the files needing to be updated outwards.
10. A publishing server, comprising:
the file receiving module is used for receiving the configuration release configuration file and the complete file to be released sent by the file generating device by the release server, wherein the configuration release configuration file comprises file names of the file to be released;
the updating determining module is used for determining the integrity of the file to be issued according to the file to be issued and the file names of the file to be issued; comparing the configuration release configuration file with the released file, and determining the file needing to be updated; under the condition that the integrity verification is passed, block data is generated according to the file name needing to be updated;
the file release module is used for sending the block volume data to each user node of the block chain network; and selecting files needing to be updated from the complete files to be published, and publishing the files needing to be updated to the client so that the client can update the application program according to the block data.
11. The publishing server of claim 10, wherein the publishing server is configured to perform operations to implement the file publishing method of any of claims 2-6.
12. A publishing server, comprising:
an issue server memory for storing instructions;
a publishing server processor to execute the instructions to cause the publishing server to perform operations to implement the file publishing method of any of claims 1-6.
13. A file generation apparatus, comprising:
the file generating module is used for generating a configuration release configuration file, wherein the configuration release configuration file comprises file names of files to be released;
the file sending module is used for sending the configuration release configuration file and the complete file to be released to the release server so that the release server can compare the configuration release configuration file with the released file, determine the file to be updated, confirm the integrity of the file to be released according to the file names of the file to be released and the file to be released, generate block data according to the file name to be updated under the condition that the integrity verification is passed, send the block data to each user node of the block chain network, select the file to be updated from the complete file to be released, and release the file to be updated to the client, so that the client updates the application program according to the block data.
14. The file generation apparatus according to claim 13, wherein the file generation apparatus is configured to perform an operation to implement the file publishing method according to any one of claims 8 to 9.
15. A file generation apparatus, comprising:
a file generation device memory to store instructions;
a file generating apparatus processor for executing the instructions to cause the file generating apparatus to perform operations to implement the file publishing method as claimed in any one of claims 7 to 9.
16. A file publication system comprising a publication server according to any one of claims 10 to 12 and a file generation apparatus according to any one of claims 13 to 15.
17. A computer-readable storage medium storing computer instructions which, when executed by a processor, implement the file distribution method of any one of claims 1-9.
CN201811266319.3A 2018-10-29 2018-10-29 File distribution method and system, distribution server and file generation device Active CN109408486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811266319.3A CN109408486B (en) 2018-10-29 2018-10-29 File distribution method and system, distribution server and file generation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811266319.3A CN109408486B (en) 2018-10-29 2018-10-29 File distribution method and system, distribution server and file generation device

Publications (2)

Publication Number Publication Date
CN109408486A CN109408486A (en) 2019-03-01
CN109408486B true CN109408486B (en) 2020-10-30

Family

ID=65470387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811266319.3A Active CN109408486B (en) 2018-10-29 2018-10-29 File distribution method and system, distribution server and file generation device

Country Status (1)

Country Link
CN (1) CN109408486B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110011978B (en) * 2019-03-08 2021-02-12 创新先进技术有限公司 Method, system, device and computer equipment for modifying block chain network configuration
KR102365945B1 (en) * 2019-12-12 2022-02-22 (주)포뎁스 Electronic terminal device capable of update processing for application based on blockchain and operating method thereof
CN113110335B (en) * 2021-04-19 2022-03-25 西安热工研究院有限公司 Multi-node picture file synchronization method for DCS (distributed control system)
CN113312076A (en) * 2021-06-25 2021-08-27 瀚云科技有限公司 Configuration information upgrading method, system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036956A (en) * 2012-11-30 2013-04-10 航天恒星科技有限公司 Filing system and implement method of distributed configured massive data
CN108509192A (en) * 2018-03-28 2018-09-07 南京智格电力科技有限公司 A kind of Web display methods based on configuration software SVG issuing services
CN108710500A (en) * 2018-05-23 2018-10-26 北京五八信息技术有限公司 Resource issuing method, update method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997896B (en) * 2009-08-19 2013-06-05 中兴通讯股份有限公司 Method and system for issuing document
CN103812894B (en) * 2012-11-12 2017-09-01 中国石油天然气集团公司 The management method of web file publishings version in a kind of real-time monitoring system
US20150347447A1 (en) * 2014-05-27 2015-12-03 Acer Cloud Technology Inc. Method and architecture for synchronizing files
CN104820602A (en) * 2015-05-18 2015-08-05 北京瑞星信息技术有限公司 Method, device and system for publishing software package
CN104991791B (en) * 2015-06-09 2018-03-02 北京奇虎科技有限公司 The increment upgrading dissemination method and device of a kind of file
CN104991790B (en) * 2015-06-09 2018-05-25 北京奇虎科技有限公司 The upgrading dissemination method and device of a kind of file
CN105137955B (en) * 2015-10-10 2017-10-10 浙江中控技术股份有限公司 A kind of access method and system of many control subsystem positions configuration info
CN105740016B (en) * 2016-01-28 2020-08-25 腾讯科技(深圳)有限公司 Increment issuing method and device, upgrading method and device of application program
CN105760190A (en) * 2016-02-02 2016-07-13 华自科技股份有限公司 Configuration-software releasing method and system
CN108228810B (en) * 2017-12-29 2020-12-29 广州京墨医疗科技有限公司 Form linkage configuration method and system and form updating method and system
CN108702287B (en) * 2018-04-16 2022-04-01 达闼机器人有限公司 Information issuing and acquiring method and device based on block chain and block chain link point

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036956A (en) * 2012-11-30 2013-04-10 航天恒星科技有限公司 Filing system and implement method of distributed configured massive data
CN108509192A (en) * 2018-03-28 2018-09-07 南京智格电力科技有限公司 A kind of Web display methods based on configuration software SVG issuing services
CN108710500A (en) * 2018-05-23 2018-10-26 北京五八信息技术有限公司 Resource issuing method, update method and device

Also Published As

Publication number Publication date
CN109408486A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
US11824847B2 (en) Device programming with system generation
CN105260668B (en) A kind of file encrypting method and electronic equipment
CN109408486B (en) File distribution method and system, distribution server and file generation device
CN105706048B (en) It is authenticated using the media client end device of hardware root of trust
US10523645B2 (en) Method and system for protecting user data using individualized keys to enable secure compartmentalized data backup/restore
US20140376718A1 (en) Downloading of data to secure devices
CN109862099B (en) Upgrade checking method, device, terminal and system
CN111143869A (en) Application package processing method and device, electronic equipment and storage medium
US11132449B2 (en) Incorporating at-rest data encryption into a cloud-based storage architecture
EP3772008A1 (en) Device programming with system generation
CN114041134A (en) System and method for block chain based secure storage
CN114282193A (en) Application authorization method, device, equipment and storage medium
CN111324912B (en) File checking method, system and computer readable storage medium
CN115795513A (en) File encryption method, file decryption method, file encryption device, file decryption device and equipment
CN111670443B (en) Integrated circuit personalization
WO2022151888A1 (en) Data sharing method and apparatus
US11244077B2 (en) Securing data integrity for an application
CN110414269B (en) Processing method, related device, storage medium and system of application installation package
CN115589316B (en) Data encryption transmission method and device, electronic equipment and storage medium
CN116800535A (en) Method and device for avoiding secret between multiple servers
CN111130788B (en) Data processing method and system, data reading method and iSCSI server
CN107295078A (en) A kind of patch distribution tracking and control system and method
CN109657481B (en) Data management method and device
CN111124447A (en) Platform management method, system, equipment and computer readable storage medium
CN112612499A (en) Application program upgrading method and device, electronic equipment and storage medium

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