首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当发布设置为“始终”时,电子生成器不会在GitHub中创建发行版,尽管没有错误。

当发布设置为“始终”时,电子生成器不会在GitHub中创建发行版,尽管没有错误。
EN

Stack Overflow用户
提问于 2021-07-28 07:56:11
回答 1查看 2K关注 0票数 1

我正在尝试将一个电子应用程序发布到我的GitHub存储库的版本中。

这是我的package.json

代码语言:javascript
复制
{
  "name": "sample-electron-app",
  "version": "1.0.1",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "electron .",
    "build": "electron-builder build --win --publish never",
    "deploy": "electron-builder build --win --publish always"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "electron": "^13.1.7",
    "electron-builder": "^22.11.7"
  },
  "dependencies": {
    "electron-updater": "^4.3.9"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/sriramsridharanvr/sample-electron-app.git"
  }
}

当我运行npm run deploy脚本时,我希望它在GitHub存储库中创建一个名为v1.0.1的版本,但是什么也不会发生。电子生成器的输出不显示任何错误。以下是控制台输出:

代码语言:javascript
复制
• loaded configuration  file=D:\projects\rnd\electron-app-update\prototype-3\sample-electron-app\electron-builder.yml
  • description is missed in the package.json  appPackageFile=D:\projects\rnd\electron-app-update\prototype-3\sample-electron-app\package.json
  • writing effective config  file=dist\builder-effective-config.yaml                               lectron-builder.yml        
  • packaging       platform=win32 arch=x64 electron=13.1.7 appOutDir=dist\win-unpacked             ototype-3\sample-electron-a
  • "token" specified in the github publish options. It should be used only for [setFeedURL](module:electron-updater/out/AppUpdater.AppUpdater+setFeedURL).
  • default Electron icon is used  reason=application icon is not set
  • building        target=nsis file=dist\sample-electron-app Setup 1.0.1.exe archs=x64 oneClick=true perMaelectron-updater/out/AppUpdchine=false
  • building block map  blockMapFile=dist\sample-electron-app Setup 1.0.1.exe.blockmap
  • "token" specified in the github publish options. It should be used only for [setFeedURL](module:chine=falseelectron-updater/out/AppUpdater.AppUpdater+setFeedURL).
  • "token" specified in the github publish options. It should be used only for [setFeedURL](module:electron-updater/out/AppUpdelectron-updater/out/AppUpdater.AppUpdater+setFeedURL).
  • publishing      publisher=Github (owner: sriramsridharanvr, project: sample-electron-app, versioelectron-updater/out/AppUpdn: 1.0.1)
  • uploading       file=sample-electron-app-Setup-1.0.1.exe.blockmap provider=GitHub                      n: 1.0.1)
  • uploading       file=sample-electron-app-Setup-1.0.1.exe provider=GitHub
  • creating GitHub release  reason=release doesn't exist tag=v1.0.1 version=1.0.1
    [====================] 100% 0.0s | sample-electron-app-Setup-1.0.1.exe to GitHub

从最后两行可以看到,它创建了一个标记(v1.0.1)和相应的版本。但我的存储库都没有创建。

显然,我错过了一些非常微不足道的东西。请帮我理解一下这里发生了什么。

PS:我试图构建一个基于这篇文章的自动更新应用程序。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-07-28 21:12:57

电子生成器将首先在GitHub上发布应用程序草稿,然后您需要手动进入并发布该版本。

看一看:https://github.com/sriramsridharanvr/sample-electron-app/releases

查看是否可以看到已创建的任何草稿。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68556490

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档