generate debian packages - 1.0!

This commit is contained in:
Alex Janka 2022-11-20 11:45:33 +11:00
parent 7d76e5ecee
commit bf69f95240
7 changed files with 14 additions and 4 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
/target /target
debs/*.deb

2
Cargo.lock generated
View file

@ -383,7 +383,7 @@ dependencies = [
[[package]] [[package]]
name = "mppt-control" name = "mppt-control"
version = "0.1.0" version = "1.0.0"
dependencies = [ dependencies = [
"bincode", "bincode",
"clap 3.2.20", "clap 3.2.20",

View file

@ -1,7 +1,11 @@
[package] [package]
name = "mppt-control" name = "mppt-control"
version = "0.1.0" version = "1.0.0"
edition = "2021" edition = "2021"
description = "Read/write parameters on the Morningstar TriStar using MPPT"
license = "GPL 3.0"
readme = "README.md"
authors = ["Alex Janka <alex@alexjanka.com>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

6
deb_generate.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
archs=(x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu)
for i in "${archs[@]}"
do
cargo deb --target=$i -o debs
done

0
debs/.empty Normal file
View file

View file

@ -1 +0,0 @@
git pull && cargo install --path .

View file

@ -620,7 +620,7 @@ fn main() {
println!("ram: {:#?}", ram_data); println!("ram: {:#?}", ram_data);
} }
None => { None => {
println!("eeprom: {}", eeprom_data); println!("{eeprom_data}");
} }
} }
} }