Skip to content

Commit d52decc

Browse files
committed
fix: Resolve critical logical errors in Flatpak manifest
- Add proper Python environment setup with pip installation - Fix sources path from '..' to '.' for correct project directory - Add PYTHONPATH export for proper module resolution - Remove non-existent icon reference from desktop file - Add missing PyQtWebEngine and other essential dependencies - Ensure proper Python package installation order These fixes address the 'Command not found' and JSON deserialization errors.
1 parent dd019d3 commit d52decc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

flatpak/org.routeplanner.RoutePlanner.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ finish-args:
1313
- --env=QT_QPA_PLATFORM=wayland;xcb
1414

1515
modules:
16+
- name: python3-pip
17+
buildsystem: simple
18+
build-commands:
19+
- python3 -m ensurepip --upgrade
20+
sources: []
21+
1622
- name: python3-requirements
1723
buildsystem: simple
1824
build-commands:
19-
- pip3 install --prefix=${FLATPAK_DEST} --no-deps PyQt5 folium networkx osmnx shapely
25+
- python3 -m pip install --prefix=${FLATPAK_DEST} PyQt5 PyQtWebEngine folium networkx osmnx shapely requests urllib3
2026
sources: []
2127

2228
- name: route-planner
@@ -28,6 +34,7 @@ modules:
2834
cat > ${FLATPAK_DEST}/bin/route-planner << 'EOF'
2935
#!/bin/bash
3036
cd ${FLATPAK_DEST}/lib/route-planner
37+
export PYTHONPATH=${FLATPAK_DEST}/lib/route-planner:${PYTHONPATH}
3138
python3 -m route_planner.core "$@"
3239
EOF
3340
- chmod +x ${FLATPAK_DEST}/bin/route-planner
@@ -38,7 +45,6 @@ modules:
3845
Name=Route Planner
3946
Comment=Delivery Route Optimizer
4047
Exec=route-planner
41-
Icon=org.routeplanner.RoutePlanner
4248
Terminal=false
4349
Type=Application
4450
Categories=Office;
@@ -63,4 +69,4 @@ modules:
6369
EOF
6470
sources:
6571
- type: dir
66-
path: ..
72+
path: .

0 commit comments

Comments
 (0)