Example #1
0
        public static void ExecuteGenTable()
        {
            var outpath_win =
                IPath.Combine(Application.streamingAssetsPath, BDUtils.GetPlatformPath(Application.platform));

            Excel2SQLiteTools.GenSQLite(outpath_win);

            var outpath_android = Application.streamingAssetsPath + "/" +
                                  BDUtils.GetPlatformPath(RuntimePlatform.Android) + "/Local.db";
            var outpath_ios = Application.streamingAssetsPath + "/" +
                              BDUtils.GetPlatformPath(RuntimePlatform.IPhonePlayer) + "/Local.db";
            var source = outpath_win + "/Local.db";

            if (source != outpath_android)
            {
                File.Copy(source, outpath_android, true);
            }
            if (source != outpath_ios)
            {
                File.Copy(source, outpath_ios, true);
            }

            AssetDatabase.Refresh();
            Debug.Log("脚本打包完毕");


            Debug.Log("表格导出完毕");
        }
Example #2
0
        public static void ExecuteGenTable()
        {
            var outpath_win = IPath.Combine(Application.streamingAssetsPath, BDUtils.GetPlatformPath(Application.platform));

            Excel2SQLiteTools.GenSQLite(outpath_win);

            Debug.Log("表格导出完毕");
        }
        public static void ExecuteGenTable()
        {
            var outpath_win = IPath.Combine(Application.streamingAssetsPath, Utils.GetPlatformPath(Application.platform));

            Excel2SQLiteTools.GenSQLite(outpath_win);

            var outpath_android = Application.streamingAssetsPath + "/" + Utils.GetPlatformPath(RuntimePlatform.Android) + "/Local.db";
            var outpath_ios     = Application.streamingAssetsPath + "/" + Utils.GetPlatformPath(RuntimePlatform.IPhonePlayer) + "/Local.db";
            var bytes           = File.ReadAllBytes(outpath_win + "/Local.db");

            FileHelper.WriteAllBytes(outpath_android, bytes);
            FileHelper.WriteAllBytes(outpath_ios, bytes);

            AssetDatabase.Refresh();
            Debug.Log("脚本打包完毕");


            Debug.Log("表格导出完毕");
        }
Example #4
0
 public static void ExecuteJsonToSqlite()
 {
     Excel2SQLiteTools.GenJsonToSQLite(IPath.Combine(Application.streamingAssetsPath,
                                                     BDUtils.GetPlatformPath(Application.platform)));
     Debug.Log("表格导出完毕");
 }
Example #5
0
 public static void ExecuteGenTable()
 {
     Excel2SQLiteTools.GenSQLite(Path.Combine(Application.streamingAssetsPath, Utils.GetPlatformPath(Application.platform)));
     Debug.Log("表格导出完毕");
 }