/// <summary> /// 拷贝当前到其他目录 /// </summary> /// <param name="sourceh"></param> public static void CopySqlToOther(string root, RuntimePlatform sourcePlatform) { RuntimePlatform[] ps = new RuntimePlatform[] { RuntimePlatform.WindowsEditor, RuntimePlatform.IPhonePlayer, RuntimePlatform.Android }; var target = SqliteLoder.GetDBPath(root, sourcePlatform); var bytes = File.ReadAllBytes(target); //拷贝当前到其他目录 foreach (var p in ps) { var outpath = SqliteLoder.GetDBPath(root, p); if (target == outpath) { continue; } FileHelper.WriteAllBytes(outpath, bytes); } }