@homebridge/homebridge-apt-pkg 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,228 +1,20 @@
1
- # Debian Package For Homebridge
1
+ # @homebridge/homebridge-apt-pkg
2
2
 
3
- This project builds and publishes a debian-based package that can be installed using `apt` on Ubuntu / Debian / Raspberry Pi OS based Linux systems.
3
+ This is a **stub package** used to track versions of the Homebridge APT package via npm and Dependabot.
4
4
 
5
- The project aims to deploy Homebridge and the Homebridge UI in a secure and stable way, with no dependencies outside those available in the standard distribution repos. It comes bundled with it's own Node.js runtime and runs Homebridge in an isolated environment as a service user with no sudo / admin priviledges.
5
+ > **Note:** This package does **not** contain any actual code or binaries.
6
6
 
7
- Supported architectures:
7
+ ## 🔗 Related Projects
8
8
 
9
- * x86_64
10
- * armhf ( armv7)
11
- * aarch64 (arm64)
9
+ - 🧩 APT Releases: https://github.com/homebridge/homebridge-apt-pkg/releases
10
+ - 🐳 Docker Image: https://github.com/homebridge/docker-homebridge
11
+ - 🏠 Homebridge Project: https://homebridge.io
12
12
 
13
- ## Using APT
13
+ ## 🛠 Purpose
14
14
 
15
- Add package source:
15
+ This package exists solely to:
16
+ - Allow `dependabot` to track version updates via GitHub Releases.
17
+ - Help downstream projects automate version syncing (e.g., Docker builds).
16
18
 
