Beispiel #1
0
    //-------------------------------------------------------------------------
    void _initProject()
    {
        try
        {
            Directory.CreateDirectory(mPatchInfoTargetDirectory);
        }
        catch (Exception e)
        {
            _deleteDirectory(mPatchInfoTargetDirectory);
            Debug.LogError("EditorGfInitProjectInfo::CreateDirectory::Error::" + e.Message);
        }

        try
        {
            EditorGf.copyFile(mPatchInfoResouceDirectory, mPatchInfoTargetDirectory, mPatchInfoResouceDirectory);
        }
        catch (Exception e)
        {
            _deleteDirectory(mPatchInfoTargetDirectory);
            Debug.LogError("EditorGfInitProjectInfo::copyFile::Error::" + e.Message);
        }

        PlayerSettings.companyName = mComponyName;
        PlayerSettings.productName = mProductName;
        EditorGf.changeBundleData(mBundleVersion, true);
        EditorGf.changeDataData(mDataVersion, true);
    }
Beispiel #2
0
    static void AutoPatcher()
    {
        _checkPath();
        _initCurrentBuildTarget();

        if (!Directory.Exists(mABTargetPath))
        {
            EditorGfInitProjectInfo test = GetWindow <EditorGfInitProjectInfo>("初始化项目信息");

            test.copyPatchInfo(mABTargetPath,
                               mAssetPath + mABPathInfoResourceDirectory);
            return;
        }

        EditorGf dragon_pack = (EditorGf)EditorWindow.GetWindow(typeof(EditorGf));

        _getCurrentTargetPath();
        _checkPatchData();
        mMD5 = new MD5CryptoServiceProvider();
        mListNeedBuildPlatform  = new List <BuildTarget>();
        mQueueNeedBuildPlatform = new Queue <BuildTarget>();
    }