Skip to content

Commit 9366d09

Browse files
authored
Merge pull request #13 from patryk-ku/dev
v0.2.0
2 parents 0cf4c5a + 968956e commit 9366d09

File tree

13 files changed

+1445
-585
lines changed

13 files changed

+1445
-585
lines changed

.github/release-notes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Changes:
2+
3+
- (⚠️ **Breaking**) The `-n`, `--player-name` argument has been removed. Use `-a`, `--allowlist-add` instead.
4+
- (⚠️ **Breaking**) The previous button arguments (`-p`, `--profile-button`, `-y`, `--yt-button`) have been consolidated into a single new argument: `-b, --button` with options: `yt`, `lastfm`, `listenbrainz` and separate arguments for setting service usernames. More additional buttons coming in the future.
5+
- Added support for configuring the program via a configuration file.
6+
- Added commands for easy setup of autostart using systemd.
7+
- Now available as `.deb` and `.rpm` packages, and in the AUR.
8+
- Print debug logs with `--debug-log`.

.github/workflows/release.yml

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,54 @@ name: release
33
on:
44
push:
55
tags:
6-
- '**'
6+
- "**"
77

88
env:
99
CARGO_TERM_COLOR: always
1010

1111
jobs:
1212
release:
13-
1413
runs-on: ubuntu-latest
1514

1615
permissions:
1716
contents: write
1817

1918
steps:
20-
- uses: actions/checkout@v3
21-
- name: Install Ubuntu dependencies
22-
run: |
23-
sudo apt-get update
24-
sudo apt install libdbus-1-dev pkg-config
25-
- name: 'Create env file'
26-
run: |
27-
touch .env
28-
echo LASTFM_API_KEY=${{ secrets.LASTFM_API_KEY }} >> .env
29-
- name: Build
30-
run: |
31-
cargo build --release
32-
- name: GH Release
33-
uses: softprops/action-gh-release@v0.1.15
34-
if: startsWith(github.ref, 'refs/tags/')
35-
with:
36-
body_path: release-notes.txt
37-
files: target/release/mpris-discord-rpc
19+
- uses: actions/checkout@v4
20+
21+
- uses: dtolnay/rust-toolchain@stable
22+
23+
- name: Install Ubuntu dependencies
24+
run: |
25+
sudo DEBIAN_FRONTEND=noninteractive apt-get update
26+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libdbus-1-dev pkg-config
27+
28+
- name: "Create env file"
29+
run: |
30+
touch .env
31+
echo LASTFM_API_KEY=${{ secrets.LASTFM_API_KEY }} >> .env
32+
33+
- name: Build
34+
run: |
35+
cargo build --release
36+
37+
- name: Create .deb package
38+
run: |
39+
cargo install cargo-deb
40+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y dpkg dpkg-dev liblzma-dev
41+
cargo deb --output target/release/mpris-discord-rpc.deb
42+
43+
- name: Create .rpm package
44+
run: |
45+
cargo install cargo-generate-rpm
46+
cargo generate-rpm -o target/release/mpris-discord-rpc.rpm
3847
48+
- name: GH Release
49+
uses: softprops/action-gh-release@v2
50+
if: startsWith(github.ref, 'refs/tags/')
51+
with:
52+
body_path: .github/release-notes.md
53+
files: |
54+
target/release/mpris-discord-rpc
55+
target/release/mpris-discord-rpc.deb
56+
target/release/mpris-discord-rpc.rpm

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## v0.2.0
2+
3+
- (⚠️ **Breaking**) The `-n`, `--player-name` argument has been removed. Use `-a`, `--allowlist-add` instead.
4+
- (⚠️ **Breaking**) The previous button arguments (`-p`, `--profile-button`, `-y`, `--yt-button`) have been consolidated into a single new argument: `-b, --button` with options: `yt`, `lastfm`, `listenbrainz` and separate arguments for setting service usernames. More additional buttons coming in the future.
5+
- Added support for configuring the program via a configuration file.
6+
- Added commands for easy setup of autostart using systemd.
7+
- Now available as `.deb` and `.rpm` packages, and in the AUR.
8+
- Print debug logs with `--debug-log`.
9+
110
## v0.1.5
211

312
- Set Discord RPC activity type to "Listening".

0 commit comments

Comments
 (0)