Azure 上的 WPF 和 Squirrel 部署

WPF and Squirrel deployment on Azure

我有一个用 WPF (C#) 编写的应用程序,我使用 Squirrel 部署了这个应用程序:

https://intellitect.com/deploying-app-squirrel/

现在我使用这些命令构建应用程序:

.\nuget pack nuget\HelloWorld.nuspec
Squirrel --releasify HelloWorld.1.0.0.nupkg --releaseDir "C:\SquirrelReleases"

在我的本地机器上。但我的应用程序存储在 Azure 中。 如何在 Azure 上使用 Squirrel 进行部署?

How to make deployment using Squirrel on Azure?

阅读文档 here, it seems there's no direct way to deploy your files in Azure Storage at least as of answering this question. Even for Amazon S3,他们提到您在 s3 存储桶中手动上传文件:

5. upload the files from the Squirrel Releases directory into the S3 bucket.

我猜你也可以为 Azure 存储做类似的事情。我没有尝试过,但我相信这是您需要做的(基于他们的 Amazon S3 文档):

  1. 在您的 Azure 存储帐户中创建一个 blob 容器并将其访问级别设置为 Blob(推荐)或 Public
  2. 更新应用程序中 UpdateManager 上的包位置以使用 blob 容器 URL (https://account.blob.core.windows.net/blob-container-name)。
  3. 上传 blob 容器中的文件。有许多选项可供您使用可用的存储资源管理器、AzCopy、Azure PowerShell/CLI 工具或使用任何可用的 SDK 自行编写代码。