Beispiel #1
0
 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";
 }
Beispiel #2
0
 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";
 }