Esempio n. 1
0
        // What's the difference between Nuke and Uninstall?
        // Nuke doesn't care for dependencies (if present)
        public void NukePackage(string packageName)
        {
            Upbring          upbring = Upbring.Instance();
            InstalledPackage package = upbring.GetInstalledPackage(packageName);

            package.Nuke();
            upbring.RemovePackage(package);
            upbring.SaveFile();
        }
Esempio n. 2
0
        // What's the difference between Nuke and Uninstall?
        // Nuke doesn't care for dependencies (if present)
        public void NukePackage(string packageName)
        {
            Upbring          upbring = Upbring.Instance();
            InstalledPackage package = upbring.GetInstalledPackage(packageName);

            package.Nuke();
            upbring.RemovePackage(package);
            upbring.SaveFile();
            UnityHacks.BuildSettingsEnforcer.EnforceAssetSave();
        }
Esempio n. 3
0
        public void NukeAllPackages()
        {
            Upbring upbring = Upbring.Instance();

            foreach (InstalledPackage package in upbring.InstalledPackage)
            {
                package.Nuke();
                upbring.RemovePackage(package);
            }

            //TODO: Remove file when Upbring properly removes everything
            Upbring.RemoveFile();
        }
Esempio n. 4
0
        public void NukeAllPackages()
        {
            Upbring upbring = Upbring.Instance();

            using (LogAggregator LA = LogAggregator.InUnity(
                       "{0} packages were successfully nuked",
                       "{0} packages were successfully nuked but warnings were raised",
                       "Some errors occured while nuking {0} packages",
                       upbring.InstalledPackage.Length
                       ))
            {
                foreach (InstalledPackage package in upbring.InstalledPackage)
                {
                    package.Nuke();
                    upbring.RemovePackage(package);
                }

                //TODO: Remove file when Upbring properly removes everything
                Upbring.RemoveFile();
            }
        }