static void Build() { parseCommand(); Dictionary <string, string> versionInfo = ABHelper.ReadVersionIdFile(); if (!string.IsNullOrEmpty(ABRoot) && "nil" != ABRoot.ToLower()) { versionInfo["ABFolderRoot"] = ABRoot; } if (!string.IsNullOrEmpty(ApkRoot) && "nil" != ApkRoot.ToLower()) { versionInfo["ApkFolderRoot"] = ApkRoot; } if (!string.IsNullOrEmpty(VersionId) && "nil" != VersionId.ToLower()) { versionInfo["ResVersion"] = VersionId; } ABHelper.WriteVersionIdFile(versionInfo); AssetDatabase.Refresh(); switch (TypeV.ToLower()) { case "ab": ABPacker.CommandBuild(true, Platform); break; case "apk": BuildAppSteps.CommandBuild(IsDebug, Platform); break; case "ab2apk": ABPacker.CommandBuild(IsDebug, Platform); BuildAppSteps.CommandBuild(IsDebug, Platform); break; default: break; } }
static void BuildAB2Apk() { parseCommand(); ABPacker.CommandBuild(IsDebug, Platform); BuildAppSteps.CommandBuild(IsDebug, Platform); }