Giter VIP home page Giter VIP logo

Comments (4)

Hiram-Wong avatar Hiram-Wong commented on August 30, 2024

版本号不就是为了区分

from zyplayer.

allonmymind avatar allonmymind commented on August 30, 2024

版本号不就是为了区分

image
私以为,release标题就有版本号,而且app也支持在线更新,文件名里面如果能改取消版本号的话,我就能用简单的wget命令定时拉取最新的安装包到nas里面了,docker-compose这个项目好像就是这样的,哈哈

from zyplayer.

Hiram-Wong avatar Hiram-Wong commented on August 30, 2024

写个 shell脚本,获取 lastest 版本号然后拼接后wget

from zyplayer.

allonmymind avatar allonmymind commented on August 30, 2024

写个 shell脚本,获取 lastest 版本号然后拼接后wget

#!/bin/bash

repo_owner="Hiram-Wong" # 替换为仓库所有者的用户名或组织名
repo_name="ZyPlayer" # 替换为仓库的名称

使用 GitHub API 获取 release 列表

api_url="https://api.github.com/repos/$repo_owner/$repo_name/releases"
response=$(curl -s $api_url)

提取最新版本号

latest_version=$(echo $response | jq -r '.[0].tag_name')

输出最新版本号

echo "Latest version of $repo_owner/$repo_name is: $latest_version"

感谢,确实这样就解决了

from zyplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.