Prep release

This commit is contained in:
Luke
2020-06-29 21:50:22 +12:00
parent 32e9e63809
commit b751ceb29e
7 changed files with 63 additions and 10 deletions

View File

@@ -5,10 +5,32 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.13.0] - 2020-29-06
### Changed
- Dbus command LedWriteBytes renamed to SetKeyBacklight
- Dbus signal LedCancelEffect renamed to KeyBacklightChanged
- Dbus command SetKeyBacklight will now take a JSON string instead of an array of bytes
- Dbus command `LedWriteBytes` renamed to `SetKeyBacklight`
- Dbus command `SetKeyBacklight` will now take a JSON string instead of an array of bytes
+ Example:
```
{
"Breathe": {
"help": false,
"colour": [
254,
5,
171
],
"colour2": [
0,
156,
156
],
"speed": "High"
}
}
```
note that `help` is unused but required as a side-effect of using `gumdrop`
for CLI.
- Dbus signal `LedCancelEffect` renamed to `KeyBacklightChanged`
- Config file is now in JSON format, and will store only the LED modes that a laptop
supports rather than the whole set

2
Cargo.lock generated
View File

@@ -750,7 +750,7 @@ dependencies = [
[[package]]
name = "rog-daemon"
version = "0.12.2"
version = "0.13.0"
dependencies = [
"dbus",
"dbus-tokio",

View File

@@ -54,6 +54,6 @@ vendor:
target/release/$(BIN): $(SRC)
ifeq ($(VENDORED),1)
tar pxf vendor_rog-core_<version>.tar.xz
tar pxf vendor.tar.xz
endif
cargo build $(ARGS)

31
debian/changelog vendored
View File

@@ -1,3 +1,34 @@
rog-core (0.13.0) focal; urgency=medium
- Dbus command `LedWriteBytes` renamed to `SetKeyBacklight`
- Dbus command `SetKeyBacklight` will now take a JSON string instead of an array of bytes
+ Example:
```
{
"Breathe": {
"help": false,
"colour": [
254,
5,
171
],
"colour2": [
0,
156,
156
],
"speed": "High"
}
}
```
note that `help` is unused but required as a side-effect of using `gumdrop`
for CLI.
- Dbus signal `LedCancelEffect` renamed to `KeyBacklightChanged`
- Config file is now in JSON format, and will store only the LED modes that a laptop
supports rather than the whole set
-- Luke Jones <luke@ljones.dev> Mon, 29 Jun 2020 21:45:51 +1200
rog-core (0.12.2) focal; urgency=medium
* Changed "FanMode", "ChargeLimit" to "SetFanMode", "SetChargeLimit"

View File

@@ -100,7 +100,7 @@ impl AuraDbusWriter {
}
#[inline]
pub fn write_bytes(&self, mode: &AuraModes) -> Result<(), Box<dyn std::error::Error>> {
pub fn write_keyboard_leds(&self, mode: &AuraModes) -> Result<(), Box<dyn std::error::Error>> {
let mut msg =
Message::new_method_call(DBUS_NAME, DBUS_PATH, DBUS_IFACE, "SetKeyBacklight")?
.append1(serde_json::to_string(mode)?);
@@ -129,12 +129,12 @@ impl AuraDbusWriter {
#[inline]
pub fn write_builtin_mode(&self, mode: &AuraModes) -> Result<(), Box<dyn std::error::Error>> {
self.write_bytes(mode)
self.write_keyboard_leds(mode)
}
#[inline]
pub fn write_brightness(&self, level: u8) -> Result<String, Box<dyn std::error::Error>> {
self.write_bytes(&AuraModes::LedBrightness(level))?;
self.write_keyboard_leds(&AuraModes::LedBrightness(level))?;
Ok(String::new())
}
}

View File

@@ -1,6 +1,6 @@
[package]
name = "rog-daemon"
version = "0.12.2"
version = "0.13.0"
license = "MPL-2.0"
readme = "README.md"
authors = ["Luke <luke@ljones.dev>"]

View File

@@ -10,7 +10,7 @@ use rog_client::{
LED_MSG_LEN,
};
static VERSION: &str = "0.12.2";
static VERSION: &str = "0.13.0";
#[derive(Debug, Options)]
struct CLIStart {