GITLAB - 从存储库下载最新 AppImage 版本的永久链接

问题描述 投票:0回答:1

以某种方式跟进问题: GITLAB - 从我的存储库下载最新版本的永久链接 (我想在下面发表评论,但只有在50个帖子左右才允许)

有没有办法将永久链接(到应用程序的最新版本)放在AppImage文件中以通过curl或wget下载它?

我的例子是 LibreWolf: LibreWolf 网站 Appimages 链接:https://librewolf.net/installation/linux/ 它已经将您带到了这里:https://gitlab.com/librewolf-community/browser/appimage/-/releases

所以最新版本的永久链接(当我编写它时是 v123.0-1)是: https://gitlab.com/librewolf-community/browser/appimage/-/releases/permalink/latest (这仅引导您访问此版本的文件:https://gitlab.com/librewolf-community/browser/appimage/-/releases/v123.0-1

所以现在我想要一个到这个最新版本的 AppImage 文件的永久链接?!https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/123.0-1/LibreWolf.x86_64.AppImage
(文件似乎有一个通用名称:“LibreWolf.x86_64.AppImage”,而发布页面上的链接文本是:“LibreWolf-v123.0-1.x86_64.AppImage”)

提前感谢您的帮助。 ;-)

download gitlab permalinks appimage
1个回答
0
投票

并不是真正的永久链接,但 API 版本和项目 ID 应该相对恒定,所以我现在将使用它: https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/latest/LibreWolf.x86_64.AppImage

--> wget -O LibreWolf.x86_64.AppImage https://gitlab.com/api/v4/projects/24386000/packages/generic/librewolf/latest/LibreWolf.x86_64.AppImage

© www.soinside.com 2019 - 2024. All rights reserved.