Esempio n. 1
0
        public void TestCase2()
        {
            //
            //string path = @"";
            string path = @"/Users/rz/Projects/libvlc.net-git/libvlcnet/3rd-party/libvlc/libvlc-1.1.7-macosx.zip";
            //
            string hash = VlcDeployment.GetFileHash(path, VlcDeployment.GetDefaultHashAlgorithm());

            Console.WriteLine(hash);
        }
Esempio n. 2
0
        public void TestCase()
        {
            Debug.WriteLine("");
            //
            //string path = @"C:\all\work\libvlc.net-git\libvlcnet\3rd-party\temporary";
            string path = @"/Users/rz/Projects/libvlc.net/libvlcnet-git/3rd-party/temporary";
            //
            Dictionary <string, string> hashes = VlcDeployment.GetDirectoryStructureHashes(path, VlcDeployment.GetDefaultHashAlgorithm());
            string code = VlcDeployment.GetCSharpHashDictionaryConstructor("dictionary", hashes);

            Debug.WriteLine(code);
            //
            //string pathZip = Path.Combine(path, "../libvlc-1.1.9-win32.zip");
            string pathZip = Path.Combine(path, "../libvlc-1.1.9-macosx.zip");

            VlcDeployment.CreateDeploymentPackage(path, pathZip);
            //
            string hash = VlcDeployment.GetFileHash(pathZip, VlcDeployment.GetDefaultHashAlgorithm());

            Debug.WriteLine(hash);
        }