主权项 |
1. A method for updating software, comprising:
unpacking, by a device with one or more processors, a new version installation package of the software to get a new version unpacked folder having at least one new version unpacked file; obtaining, by the device, header file information of the at least one new version unpacked file in the new version unpacked folder, and converting a format of the header file information of the at least one new version unpacked file and getting a new version convert folder, wherein the header file information comprises a file length, a file name length, a calibration value, a file name and data content in a second preset format; extracting, by the device, the file length, the file name length, the calibration value, the file name and the data content from the header file information; and converting, by the device, the file length, the file name length, the calibration value, the file name and that data content that are extracted from the second preset format to a first preset format; packing, by the device, the new version convert folder to a new version archive package and obtaining at least one historical version archive package; according to the new version archive package and the at least one historical version archive package, generating and obtaining, by the device, at least one differential file; and releasing, by the device, the at least one differential file wherein the at least one differential file that is released is selected by a client that has memory and at least one processor to download and form a second new version installation package according to the at least one differential file that is downloaded. |