如何将 APK 从 TFS 部署到 Google Play?

How to deploy APK from TFS to Google Play?

我正处于本机 Android 应用程序端项目的研究阶段,我想利用 Android Studio 和 Visual Studio Online (TFS)。该应用程序还将包含以 .Net 编写的 Web 服务部分(WCF/WebAPI 待定)。

到目前为止,我已经找到了如何将 TFS 与 Android Studio 集成并使用 Maven 构建包,但我对如何自动将包从 TFS 部署到 Goole Play 感到困惑。

是否可以将 TFS 部署到 Google Play?

注意:我可能想将其货币化,因此它将被关闭源代码。

要将现有任务上传到 VSO,您需要使用“TFS Cross Platform Command Line”,也称为 TFX。

说明在 GitHub 的 README.md 中。基本上:

  • 从 Node 网站安装 Node.JS。
  • 运行 在 command-line:npm install –g tfx-cli
  • 运行 tfx 登录并输入您的 collection url(可能 https://youraccount.visualstudio.com) and your personal access token
  • 运行 tfx upload <folder> 上传您的任务。
  • 运行 tfx delete <GUID> 删除您的任务。 TFX 不会覆盖,所以 您需要先删除再上传。

查看此博客:https://www.simple-talk.com/sql/database-delivery/writing-build-vnext-tasks-for-visual-studio-online/

然后您可以在 vNext 构建的构建步骤中添加 this task 以自动部署从 Visual Studio 在线到 Google 播放。