コード例 #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
ファイル: Compress.cs プロジェクト: JorgeVelez/cloudtest
 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";
 }