Fix release asset name collision, document Linux installation
This commit is contained in:
parent
192eb06c9d
commit
48eb2e562d
2 changed files with 25 additions and 4 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
|
@ -22,10 +22,11 @@ jobs:
|
||||||
- run: cargo build --release
|
- run: cargo build --release
|
||||||
- run: cargo test --release
|
- run: cargo test --release
|
||||||
- run: cargo clippy --release -- -D warnings
|
- run: cargo clippy --release -- -D warnings
|
||||||
|
- run: cp target/release/resticview target/release/resticview-macos
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: resticview-macos
|
name: resticview-macos
|
||||||
path: target/release/resticview
|
path: target/release/resticview-macos
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -37,11 +38,12 @@ jobs:
|
||||||
- run: cargo test --release
|
- run: cargo test --release
|
||||||
- run: cargo clippy --release -- -D warnings
|
- run: cargo clippy --release -- -D warnings
|
||||||
- run: cargo deb
|
- run: cargo deb
|
||||||
|
- run: cp target/release/resticview target/release/resticview-linux
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: resticview-linux
|
name: resticview-linux
|
||||||
path: |
|
path: |
|
||||||
target/release/resticview
|
target/release/resticview-linux
|
||||||
target/debian/*.deb
|
target/debian/*.deb
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
|
@ -61,8 +63,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
|
tag_name: ${{ github.event.inputs.tag || github.ref_name }}
|
||||||
files: |
|
files: |
|
||||||
artifacts/macos/resticview
|
artifacts/macos/resticview-macos
|
||||||
artifacts/linux/release/resticview
|
artifacts/linux/release/resticview-linux
|
||||||
artifacts/linux/debian/*.deb
|
artifacts/linux/debian/*.deb
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
overwrite_files: true
|
overwrite_files: true
|
||||||
|
|
|
||||||
19
README.md
19
README.md
|
|
@ -11,6 +11,25 @@ brew tap janvete/tools
|
||||||
brew install resticview
|
brew install resticview
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Debian / Ubuntu (.deb)
|
||||||
|
|
||||||
|
Download the latest `.deb` from [GitHub Releases](https://github.com/janvete/resticview/releases) and install it:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt install ./resticview_*.deb
|
||||||
|
# or
|
||||||
|
sudo dpkg -i resticview_*.deb
|
||||||
|
```
|
||||||
|
|
||||||
|
### Prebuilt binaries
|
||||||
|
|
||||||
|
Each [release](https://github.com/janvete/resticview/releases) also ships standalone binaries: `resticview-macos` (Apple Silicon) and `resticview-linux` (x86_64). Put the file on your `PATH` and make it executable:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
chmod +x resticview-linux
|
||||||
|
sudo mv resticview-linux /usr/local/bin/resticview
|
||||||
|
```
|
||||||
|
|
||||||
### From source
|
### From source
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue