iOS 打包修复无法生成luabytes文件的问题

dev_chengFeng
jl_ios 2020-08-12 11:58:12 +08:00
parent ab6be0a9e2
commit 14645cb184
4 changed files with 7 additions and 8 deletions

View File

@ -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
{ {

View File

@ -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()
{ {

View File

@ -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;

0
LuaEncoder/luajit_mac/luajit 100644 → 100755
View File