public void Execute() { if (mPackageVersion.Readme.content.Length < 2) { DialogUtils.ShowErrorMsg("请输入版本修改说明"); return; } if (!IsVersionValide(mPackageVersion.Version)) { DialogUtils.ShowErrorMsg("请输入正确的版本号 格式:vX.Y.Z"); return; } mPackageVersion.DocUrl = "http://lianxiegame.com"; mPackageVersion.Readme = new ReleaseItem(mPackageVersion.Version, mPackageVersion.Readme.content, User.Username.Value, DateTime.Now); mPackageVersion.Save(); AssetDatabase.Refresh(); RenderEndCommandExecuter.PushCommand(() => { PublishPackage(mPackageVersion, false); }); }
public void Execute() { Server.GetAllRemotePackageInfo(list => { RenderEndCommandExecuter.PushCommand(() => { Model.PackageDatas = PackageInfosRequestCache.Get().PackageDatas; TypeEventSystem.Send(new PackageManagerViewUpdate() { PackageDatas = Model.SelectedPackageType, VersionCheck = Model.VersionCheck, }); }); }); Server.GetAllRemotePackageInfoV5((list, categories) => { RenderEndCommandExecuter.PushCommand(() => { Model.PackageDatas = PackageInfosRequestCache.Get().PackageDatas; TypeEventSystem.Send(new PackageManagerViewUpdate() { PackageDatas = Model.SelectedPackageType, VersionCheck = Model.VersionCheck, }); }); }); }
public void Execute() { var path = Application.dataPath.Replace("Assets", mPackageRepository.installPath); if (Directory.Exists(path)) { Directory.Delete(path, true); } RenderEndCommandExecuter.PushCommand(() => { AssetDatabase.Refresh(); PackageApplication.Container.Resolve <PackageKitWindow>().Close(); InstallPackage.Do(mPackageRepository); }); }