Пример #1
0
        private static void deleteExported(X509Certificate2 cert)
        {
            var subject  = cert.Subject.CleanSubject();
            var certPath = Path.Combine(dataPath, $"{subject}.crt");

            FileExtension.DeleteIfExists(certPath);
        }
Пример #2
0
        private static void makeLinuxZip(String currentVersion, String updatesPath)
        {
            var originFiles = Path.Combine(MainDir, "bin", "Debug", "Linux");

            var msi = Path.Combine(originFiles, "windows.msi");

            File.Delete(msi);
            var exe = Path.Combine(originFiles, "setup.exe");

            File.Delete(exe);

            var zipDestination = Path.Combine(updatesPath, $"bifrost-installer-{currentVersion}.zip");

            FileExtension.DeleteIfExists(zipDestination);
            ZipFile.CreateFromDirectory(originFiles, zipDestination, CompressionLevel.Optimal, false);
        }