You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add multi-format packaging support (DEB, RPM, tarball)
- Add RPM packaging configuration in Cargo.toml
- Create automated build script for all package formats
- Add tarball generation with install/uninstall scripts for Arch users
- Update documentation with installation instructions for all formats
- Add packaging test script to validate configurations
Copy file name to clipboardExpand all lines: README.rst
+60-3Lines changed: 60 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,48 @@ This project provides a Bluetooth proxy daemon for ESPHome, designed to run on L
6
6
Current version cooperates with desktop and other system usage of the bluetooth hardware by using the bluez stack via dbus. Future work to access raw advertisements via
7
7
HCI, bypassing any filtering or delay that bluez may be doing is being considered.
8
8
9
+
Installation
10
+
------------
11
+
12
+
**Debian/Ubuntu (DEB packages)**
13
+
14
+
System packages for Debian-based systems (Debian, Ubuntu, Pop-OS) are provided as part of the release package:
15
+
16
+
.. code-block:: bash
17
+
18
+
sudo dpkg -i linux-bt-proxy_*.deb
19
+
20
+
**Red Hat/Fedora/CentOS (RPM packages)**
21
+
22
+
RPM packages are available for Red Hat-based systems:
23
+
24
+
.. code-block:: bash
25
+
26
+
sudo rpm -i linux-bt-proxy-*.rpm
27
+
# or with dnf/yum:
28
+
sudo dnf install linux-bt-proxy-*.rpm
29
+
30
+
**Arch Linux (Tarball)**
31
+
32
+
For Arch Linux and other distributions, extract the tarball and run the install script:
33
+
34
+
.. code-block:: bash
35
+
36
+
tar -xzf linux-bt-proxy-*-x86_64-unknown-linux-gnu.tar.gz
37
+
cd linux-bt-proxy-*
38
+
sudo ./install.sh
39
+
40
+
All packages install the daemon as a systemd service. After installation:
41
+
42
+
.. code-block:: bash
43
+
44
+
sudo systemctl enable linux-bt-proxy
45
+
sudo systemctl start linux-bt-proxy
46
+
9
47
Usage
10
48
-----
11
-
System packages for debian based systems (Debian. Ubuntu, Pop-OS) are provided as part of the release package. This daemon runs as a systemd unit.
12
49
13
-
14
-
For testing and development, you many run the proxy daemon with:
50
+
For testing and development, you may run the proxy daemon with:
15
51
16
52
.. code-block:: bash
17
53
@@ -39,6 +75,27 @@ Requires Rust (edition 2021 or newer) and a Linux system with BlueZ.
39
75
40
76
cargo build --release
41
77
78
+
Packaging
79
+
---------
80
+
81
+
To build all package formats (DEB, RPM, and tarball):
82
+
83
+
.. code-block:: bash
84
+
85
+
./scripts/build-packages.sh
86
+
87
+
This will create packages in the ``dist/`` directory:
88
+
89
+
- ``*.deb`` - Debian/Ubuntu packages
90
+
- ``*.rpm`` - Red Hat/Fedora/CentOS packages
91
+
- ``*.tar.gz`` - Generic tarball for Arch Linux and other distributions
0 commit comments