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