Esempio n. 1
0
    static void move_all(BuildTarget buildTarget)
    {
        delStreamingAssets();
        XPack pack = new XPack();

        pack.setInfo(buildTarget);
        XUtil.copyDirectory(pack.targetDir, "Assets/StreamingAssets", true);
        AssetDatabase.Refresh();

        // publish目录
        string versionDir = pack.getVersionDir(publishDir, "v" + version);

        // 清除所有东西
        XUtil.clearDirectory(versionDir);

        XUtil.copyDirectory(pack.targetDir, versionDir, true);


        build(pack, versionDir);

        // 拷贝单个文件
        XDebug.Log(versionDir + "assets/ver.json" + "=>" + pack.getPublishDir(publishDir) + "ver.json");
        XUtil.copyFile(versionDir + "assets/ver.json", pack.getPublishDir(publishDir) + "ver.json");
    }