Skip to content

Commit 215e29e

Browse files
committed
kuma-shell action: stage kuma-files' desktop entry from the app tree's one template
kumaui's desktop entry collapsed to one template with two substitutions: build.sh installs the dev copy with the binary in ~/.local/bin, this action stages the image copy with the binary in /usr/bin. The staged variant (kuma-files/kuma-files.desktop) is gone from the app tree; the template carries the full mimetype claim set and the %u field code, so the image's entry claims the same types the dev entry does.
1 parent 3308412 commit 215e29e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/actions/kuma-shell/action.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ runs:
129129
# write_context stages them as siblings too: the app's identity —
130130
# the launcher's entry and the icon it names — ships from the
131131
# tree that builds the app, not regenerated in the image repo.
132+
# The entry is the app tree's one template with one
133+
# substitution here: the binary lands at /usr/bin in the image
134+
# (the dev install is ~/.local/bin, same template, build.sh
135+
# substitutes that), and the mimetype claims are whatever the
136+
# app tree's open surface can render.
132137
cp target/release/kuma-shell target/release/kuma-greeter target/release/kuma-files \
133-
kuma-files/kuma-files.desktop kuma-files/packaging/kuma-files.png \
138+
kuma-files/packaging/kuma-files.png \
134139
"$GITHUB_WORKSPACE/${KUMA_DIR%/}/"
140+
sed "s|@BIN@|/usr/bin|" \
141+
kuma-files/packaging/kuma-files.desktop.in \
142+
> "$GITHUB_WORKSPACE/${KUMA_DIR%/}/kuma-files.desktop"

0 commit comments

Comments
 (0)