V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
randomboi

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

  •  
  •   randomboi · Dec 3, 2021 · 2274 views
    This topic created in 1610 days ago, the information mentioned may be changed or developed.

    示例

    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 replies    2021-12-04 05:31:24 +08:00
    Contextualist
        1
    Contextualist  
       Dec 4, 2021
    赞耶,节省了为每个项目写一个安装脚本的功夫。我之前维护了个重定向至特定系统架构的可执行文件下载链接的服务,这个方案完善得多
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   947 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:40 · PVG 02:40 · LAX 11:40 · JFK 14:40
    ♥ Do have faith in what you're doing.