Skip to content

Commit

Permalink
Add launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
jpnurmi committed Oct 19, 2023
1 parent c601ea1 commit d511a8e
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
3 changes: 1 addition & 2 deletions kas-jpos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ repos:
url: https://github.com/kraj/meta-clang.git
path: layers/meta-clang
meta-flutter:
url: https://github.com/sony/meta-flutter.git
branch: main
url: https://github.com/meta-flutter/meta-flutter.git
path: layers/meta-flutter
meta-qt6:
url: https://code.qt.io/yocto/meta-qt6.git
Expand Down
4 changes: 4 additions & 0 deletions recipes-graphics/wayland/files/weston.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#gbm-format=xrgb2101010
require-input=false
idle-time=0
shell=kiosk-shell.so

[autolaunch]
path=/usr/bin/jpos-launcher

#[shell]
#background-image=/usr/share/backgrounds/gnome/Aqua.jpg
Expand Down
7 changes: 7 additions & 0 deletions recipes-jpos/jpos-launcher/files/jpos-launcher.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

JPOS_LAUNCHER=/usr/share/jpos_launcher/@FLUTTER_SDK_VERSION@/release

export LD_LIBRARY_PATH=$JPOS_LAUNCHER/lib

/usr/bin/flutter-client --bundle=$JPOS_LAUNCHER --fullscreen
29 changes: 29 additions & 0 deletions recipes-jpos/jpos-launcher/jpos-launcher_git.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
SUMMARY = "jpOS Launcher"
HOMEPAGE = "https://github.com/jpnurmi/jpos-launcher"
LICENSE = "GPL-3.0-only"

inherit flutter-app

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI = "\
git://github.com/jpnurmi/jpos-launcher.git;protocol=https;branch=main \
file://jpos-launcher.sh \
"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
LIC_FILES_CHKSUM = "file://LICENSES/GPL-3.0-only.txt;md5=75d892af193fd5a298f724c4377d8f62"

PUBSPEC_APPNAME = "jpos_launcher"

RDEPENDS:${PN}:append = "\
flutter-wayland-client \
"

FILES:${PN}:append = " ${bindir}/jpos-launcher"

do_install:append() {
sed -i -e 's#[@]FLUTTER_SDK_VERSION[@]#${FLUTTER_SDK_VERSION}#' ${WORKDIR}/jpos-launcher.sh

install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/jpos-launcher.sh ${D}${bindir}/jpos-launcher
}
1 change: 1 addition & 0 deletions recipes-jpos/packagegroups/packagegroup-jpos.bb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ LICENSE = "GPL-3.0-only"
inherit packagegroup

RDEPENDS:${PN} = "\
jpos-launcher \
jpos-settings \
jpos-weather \
wpa-cute \
Expand Down

0 comments on commit d511a8e

Please sign in to comment.