示例#1
0
 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);
 }
示例#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;
     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";
 }
示例#3
0
文件: Compress.cs 项目: Anykan/Battle
 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";
 }