mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Rename classes to get rid of naming conflict
This commit is contained in:
@@ -34,6 +34,7 @@ Global
|
||||
{98AEB048-E27D-42F4-9440-505B7F78BAFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{98AEB048-E27D-42F4-9440-505B7F78BAFD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C1D40624-A484-438A-B846-052F321C89D1}.CIBuild|Any CPU.ActiveCfg = CIBuild|Win32
|
||||
{C1D40624-A484-438A-B846-052F321C89D1}.CIBuild|Any CPU.Build.0 = CIBuild|Win32
|
||||
{C1D40624-A484-438A-B846-052F321C89D1}.Debug|Any CPU.ActiveCfg = Debug|Win32
|
||||
{C1D40624-A484-438A-B846-052F321C89D1}.Debug|Any CPU.Build.0 = Debug|Win32
|
||||
{C1D40624-A484-438A-B846-052F321C89D1}.Release|Any CPU.ActiveCfg = Release|Win32
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Squirrel
|
||||
/// Completely uninstalls the targeted app
|
||||
/// </summary>
|
||||
/// <returns>Completion</returns>
|
||||
async Task FullUninstall();
|
||||
Task FullUninstall();
|
||||
}
|
||||
|
||||
public static class EasyModeMixin
|
||||
|
||||
@@ -13,14 +13,14 @@ namespace Squirrel
|
||||
{
|
||||
public sealed partial class UpdateManager
|
||||
{
|
||||
class ApplyReleases : IEnableLogger
|
||||
class ApplyReleasesImpl : IEnableLogger
|
||||
{
|
||||
// TODO: Kill this entire concept
|
||||
readonly FrameworkVersion appFrameworkVersion = FrameworkVersion.Net45;
|
||||
|
||||
readonly string rootAppDirectory;
|
||||
|
||||
public ApplyReleases(string rootAppDirectory)
|
||||
public ApplyReleasesImpl(string rootAppDirectory)
|
||||
{
|
||||
this.rootAppDirectory = rootAppDirectory;
|
||||
}
|
||||
@@ -331,11 +331,6 @@ namespace Squirrel
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
static string getLocalAppDataDirectory()
|
||||
{
|
||||
return Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
|
||||
}
|
||||
|
||||
DirectoryInfo getDirectoryForRelease(Version releaseVersion)
|
||||
{
|
||||
return new DirectoryInfo(Path.Combine(rootAppDirectory, "app-" + releaseVersion));
|
||||
|
||||
@@ -11,14 +11,14 @@ namespace Squirrel
|
||||
{
|
||||
public sealed partial class UpdateManager
|
||||
{
|
||||
class CheckForUpdates : IEnableLogger
|
||||
class CheckForUpdateImpl : IEnableLogger
|
||||
{
|
||||
readonly string rootAppDirectory;
|
||||
|
||||
// TODO: rip this out
|
||||
readonly FrameworkVersion appFrameworkVersion = FrameworkVersion.Net45;
|
||||
|
||||
public CheckForUpdates(string rootAppDirectory)
|
||||
public CheckForUpdateImpl(string rootAppDirectory)
|
||||
{
|
||||
this.rootAppDirectory = rootAppDirectory;
|
||||
}
|
||||
|
||||
@@ -10,11 +10,11 @@ namespace Squirrel
|
||||
{
|
||||
public sealed partial class UpdateManager
|
||||
{
|
||||
class DownloadReleases : IEnableLogger
|
||||
class DownloadReleasesImpl : IEnableLogger
|
||||
{
|
||||
readonly string rootAppDirectory;
|
||||
|
||||
public DownloadReleases(string rootAppDirectory)
|
||||
public DownloadReleasesImpl(string rootAppDirectory)
|
||||
{
|
||||
this.rootAppDirectory = rootAppDirectory;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Squirrel
|
||||
|
||||
public async Task<UpdateInfo> CheckForUpdate(bool ignoreDeltaUpdates, Action<int> progress = null)
|
||||
{
|
||||
var checkForUpdate = new CheckForUpdates(rootAppDirectory);
|
||||
var checkForUpdate = new CheckForUpdateImpl(rootAppDirectory);
|
||||
|
||||
await acquireUpdateLock();
|
||||
return await checkForUpdate.CheckForUpdate(Utility.LocalReleaseFileForAppDir(rootAppDirectory), updateUrlOrPath, ignoreDeltaUpdates, progress, urlDownloader);
|
||||
@@ -51,7 +51,7 @@ namespace Squirrel
|
||||
|
||||
public async Task DownloadReleases(IEnumerable<ReleaseEntry> releasesToDownload, Action<int> progress = null)
|
||||
{
|
||||
var downloadReleases = new DownloadReleases(rootAppDirectory);
|
||||
var downloadReleases = new DownloadReleasesImpl(rootAppDirectory);
|
||||
await acquireUpdateLock();
|
||||
|
||||
await downloadReleases.DownloadReleases(updateUrlOrPath, releasesToDownload, progress, urlDownloader);
|
||||
@@ -59,7 +59,7 @@ namespace Squirrel
|
||||
|
||||
public async Task ApplyReleases(UpdateInfo updateInfo, Action<int> progress = null)
|
||||
{
|
||||
var applyReleases = new ApplyReleases(rootAppDirectory);
|
||||
var applyReleases = new ApplyReleasesImpl(rootAppDirectory);
|
||||
await acquireUpdateLock();
|
||||
|
||||
await applyReleases.ApplyReleases(updateInfo, progress);
|
||||
@@ -67,7 +67,7 @@ namespace Squirrel
|
||||
|
||||
public async Task FullUninstall()
|
||||
{
|
||||
var applyReleases = new ApplyReleases(rootAppDirectory);
|
||||
var applyReleases = new ApplyReleasesImpl(rootAppDirectory);
|
||||
await acquireUpdateLock();
|
||||
|
||||
await applyReleases.FullUninstall();
|
||||
|
||||
Reference in New Issue
Block a user