Example #1
0
        public async Task ApplyUpdUpdate(string extractDirPath)
        {
            var updData = await updateClient.DownloadUpdateFile();

            using var ms = new MemoryStream(updData.Length);
            ms.Write(updData, 0, updData.Length);
            ms.Seek(0, SeekOrigin.Begin);
            using var zip = new UpdateLib.Archive.Zip(ms, ConstantValues.AppDirectoryPath + "/");
            zip.Extract();
        }