Skip to content

Commit

Permalink
extensions: simplifies the platform plug
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaDghosh committed Oct 10, 2024
1 parent fa644b4 commit 3d267d3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions extensions/desktop/command-chain/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ GPU_WRAPPER :=
scripts = hooks-configure-fonts desktop-launch run $(GPU_WRAPPER)

*:
sed -e "s/%PLATFORM_PLUG%/$${PLATFORM_PLUG:?}/" -i desktop-launch hooks-configure-fonts
install -D -m755 "$@" "$(BIN_DIR)"/"$@"

install: $(scripts)
Expand Down
2 changes: 1 addition & 1 deletion extensions/desktop/command-chain/desktop-launch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

set -- "${SNAP}/gnome-platform/command-chain/desktop-launch" "$@"
set -- "${SNAP}/%PLATFORM_PLUG%/command-chain/desktop-launch" "$@"
# shellcheck source=/dev/null
source "${SNAP}/snap/command-chain/run"
2 changes: 1 addition & 1 deletion extensions/desktop/command-chain/hooks-configure-fonts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

set -- "${SNAP}/gnome-platform/command-chain/hooks-configure-fonts" "$@"
set -- "${SNAP}/%PLATFORM_PLUG%/command-chain/hooks-configure-fonts" "$@"
# shellcheck source=/dev/null
source "${SNAP}/snap/command-chain/run"
1 change: 1 addition & 0 deletions snapcraft/extensions/gnome.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ def get_parts_snippet(self) -> Dict[str, Any]:
"source": str(source),
"plugin": "make",
"build-snaps": [sdk_snap],
"make-parameters": ["PLATFORM_PLUG=gnome-platform"],
**gpu_opts,
},
}
Expand Down

0 comments on commit 3d267d3

Please sign in to comment.