Releases: houseabsolute/ubi
Releases · houseabsolute/ubi
v0.4.0
- The
ubi
CLI tool now takes an optional--extract-all
argument. If this is passed, it will only look for archive files and it will extract the entire contents of an archive it finds. There is also a new correspondingUbiBuilder::extract_all
method. Requested by @Entze (Lukas Grassauer). GH #68. - The
UbiBuilder::install_dir
method now takesAsRef<Path>
instead ofPathBuf
, which should make it more convenient to use. - Previously,
ubi
would create the install directory very early in its process, well before it had something to install. This meant that if it failed to find an asset, couldn't download the asset, or other errors happened, it would leave this directory behind. Now it creates this directory immediately before writing the executable it found to disk.
v0.3.0
ubi
now works with GitLab in addition to GitHub. For the command-line program, if the value you pass to--project
has agitlab.com
domain, likehttps://gitlab.com/gitlab-org/cli
, this will just work. If you just pass a project name, likegitlab-org/cli
, then you will also need to pass--forge gitlab
in order to tellubi
to use gitlab. The library interface works the same way, with a newUbiBuilder::forge
method. Requested by @SangeloDev. GH #51.- When looking for macOS assets,
ubi
will now match againstmacosx
in asset names, not justmacos
andosx
. Implemented by @kattouf (Vasiliy Kattouf). GH #80. - Added a new
--api-url-base
CLI argument. This should allow you to useubi
with Enterprise installations of GitHub and GitLab. Requested by @oalders (Olaf Alders). GH #69. - Renamed the
UbiBuilder::url_base
method toapi_base_url
and changed it to take a&str
instead of aString
, which is consistent with all the other builder methods.
v0.2.4
v0.2.3
- Fixed the code to detect whether the filename includes a version number that looks like an extension. If the filename ended with the version, like
foo-1.2.3
, then this was not handled properly. It only worked if there something after the version as well, likefoo-1.2.3-linux-amd64
. Based on a bug report by @FelisNivalis. GH #77.
v0.2.2
v0.2.1
- When running on Linux,
ubi
now checks to see if the platform is usingmusl
and will prefer a release artifact with "musl" in the name. Previously, it would usually pick a glibc artifact if there were multiple artifacts that matched the platform OS and architecture, which would not work on musl-based platforms like Alpine Linux. Reported by @burner. GH #70. - Fixed a bug in the handling of release artifact names with version numbers in them that look like extensions. This caused
ubi
to fail when trying to installshfmt
3.10.0, and probably many other tools. Reported by @jimeh (Jim Myhrberg). GH #67. - Work around release artifacts that put the platform name after a period, so it looks like an extension. This is the case with
direnv
, at least with the v2.35.0 release, which has releast artifacts like "direnv.linux-amd64". Reported by @jimeh (Jim Myhrberg). GH #67.
v0.1.1
- Fix documentation links to link to the library docs, not the CLI docs.
v0.1.0
- UBI can now be used as a library. See the
ubi
docs on docs.rs for more details.
v0.0.32
- Fix support for plain
.tar
files with no compression. - Fix handling of files with a version in the filename and no extension, like
shfmt_v3.8.0_linux_arm64
. This was fixed before but I broke it in the 0.0.31 release.
v0.0.31
- Added support for the
.bz2
and.tar.bz2
file extensions.