diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-06-02 10:52:32 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-06-02 11:00:52 -0400 |
commit | cce52591f8e00ae41ae380a597d620b0856d004d (patch) | |
tree | 5df72538fd9b18f550ef7cedf42cc9990cc3ac7a /recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb | |
parent | de1dccae31b3c7c62f0e19102b7223d747f413ed (diff) |
Do not hard-code Flutter version and runtime type
Rework the flutter-homescreen and flutter-cluster-dashboard systemd
units to get the Flutter version and runtime type from the environment
file installed by the new agl-flutter-env recipe, and update their
JSON configuration files to remove the hardcoding of their bundle
paths.
Bug-AGL: SPEC-4819
Change-Id: I841db2cbb3acfe4aad173e9b8aa25ff2e201c2e2
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb')
-rw-r--r-- | recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb b/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb index 2effcfedc..b3076494d 100644 --- a/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb +++ b/recipes-demo/flutter-cluster-dashboard/flutter-cluster-dashboard_git.bb @@ -33,38 +33,38 @@ CLUSTER_DEMO_VISS_HOSTNAME ??= "192.168.10.2" APP_CONFIG = "flutter_cluster_dashboard_on_bg.json" do_install:append() { - install -D -m 0644 ${WORKDIR}/flutter-cluster-dashboard.service ${D}${systemd_user_unitdir}/flutter-cluster-dashboard.service + install -D -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_user_unitdir}/${BPN}.service install -d ${D}${systemd_user_unitdir}/agl-session.target.wants - ln -s ../flutter-cluster-dashboard.service ${D}${systemd_user_unitdir}/agl-session.target.wants/flutter-cluster-dashboard.service + ln -s ../${BPN}.service ${D}${systemd_user_unitdir}/agl-session.target.wants/${BPN}.service - install -D -m 0644 ${WORKDIR}/${APP_CONFIG} ${D}${datadir}/flutter/default.json + install -D -m 0644 ${WORKDIR}/${APP_CONFIG} ${D}${datadir}/flutter/${BPN}.json install -d ${D}${sysconfdir}/xdg/AGL - install -m 0644 ${WORKDIR}/flutter-cluster-dashboard.yaml \ - ${D}${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.default - install -m 0644 ${WORKDIR}/flutter-cluster-dashboard.yaml.demo ${D}${sysconfdir}/xdg/AGL/ - sed -i "s/^hostname: .*/hostname: ${CLUSTER_DEMO_VISS_HOSTNAME}/" ${D}${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.demo + install -m 0644 ${WORKDIR}/${BPN}.yaml ${D}${sysconfdir}/xdg/AGL/${BPN}.yaml.default + install -m 0644 ${WORKDIR}/${BPN}.yaml.demo ${D}${sysconfdir}/xdg/AGL/ + sed -i "s/^hostname: .*/hostname: ${CLUSTER_DEMO_VISS_HOSTNAME}/" ${D}${sysconfdir}/xdg/AGL/${BPN}.yaml.demo install -m 0755 -d ${D}${sysconfdir}/default/ echo 'OPENROUTE_API_KEY:${OPENROUTE_API_KEY}' >> ${D}${sysconfdir}/default/openroutekey } -ALTERNATIVE_LINK_NAME[flutter-cluster-dashboard.yaml] = "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml" +ALTERNATIVE_LINK_NAME[flutter-cluster-dashboard.yaml] = "${sysconfdir}/xdg/AGL/${BPN}.yaml" FILES:${PN} += "${datadir} ${systemd_user_unitdir} ${sysconfdir}/default/" +RDEPENDS:${PN} += "flutter-auto agl-flutter-env" PACKAGE_BEFORE_PN += "${PN}-conf ${PN}-conf-demo" -FILES:${PN}-conf += "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.default" +FILES:${PN}-conf += "${sysconfdir}/xdg/AGL/${BPN}.yaml.default" RDEPENDS:${PN}-conf = "${PN}" -RPROVIDES:${PN}-conf = "flutter-cluster-dashboard.yaml" +RPROVIDES:${PN}-conf = "${BPN}.yaml" RCONFLICTS:${PN}-conf = "${PN}-conf-demo" -ALTERNATIVE:${PN}-conf = "flutter-cluster-dashboard.yaml" -ALTERNATIVE_TARGET_${PN}-conf = "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.default" +ALTERNATIVE:${PN}-conf = "${BPN}.yaml" +ALTERNATIVE_TARGET_${PN}-conf = "${sysconfdir}/xdg/AGL/${BPN}.yaml.default" -FILES:${PN}-conf-demo += "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.demo" +FILES:${PN}-conf-demo += "${sysconfdir}/xdg/AGL/${BPN}.yaml.demo" RDEPENDS:${PN}-conf-demo = "${PN}" -RPROVIDES:${PN}-conf-demo = "flutter-cluster-dashboard.yaml" +RPROVIDES:${PN}-conf-demo = "${BPN}.yaml" RCONFLICTS:${PN}-conf-demo = "${PN}-conf" -ALTERNATIVE:${PN}-conf-demo = "flutter-cluster-dashboard.yaml" -ALTERNATIVE_TARGET_${PN}-conf-demo = "${sysconfdir}/xdg/AGL/flutter-cluster-dashboard.yaml.demo" +ALTERNATIVE:${PN}-conf-demo = "${BPN}.yaml" +ALTERNATIVE_TARGET_${PN}-conf-demo = "${sysconfdir}/xdg/AGL/${BPN}.yaml.demo" |