Skip to content

Commit 9111c5c

Browse files
committed
Fix: Restore Flatpak manifest with proper content
- Fixed empty manifest file issue that was causing build failures - Simplified launcher script creation to avoid YAML syntax errors - Removed complex heredoc structures that were causing parsing issues - Uses straightforward echo commands to build launcher and desktop files - Validated YAML syntax and confirmed file has proper content This should resolve the 'Empty manifest file' error in CI/CD builds.
1 parent a322a36 commit 9111c5c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
app-id: org.routeplanner.RoutePlanner
2+
runtime: org.freedesktop.Platform
3+
runtime-version: "23.08"
4+
sdk: org.freedesktop.Sdk
5+
command: route-planner
6+
finish-args:
7+
- --share=network
8+
- --share=ipc
9+
- --socket=fallback-x11
10+
- --socket=wayland
11+
- --device=dri
12+
- --filesystem=home
13+
- --env=QT_QPA_PLATFORM=wayland;xcb
14+
15+
modules:
16+
- name: route-planner
17+
buildsystem: simple
18+
build-commands:
19+
- cp -r . ${FLATPAK_DEST}/lib/route-planner/
20+
- mkdir -p ${FLATPAK_DEST}/bin
21+
- echo '#!/bin/bash' > ${FLATPAK_DEST}/bin/route-planner
22+
- echo 'cd "${FLATPAK_DEST}/lib/route-planner"' >> ${FLATPAK_DEST}/bin/route-planner
23+
- echo 'export PYTHONPATH="${FLATPAK_DEST}/lib/route-planner:${PYTHONPATH}"' >> ${FLATPAK_DEST}/bin/route-planner
24+
- echo 'python3 -m route_planner.core "$@"' >> ${FLATPAK_DEST}/bin/route-planner
25+
- chmod +x ${FLATPAK_DEST}/bin/route-planner
26+
- mkdir -p ${FLATPAK_DEST}/share/applications
27+
- echo '[Desktop Entry]' > ${FLATPAK_DEST}/share/applications/org.routeplanner.RoutePlanner.desktop
28+
- echo 'Name=Route Planner' >> ${FLATPAK_DEST}/share/applications/org.routeplanner.RoutePlanner.desktop
29+
- echo 'Comment=Delivery Route Optimizer' >> ${FLATPAK_DEST}/share/applications/org.routeplanner.RoutePlanner.desktop
30+
- echo 'Exec=route-planner' >> ${FLATPAK_DEST}/share/applications/org.routeplanner.RoutePlanner.desktop
31+
- echo 'Terminal=false' >> ${FLATPAK_DEST}/share/applications/org.routeplanner.RoutePlanner.desktop
32+
- echo 'Type=Application' >> ${FLATPAK_DEST}/share/applications/org.routeplanner.RoutePlanner.desktop
33+
- echo 'Categories=Office;Utility;' >> ${FLATPAK_DEST}/share/applications/org.routeplanner.RoutePlanner.desktop
34+
sources:
35+
- type: dir
36+
path: .

0 commit comments

Comments
 (0)