Skip to content

Commit dd0b952

Browse files
committed
Move the build_deb_docker.py under etc/scripts and update comment #341
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent db2dd61 commit dd0b952

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
1414
This script will generate the Debian package files and place them in the
1515
dist/debian/ directory.
16+
17+
Once the debian package is generated, you can install it using:
18+
19+
sudo apt install ./<package>.deb
20+
21+
Note: The ./ is important - it tells apt to install from a local file
22+
rather than searching repositories.
23+
Replace the above path with the actual path to the generated debian file.
1624
"""
1725

1826
import os
@@ -127,4 +135,9 @@ def build_deb_with_docker():
127135
print("Error: Docker not found. Please install Docker first.", file=sys.stderr)
128136
sys.exit(1)
129137

138+
# Get the directory where the current script is located (which is located in etc/scripts)
139+
script_dir = Path(__file__).parent.resolve()
140+
# Go up two levels from etc/scripts/
141+
project_root = script_dir.parent.parent
142+
os.chdir(project_root)
130143
build_deb_with_docker()

0 commit comments

Comments
 (0)