-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Package: batteries | ||
Version: 0.1.0 | ||
Section: utils | ||
Priority: optional | ||
Architecture: amd64 | ||
Depends: libc6 (>= 2.28), libdbus-1-3 | ||
Maintainer: Riccardo Bella <riccardobella@gmail.com> | ||
Description: A CLI tool to monitor battery status | ||
A Rust-based CLI tool for monitoring the battery status of connected devices. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -e | ||
if [ ! -f /etc/batteries/configs.toml ]; then | ||
echo "Creating default configuration file at /etc/batteries/configs.toml" | ||
touch /etc/batteries/configs.toml | ||
chmod 644 /etc/batteries/configs.toml | ||
fi | ||
exit 0 | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Building the project..." | ||
cargo build --release | ||
|
||
echo "Preparing the package structure..." | ||
mkdir -p packaging/usr/bin | ||
mkdir -p target/deb | ||
cp target/release/batteries packaging/usr/bin/ | ||
chmod 755 packaging/usr/bin/batteries | ||
|
||
echo "Building the .deb package..." | ||
dpkg-deb --build packaging target/deb/batteries_0.1.0_amd64.deb | ||
echo "Package created: target/deb/batteries_0.1.0_amd64.deb" | ||
|
Binary file not shown.