File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 1313
1414This script will generate the Debian package files and place them in the
1515dist/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
1826import 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 ()
You can’t perform that action at this time.
0 commit comments