iOS 打包修复无法生成luabytes文件的问题
parent
ab6be0a9e2
commit
14645cb184
|
@ -10,7 +10,6 @@ using System.IO;
|
||||||
using LuaInterface;
|
using LuaInterface;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Umeng;
|
|
||||||
|
|
||||||
namespace SDK
|
namespace SDK
|
||||||
{
|
{
|
||||||
|
|
|
@ -230,13 +230,13 @@ namespace ResUpdate
|
||||||
|
|
||||||
#if !UNITY_EDITOR
|
#if !UNITY_EDITOR
|
||||||
#if UNITY_IPHONE
|
#if UNITY_IPHONE
|
||||||
[DllImport("__Internal")]
|
//[DllImport("__Internal")]
|
||||||
public static extern long getFreeDiskSpace();
|
//public static extern long getFreeDiskSpace();
|
||||||
|
|
||||||
public static int GetFreeSpace()
|
//public static int GetFreeSpace()
|
||||||
{
|
//{
|
||||||
return (int)getFreeDiskSpace();
|
// return (int)getFreeDiskSpace();
|
||||||
}
|
//}
|
||||||
#elif UNITY_ANDROID
|
#elif UNITY_ANDROID
|
||||||
public static int GetFreeSpace()
|
public static int GetFreeSpace()
|
||||||
{
|
{
|
||||||
|
|
|
@ -328,7 +328,7 @@ public class Packager
|
||||||
isWin = false;
|
isWin = false;
|
||||||
args = "-b -g " + srcFile + " " + outFile;
|
args = "-b -g " + srcFile + " " + outFile;
|
||||||
exedir = AppDataPath.Replace("assets", "") + "LuaEncoder/luajit_mac/";
|
exedir = AppDataPath.Replace("assets", "") + "LuaEncoder/luajit_mac/";
|
||||||
luaexe = exedir + "/luajit";
|
luaexe = exedir + "luajit";
|
||||||
}
|
}
|
||||||
ProcessStartInfo info = new ProcessStartInfo();
|
ProcessStartInfo info = new ProcessStartInfo();
|
||||||
info.FileName = luaexe;
|
info.FileName = luaexe;
|
||||||
|
|
Loading…
Reference in New Issue