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
ryan
7d0b700ae2
(cargo-release) version 0.3.0
2021-04-08 22:31:07 +12:00
Ryan
62e26338d2
Merge pull request #47 from ryankurte/feature/windows-zip
...
Support zip format and per-target overrides
2021-04-08 22:25:21 +12:00
ryan
76a7fb00c9
add pkg-url and pkg-fmt overrides
2021-04-08 21:26:44 +12:00
ryan
612d19d0fb
fix windows artefact type for testing
2021-04-08 20:49:44 +12:00
ryan
122a5fbdc3
re-add openssl for armv7, probs broken
2021-04-08 20:39:52 +12:00
ryan
ddadcd6d32
bump tokio/reqwest and swap to rustls / remove openssl
2021-04-08 18:55:08 +12:00
ryan
fcc88a673e
remove incorrect default doc line
2021-04-08 18:44:19 +12:00
ryan
1c25b1346f
added zip support, pkg-fmt override
...
swapped CI to build zips for windows
2021-04-08 18:39:54 +12:00
Ryan
94ad0db41d
Merge pull request #45 from ryankurte/dependabot/cargo/log-0.4.14
...
Bump log from 0.4.13 to 0.4.14
2021-03-30 19:54:51 +13:00
dependabot[bot]
dc5098b390
Bump log from 0.4.13 to 0.4.14
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.13 to 0.4.14.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.13...0.4.14 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 20:10:31 +00:00
Ryan
01f7273cc7
Merge pull request #44 from ryankurte/dependabot/cargo/anyhow-1.0.40
...
Bump anyhow from 1.0.37 to 1.0.40
2021-03-30 09:07:10 +13:00
dependabot[bot]
e844f569a1
Bump anyhow from 1.0.37 to 1.0.40
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.37 to 1.0.40.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.37...1.0.40 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 07:56:18 +00:00
Ryan
c0adc3241d
Merge pull request #39 from passcod/feat-36-tar-xz
...
Add support for Txz archives
2021-03-07 11:54:45 +13:00
Félix Saparelli
bf91a1f5fa
Try to build lzma from source for arm cross-build
2021-03-06 23:16:58 +13:00
Félix Saparelli
9c06ca94cb
Add support for Txz archives
2021-03-06 22:35:05 +13:00