|
|
|
@ -131,18 +131,19 @@ internal static class Program
|
|
|
|
string androidPath = $"{currentDir}/{Path.GetFileNameWithoutExtension(modZipPath)}_ANDROID.apk";
|
|
|
|
string androidPath = $"{currentDir}/{Path.GetFileNameWithoutExtension(modZipPath)}_ANDROID.apk";
|
|
|
|
string macPath = $"{currentDir}/{Path.GetFileNameWithoutExtension(modZipPath)}_MACOS.zip";
|
|
|
|
string macPath = $"{currentDir}/{Path.GetFileNameWithoutExtension(modZipPath)}_MACOS.zip";
|
|
|
|
|
|
|
|
|
|
|
|
if (File.Exists(linuxPath))
|
|
|
|
|
|
|
|
File.Delete(linuxPath);
|
|
|
|
|
|
|
|
if (File.Exists(androidPath))
|
|
|
|
|
|
|
|
File.Delete(androidPath);
|
|
|
|
|
|
|
|
if (File.Exists(macPath))
|
|
|
|
|
|
|
|
File.Delete(macPath);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (linuxSelected)
|
|
|
|
if (linuxSelected)
|
|
|
|
PortHelper.PortWindowsToLinux(modZipPath,linuxPath);
|
|
|
|
{
|
|
|
|
|
|
|
|
if (File.Exists(linuxPath))
|
|
|
|
|
|
|
|
File.Delete(linuxPath);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PortHelper.PortWindowsToLinux(modZipPath, linuxPath);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (androidSelected)
|
|
|
|
if (androidSelected)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (File.Exists(androidPath))
|
|
|
|
|
|
|
|
File.Delete(androidPath);
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: ask for modname
|
|
|
|
// TODO: ask for modname
|
|
|
|
bool? internetSelected = null;
|
|
|
|
bool? internetSelected = null;
|
|
|
|
do
|
|
|
|
do
|
|
|
|
@ -163,6 +164,9 @@ internal static class Program
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (macSelected)
|
|
|
|
if (macSelected)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (File.Exists(macPath))
|
|
|
|
|
|
|
|
File.Delete(macPath);
|
|
|
|
|
|
|
|
|
|
|
|
Console.WriteLine("Mac requires a name! Please enter one (no special characters!):");
|
|
|
|
Console.WriteLine("Mac requires a name! Please enter one (no special characters!):");
|
|
|
|
string modName = Console.ReadLine();
|
|
|
|
string modName = Console.ReadLine();
|
|
|
|
PortHelper.PortWindowsToMac(modZipPath, macPath, modName);
|
|
|
|
PortHelper.PortWindowsToMac(modZipPath, macPath, modName);
|
|
|
|
|