Parameter provides resource number (resource version number), channel number, target directory (storage new resource bundle and variance package)
Preprocessing: Obtain the resources of the corresponding channel from Versionserver, save to the directory [channel-channel number-resource version number] marked as new, traverse the file in the new directory and calculate the file check code (MD5, etc.) marked as Newtag_map, Generate index file to save the combination of file and check code, compress new resource +index file and save to target directory.
Variance package Generation: Starts with version number 1 until the new version number-1. Mark as directory Oldver, traverse the files in the Oldver directory and calculate the file check mark as Oldver_map, compare two maps, get new files, overwrite files and list of files that need to be deleted. Generate the index file and copy the new file, overwriting the file to the diff directory, compress the file and name it [Newver-oldver] to the target directory.
End: Sends the file to Versioninfoserver when the task is completed.
"Original" I understand the Automatic Update-overview
"Original" I understand Automatic Updates-environment building and protocol development
"Original" I understand the Automatic update-extranet Web server configuration
"Original" I understand the Automatic Update-app release and background publishing
"Original" I understand the Automatic Update-resource packaging process
"Original" I understand the Automatic Update-client update process
"Original" I understand the automatic update-Knowledge point explanation
The server in this article uses the Linode,linode is what does not need to introduce too much.
Interested children's shoes can be registered via https://www.linode.com/?r=000161937771838e320f2bda5fef0dbad54ad86c server,
The number after r is my referral code, if you use the above recommendation code I recommend, and keep 3 months is an online account, then I will be three months after the credit of 20 dollars,
This means you can use the one-month minimum $19.95 Linode VPS.
Referrals reward you are refer people to Linode.
If someone signs up using your referral code,
You'll receive a credits of $20.00, so long as the person referred remains a active customer for.
"Original" I understand the Automatic Update-resource packaging process