From 306dc8fe53d623077d691fdf24b0ec9b8398eb2f Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 16 Mar 2024 11:08:47 +0100 Subject: [PATCH] postinstall: use bundled yarn We do not depend on yarn for the package, so yarn may not be in $PATH However, we do ship a bundled version of yarn, so use that instead --- debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 2a7906d..acb711f 100755 --- a/debian/postinst +++ b/debian/postinst @@ -10,7 +10,7 @@ install -dm 750 "$garbage_folder" # in theory the devdir should be enough but let's future proof it export npm_config_devdir="$garbage_folder" export HOME="$garbage_folder" -yarn run install # download or build the c dep +/usr/lib/thelounge/node_modules/yarn/bin/yarn run install # download or build the c dep ret=$? rm -rf "$garbage_folder" popd || exit 1