V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
randomboi
V2EX  ›  分享创造

写了一个从 GitHub Releases 安装可执行文件的服务

  •  
  •   randomboi · 2021-12-03 21:48:52 +08:00 · 1856 次点击
    这是一个创建于 868 天前的主题,其中的信息可能已经有所发展或是发生改变。

    示例

    telegram-cloud-photo-size-5-6147827153002147964-y.jpg

    有个简单地自动判断系统和架构的机制,不过最好的办法是给你的项目加个 bina.json 指定安装文件:

    {
      "platforms": {
        "darwin-amd64": {
          "asset": "my-program-darin-x86_64.tar.gz",
          "file": "bin/my-program"
        },
        "windows-amd64": {
          "asset": "my-program-windows-x86_64.tar.gz",
          "file": "bin/my-program.exe"
        }
      }
    }
    

    官网有更多介绍:

    https://bina.egoist.sh

    1 条回复    2021-12-04 05:31:24 +08:00
    Contextualist
        1
    Contextualist  
       2021-12-04 05:31:24 +08:00
    赞耶,节省了为每个项目写一个安装脚本的功夫。我之前维护了个重定向至特定系统架构的可执行文件下载链接的服务,这个方案完善得多
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2914 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 07:41 · PVG 15:41 · LAX 00:41 · JFK 03:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.