public static void ExportSDKToPackage() { if (File.Exists(PathConfig.SDKPathInPackage)) { File.Delete(PathConfig.SDKPathInPackage); } CompressHelper.CompressDirectory(PathConfig.SDKBackupPath, PathConfig.SDKPathInPackage); Debug.logger.Log("Compress To " + PathConfig.SDKBackupPath); }
public static void CompressMe() { System.IO.Directory.CreateDirectory(Application.dataPath + "/../TheLauncher/"); System.IO.Directory.CreateDirectory(Application.dataPath + "/../TheLauncher/COMPRESSED/"); System.IO.Directory.CreateDirectory(Application.dataPath + "/../TheLauncher/version/"); EditorLogGenerator.GenerateVersionFile(LastVersion); EditorLogGenerator.GenerateFileList(pathToCompress); currentFolder = Application.dataPath; CompressHelper.CompressDirectory(pathToCompress, currentFolder + "/../TheLauncher/COMPRESSED/upload_" + LastVersion + ".thln"); //StaticCoroutine.Start(CompressHelper.CompressRoutine(pathToCompress, currentFolder + "/../TheLauncher/COMPRESSED/upload_" + LastVersion + ".thln")); EditorLogGenerator.GenerateLog("Compression Thread Launched"); pathToUpload = Application.dataPath + "/../TheLauncher/COMPRESSED/upload_" + LastVersion + ".thln"; }
public static void CompressMe() { System.IO.Directory.CreateDirectory(Application.dataPath + "/../TheLauncher/"); System.IO.Directory.CreateDirectory(Application.dataPath + "/../TheLauncher/COMPRESSED/"); System.IO.Directory.CreateDirectory(Application.dataPath + "/../TheLauncher/version/"); EditorLogGenerator.GenerateVersionFile(LastVersion); EditorLogGenerator.GenerateFileList(pathToCompress); currentFolder = Application.dataPath; t1_ = new Thread(() => CompressHelper.CompressDirectory(pathToCompress, currentFolder + "/../TheLauncher/COMPRESSED/upload_" + LastVersion + ".flamacore")); if (!t1_.IsAlive) { t1_.Start(); } EditorLogGenerator.GenerateLog("Compression Thread Launched"); pathToUpload = Application.dataPath + "/../TheLauncher/COMPRESSED/upload_" + LastVersion + ".flamacore"; }