Skip to content

Commit 2f30fef

Browse files
committed
[src] Temporarly comment code to fix compilation if sharpZipLib package is not installed
1 parent 9157786 commit 2f30fef

4 files changed

Lines changed: 28 additions & 3 deletions

File tree

Scripts/Utils/GenerateZIP.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using UnityEditor;
22
using UnityEngine;
33

4+
#if UNITY_ANDROID
45
#if UNITY_EDITOR
56
public class GenerateZIP
67
{
@@ -13,4 +14,5 @@ static void BuildZIP()
1314
Utility_SharpZipCommands.CreateTarGZ_FromDirectory(fileToCreate, dataDirectory);
1415
}
1516
}
16-
#endif
17+
#endif
18+
#endif

Scripts/Utils/GenerateZIP.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Utils/Utility_SharpZipCommands.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using System.IO;
2+
#if UNITY_ANDROID
23
using Unity.SharpZipLib.GZip;
34
using Unity.SharpZipLib.Tar;
4-
55
public class Utility_SharpZipCommands
66
{
7-
87
//// Calling example
98
//CreateTarGZ(@"c:\temp\gzip-test.tar.gz", @"c:\data");
9+
// Package to be downloaded using the package manager: com.unity.sharp-zip-lib
1010

1111
//USE THIS:
1212
public static void CreateTarGZ_FromDirectory(string tgzFilename, string sourceDirectory)
@@ -69,3 +69,4 @@ public static void ExtractTGZ(string gzArchiveName, string destFolder)
6969
}
7070

7171
} // Calling example
72+
#endif

Scripts/Utils/Utility_SharpZipCommands.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)