Commit graph

2124 commits

Author SHA1 Message Date
Jiahao XU
cba8a05c82
Fix job "Install cross toolchain (armv7)"
Install "gcc-arm-linux-gnueabihf" as "gcc-arm-linux-musleabihf" does not
exist.

Also use `apt-get` instead of `apt`.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-30 17:19:10 +10:00
Jiahao XU
4e1cb0fdcf
Compile prebuilt binaries using musl target
So that it is statically linked and does not depend on any dynamic
library and can be run anywhere.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-30 17:13:57 +10:00
Ryan
c2aab16940
Merge pull request #128 from somehowchris/feature/remove-git-index
feat: remove crates-index dependency
2022-05-02 10:39:31 +12:00
Christof Weickhardt
256e695aa5 feat: remove crates-index dependency 2022-05-01 07:45:23 +00:00
Ryan
2d68a74637
Merge pull request #126 from somehowchris/feature/crates_io_api-rustls
feat: use rustls for crates_io_api
2022-05-01 11:44:18 +12:00
Ryan
26711f3ae6
Merge pull request #125 from somehowchris/fix/package-version-abort-logic
fix: abort install for specific version if not confirmed
2022-05-01 11:44:01 +12:00
Ryan
60fc30461e
Merge pull request #122 from somehowchris/feature/ignore-yanked
fix: ignore crate version if yanked
2022-05-01 11:43:41 +12:00
Christof Weickhardt
62577a72f3 feat: use rustls for crates_io_api 2022-04-30 09:24:32 +00:00
Christof Weickhardt
42e327477b fix: abort install for specific version if not confirmed 2022-04-30 09:20:15 +00:00
Christof Weickhardt
5f9c673ea5 fix: ignore crate version if yanked 2022-04-29 11:10:05 +00:00
Félix Saparelli
77f51aff84 (cargo-release) version 0.7.0 2022-04-29 10:23:52 +12:00
Félix Saparelli
dd33a1d66e Mention source fallback in readme 2022-04-29 10:21:09 +12:00
Félix Saparelli
eeaba76b5f
Fallback to installing from source (#114)
Closes #108
2022-04-29 10:15:43 +12:00
Félix Saparelli
d68b0a209a
Clarify --version usage and add a warning at runtime (#116)
Fixes #113
2022-04-29 09:33:54 +12:00
Félix Saparelli
1757dc5344
Make fetcher creating infallible (#118)
Fixes #109
2022-04-29 09:24:46 +12:00
Félix Saparelli
62ec23e6f4
Use the correct link name (#117)
On windows, but also use templating to render it correctly everywhere.

Fixes #106
Fixes #111
2022-04-29 09:24:19 +12:00
Ryan
856728b2c7
Merge pull request #104 from nabijaczleweli/main
Point links to just basename-ver, print them the right way 'round
2022-03-14 11:58:27 +13:00
наб
f76791b9b9
Direct the symlink the right way in symlink info!(), point at actual destination 2022-03-13 16:32:58 +01:00
наб
5b4909f9eb
Link to basename instead of absolute path on unix
This renders the link (a) more likely to fit in an ext4 inode
and more importantly (b) makes the bindir impervious to being moved
around
2022-03-13 16:32:55 +01:00
Félix Saparelli
5506ffb5d0 (cargo-release) version 0.6.2 2022-02-16 22:44:10 +13:00
Félix Saparelli
b5d6d68d6d Fix quickinstall failing when packages are not wrapped in a folder 2022-02-16 22:42:37 +13:00
Félix Saparelli
49f3489398 (cargo-release) version 0.6.1 2022-02-16 22:11:55 +13:00
Félix Saparelli
7a1d8b42dd Revert Cargo.toml to {format} to allow self-upgrade 2022-02-16 22:06:03 +13:00
Félix Saparelli
232a4c06a9 (cargo-release) version 0.6.0 2022-02-16 21:46:48 +13:00
Félix Saparelli
5ef8abda3a Actually implement --dry-run 2022-02-16 17:16:29 +13:00
Félix Saparelli
6dcb1dd1b4
Split {format} and allow use of {binary-ext} in pkg-url (#95)
This from feedback in #19:

> wrt. bin-dir and bin-path, this appears to be a typo / should all be called bin-dir

This is only a readme fix afaict, I changed all occurences of `bin-path` in there to `bin-dir`.

> wrt. format, those are actually two (unfortunately named) different concepts, the first
refers to the archive format (eg. .tgz), the second to the binary format (which needs a .exe
appended for windows).

This introduces two new substitutions:
- `binary-ext` is the old "`format` in `bin-dir`"
- `archive-format` is the old "`format` in `pkg-url`"

Contents are unchanged: `binary-ext` includes the dot, `archive-format` doesn't. That
makes it easy to upgrade and also personally I slightly prefer it that way.

The old contextual `format` is still available, "soft deprecated": it will be accepted silently
so everything will work, but all documentation will use the new syntax. In the future we
could move to a "hard deprecated" model where installing a package that uses `format`
will warn the user / tell them to report that to the maintainer. I don't think we'll ever really
be able to remove it but that should be good enough.

A cool new feature is that `binary-ext` is now usable in `pkg-url`, which will be useful for raw binary downloads:

```toml
pkg_url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ binary-ext }"
```

I've also added a bunch of tests to GhCrateMeta around the templating for `pkg-url`.
2022-02-16 16:18:35 +13:00
Félix Saparelli
370ae05620
QuickInstall support (#94)
See this issue: https://github.com/alsuren/cargo-quickinstall/issues/27

Quick Install is a hosted repo of built crates, essentially. The approach I've taken here is
a list of strategies:

1. First, we check the crate meta or default and build the URL to the repo. Once we have
   that, we perform a `HEAD` request to the URL to see if it's available.
2. If it's not, we build the URL to the quickinstall repo, and perform a `HEAD` to there.

As soon as we've got a hit, we use that. I've built it so it's extensible with more strategies.
This could be useful for #4.

This also adds a prompt before downloading from third-party sources, and logs a short
name for a source, which is easier to glance than a full URL, and includes a quick refactor
of the install/link machinery.
2022-02-16 14:49:07 +13:00
Félix Saparelli
e691255650 Update deps 2022-02-16 11:12:25 +13:00
Félix Saparelli
81cf2fc526
Merge pull request #80 from ryankurte/dependabot/cargo/anyhow-1.0.51 2021-12-08 13:13:15 +13:00
Félix Saparelli
0b27ac4c80
Merge branch 'main' into dependabot/cargo/anyhow-1.0.51 2021-12-08 13:01:54 +13:00
Félix Saparelli
f277b5094e
Merge pull request #76 from ryankurte/dependabot/cargo/strum_macros-0.23.1 2021-12-08 13:00:56 +13:00
Félix Saparelli
c74986b85b
Merge pull request #79 from ryankurte/dependabot/cargo/reqwest-0.11.7 2021-12-08 12:35:05 +13:00
Félix Saparelli
0f6710d677
Merge pull request #78 from ryankurte/dependabot/cargo/cargo_toml-0.10.2 2021-12-08 12:34:51 +13:00
dependabot[bot]
712a63fc84
Bump anyhow from 1.0.45 to 1.0.51
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.45 to 1.0.51.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.45...1.0.51)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 01:14:55 +00:00
dependabot[bot]
f7528b7004
Bump reqwest from 0.11.6 to 0.11.7
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.6 to 0.11.7.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.6...v0.11.7)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 01:14:45 +00:00
dependabot[bot]
9b092b9f9e
Bump cargo_toml from 0.10.1 to 0.10.2
Bumps [cargo_toml](https://gitlab.com/crates.rs/cargo_toml) from 0.10.1 to 0.10.2.
- [Release notes](https://gitlab.com/crates.rs/cargo_toml/tags)
- [Commits](https://gitlab.com/crates.rs/cargo_toml/commits/master)

---
updated-dependencies:
- dependency-name: cargo_toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 01:14:41 +00:00
dependabot[bot]
c46eda2b54
Bump strum_macros from 0.23.0 to 0.23.1
Bumps [strum_macros](https://github.com/Peternator7/strum) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/Peternator7/strum/releases)
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

---
updated-dependencies:
- dependency-name: strum_macros
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 01:14:07 +00:00
ryan kurte
912dc56c95 (cargo-release) version 0.5.0 2021-11-19 09:37:35 +13:00
Ryan
15df6aace1
Merge pull request #74 from passcod/ed2021
Update dependencies
2021-11-19 09:35:19 +13:00
Félix Saparelli
cdb2f8ccdd Fix test 2021-11-17 21:57:09 +13:00
Félix Saparelli
0f9b4de449 Update deps 2021-11-17 21:53:20 +13:00
Ryan
8b4e77918c
Update README.md
Add curl commands for fetching latest release archives to readme
2021-10-22 18:45:51 +13:00
Ryan
8af4f2c5ea
Merge pull request #68 from pinage404/fix/binary-package-format
Fix/binary package format
2021-10-18 10:06:51 +13:00
pinage404
71c6b0d209 fix: typo 2021-10-17 12:45:53 +02:00
pinage404
6f05d630f0 fix: binary need to have the right to be executed 2021-10-17 12:35:15 +02:00
pinage404
90edbba221 fix: binary is not in a extracted folder 2021-10-17 12:34:36 +02:00
ryan kurte
5c56c930e4 (cargo-release) version 0.4.1 2021-10-08 12:28:56 +13:00
Ryan
f25f0b2337
Merge pull request #66 from ryankurte/macos-use-zip
Swap macos to zip, update binary lookup for binstall
2021-10-08 12:24:04 +13:00
ryan kurte
7aaba5e1ee improve debug logging on extraction 2021-10-08 12:16:14 +13:00
ryan kurte
87449e29e7 Swap macos to zip, update binary lookup for binstall 2021-10-08 11:38:38 +13:00