17
- ```bash
18
- # make sure the tools needed to add the repo exist
19
- sudo apt-get update
20
- sudo apt-get install -y curl gpg
19
+ ---
21
20
 
22
- # add the homebridge gpg key
23
- curl -sSfL https://repo.homebridge.io/KEY.gpg | sudo gpg --dearmor | sudo tee /usr/share/keyrings/homebridge.gpg > /dev/null
24
-
25
- # add the homebridge repo
26
- echo "deb [signed-by=/usr/share/keyrings/homebridge.gpg] https://repo.homebridge.io stable main" | sudo tee /etc/apt/sources.list.d/homebridge.list > /dev/null
27
- ```
28
-
29
- Update and install:
30
-
31
- ```bash
32
- sudo apt-get update
33
- sudo apt-get install homebridge
34
- ```
35
-
36
- Remove:
37
-
38
- ```
39
- sudo apt-get remove homebridge
40
- ```
41
-
42
- Purge (this will delete `/var/lib/homebridge`):
43
-
44
- ```
45
- sudo apt-get purge homebridge
46
- ```
47
-
48
- ## Manual Install
49
-
50
- Download the correct file for your system from https://github.com/homebridge/homebridge-apt-pkg/releases/latest
51
-
52
- ```
53
- dpkg -i homebridge_x.x.x_xxxx.deb
54
- ```
55
-
56
- Remove:
57
-
58
- ```
59
- dpkg --remove homebridge
60
- ```
61
-
62
- Purge (this will delete `/var/lib/homebridge`):
63
-
64
- ```
65
- dpkg --purge homebridge
66
- ```
67
-
68
- ## Updating / Downgrading
69
-
70
- ### To install the latest version
71
-
72
- To update Homebridge, Homebridge UI and NodeJS when installed via this APT package, run:
73
-
74
- ```bash
75
- sudo apt update
76
- sudo apt install homebridge
77
- ```
78
-
79
- This will upgrade all related components managed by this package.
80
-
81
- ⚠️ Your configuration files and plugins are stored in /var/lib/homebridge and will not be affected by updates.
82
-
83
- ### Downgrading to a previous release
84
-
85
- Downgrading will return NodeJS, Homebridge and the Homebridge UI to the version bundled within the apt package. You can view the release manifest of older versions from this page on GitHub - https://github.com/homebridge/homebridge-apt-pkg/releases
86
-
87
- If you need to install an older version or previous release of Homebridge:
88
-
89
- ```bash
90
- sudo apt update
91
- apt list -a homebridge # Shows available versions
92
- sudo apt install homebridge=<version>
93
- ```
94
-
95
- NOTE: apt versions do not start with a v, while the verion on GitHub starts with v
96
- ## About
97
-
98
- This package contains a self-contained Node.js installation and environment for Homebridge to run in.
99
-
100
- The bundled Node.js runtime is isolated and not exposed on the default PATH.
101
-
102
- To assist in debugging, a shell command `hb-shell` is added to the default PATH to allow the user to enter the Homebridge Shell Environment. When in the Homebridge Shell, users will have access to `node` and `npm` as they would expect.
103
-
104
- ```shell
105
- # Node.js and package scripts are stored in /opt/homebridge
106
-
107
- /opt/homebridge # This directory is managed by the homebridge apt package and the contents are overwritten during updates
108
- |-- bin
109
- | |-- node
110
- | |-- npm
111
- | |-- npx
112
- |-- lib
113
- | |-- node_modules
114
- | |-- npm
115
- | |-- homebridge-config-ui-x
116
- |-- bashrc
117
- |-- bashrc-hb-shell
118
- |-- CHANGELOG.md
119
- |-- hb-shell
120
- |-- LICENSE
121
- |-- README.md
122
- |-- source.sh
123
- |-- start.sh
124
-
125
- # "hb-shell" command to allow user access to the Homebridge env from the cli
126
- /usr/local/bin # These links are managed by the homebridge apt package and the contents are overwritten during updates
127
- |-- hb-service -> /opt/homebridge/hb-service-shim
128
- |-- hb-shell -> /opt/homebridge/hb-shell
129
-
130
- # homebridge storage directory, plugins are stored in node_modules
131
- /var/lib/homebridge
132
- |-- node_modules
133
- | |-- homebridge
134
- | |-- homebridge-dummy
135
- | |-- homebridge-hue
136
- |-- accessories
137
- |-- persist
138
- |-- config.json
139
- ```
140
-
141
- ## Customising Homebridge
142
-
143
- ### Environment Variables
144
-
145
- The Homebridge systemd service will automatically load any environment variables defined in `/etc/default/homebridge`.
146
-
147
- This file can be used to customize the behavior of Homebridge or its plugins at runtime.
148
-
149
- After making changes to the file, please use `Restart HB Service & UI` for your changes to be picked up.
150
-
151
- #### Example
152
-
153
- To disable the terminal feature in the Homebridge UI, add the following:
154
-
155
- ```bash
156
- # /etc/default/homebridge
157
- HOMEBRIDGE_CONFIG_UI_TERMINAL=0
158
- ```
159
- ### Customising the Systemd Service File
160
-
161
- You should not edit the service file included with the package as any changes made here will be overwritten during updates.
162
-
163
- You should use a systemd override file to make any changes.
164
-
165
- To preview the current unit file run:
166
-
167
- ```bash
168
- cat /lib/systemd/system/homebridge.service
169
- ```
170
-
171
- Use systemctl to create an override file at `/etc/systemd/system/homebridge.service.d/override.conf`:
172
-
173
- ```bash
174
- sudo systemctl edit homebridge
175
- ```
176
-
177
- Add the config items you want to override. **You should only add the settings you want to change.**
178
-
179
- For example, to change the user the service runs as:
180
-
181
- ```bash
182
- [Service]
183
- User=pi # replace with the user you want to run the service as
184
- ```
185
-
186
- Or to add additional startup flags to Homebridge:
187
-
188
- ```bash
189
- [Service]
190
- ExecStart=
191
- ExecStart=/opt/homebridge/start.sh -T
192
- ```
193
-
194
- Or to run as root, and allow the UI to shutdown/restart the host:
195
-
196
- ```
197
- [Service]
198
- User=root
199
- ExecStart=
200
- ExecStart=/opt/homebridge/start.sh --allow-root
201
- Environment="UIX_CAN_SHUTDOWN_RESTART_HOST=1"
202
- ```
203
-
204
- Save the file and restart Homebridge:
205
-
206
- ```bash
207
- sudo systemctl restart homebridge
208
- ```
209
-
210
- To revert any changes run:
211
-
212
- ```bash
213
- sudo systemctl revert homebridge
214
- ```
215
-
216
- ## Packaging Notes
217
-
218
- Package scripts workflow (preinst, postinst, postrm etc.):
219
-
220
- https://wiki.debian.org/MaintainerScripts
221
-
222
- ## License
223
-
224
- Copyright (C) 2024 homebridge
225
-
226
- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
227
-
228
- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the [GNU General Public License](./LICENSE) for more details.
package/README.npm.md ADDED
@@ -0,0 +1,20 @@
1
+ # @homebridge/homebridge-apt-pkg
2
+
3
+ This is a **stub package** used to track versions of the Homebridge APT package via npm and Dependabot.
4
+
5
+ > **Note:** This package does **not** contain any actual code or binaries.
6
+
7
+ ## 🔗 Related Projects
8
+
9
+ - 🧩 APT Releases: https://github.com/homebridge/homebridge-apt-pkg/releases
10
+ - 🐳 Docker Image: https://github.com/homebridge/docker-homebridge
11
+ - 🏠 Homebridge Project: https://homebridge.io
12
+
13
+ ## 🛠 Purpose
14
+
15
+ This package exists solely to:
16
+ - Allow `dependabot` to track version updates via GitHub Releases.
17
+ - Help downstream projects automate version syncing (e.g., Docker builds).
18
+
19
+ ---
20
+
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@homebridge/homebridge-apt-pkg",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Stub package for tracking Homebridge APT release versions via npm",
5
5
  "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "prepublishOnly": "cp README.npm.md README.md",
8
+ "postpublish": "git restore README.md || true"
7
9
  },
10
+ "files": [
11
+ "README.md"
12
+ ],
8
13
  "repository": {
9
14
  "type": "git",
10
- "url": "https://github.com/homebridge/homebridge-apt-pkg"
15
+ "url": "git+https://github.com/homebridge/homebridge-apt-pkg.git"
11
16
  },
12
17
  "author": "Homebridge",
13
18
  "license": "ISC",
@@ -17,8 +22,8 @@
17
22
  "homepage": "https://github.com/homebridge/homebridge-apt-pkg#readme",
18
23
  "private": false,
19
24
  "dependencies": {
20
- "homebridge": "^1.9.0",
21
- "homebridge-config-ui-x": "^4.75.0",
25
+ "homebridge": "^1.10.0",
26
+ "homebridge-config-ui-x": "^4.76.0",
22
27
  "node": "^22.16.0"
23
28
  }
24
- }
29
+ }
package/.npmignore DELETED
@@ -1,4 +0,0 @@
1
- # Just a stub package.json to prevent npm from publishing this directory
2
- *
3
- !package.json
4
- !.npmignore