Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 static void BuildAB2Apk()
 {
     parseCommand();
     ABPacker.CommandBuild(IsDebug, Platform);
     BuildAppSteps.CommandBuild(IsDebug, Platform);
 }
Ejemplo n.º 3
0
 static void BuildAB()
 {
     parseCommand();
     ABPacker.CommandBuild(true, Platform);
 }