Skip to content

Commit 11f5f13

Browse files
committed
Allow running plugins which use linuxdeploy internally
Also downloads the Qt plugin which is used by the grantlee5 plugin.
1 parent 97df7fc commit 11f5f13

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212

1313
- name: Install dependencies
14-
run: sudo apt-get install -y libgrantlee5-dev
14+
run: sudo apt-get install -y libgrantlee5-dev qt5-default qtdeclarative5-dev-tools
1515

1616
- name: Lint test script
1717
run: shellcheck ./tests/test-plugins.sh

tests/test-plugins.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,27 @@
33
set -eo pipefail
44

55
repodir="${REPODIR:-"$(git rev-parse --show-toplevel)"}"
6-
appdir="${APPDIR:-"$(mktemp --tmpdir --directory AppDir.XXXXXXXX)"}"
6+
7+
tempdir="$(mktemp --tmpdir --directory linuxdeploy-misc-plugin-XXXXX)"
8+
9+
_cleanup() {
10+
[[ -d "$tempdir" ]] && rm -r "$tempdir"
11+
}
12+
trap _cleanup EXIT
13+
14+
# allow running plugins which require linuxdeploy internally
15+
pushd "$tempdir" &>/dev/null
16+
echo -e -n "\033[1mDownloading linuxdeploy and plugins...\033[0m"
17+
wget -qN https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
18+
wget -qN https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
19+
chmod +x linuxdeploy*
20+
popd &>/dev/null
21+
22+
export LINUXDEPLOY="$tempdir"/linuxdeploy-x86_64.AppImage
23+
24+
echo "done"
25+
26+
appdir="${APPDIR:-$tempdir/AppDir}"
727
count=0
828
failed=0
929

0 commit comments

Comments
 (0)