From 49dbe60c1e190aceb8055653140af810adef5314 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 28 Jan 2024 12:20:18 +0100 Subject: [PATCH] adjust to new sqlite3 dep management Sqlite switched from node-pre-gyp to prebuild + prebuild-install Hence we need to adapt the postinstall script --- debian/postinst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/postinst b/debian/postinst index bab1856..2a7906d 100755 --- a/debian/postinst +++ b/debian/postinst @@ -10,8 +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" -./node_modules/.bin/node-pre-gyp clean -./node_modules/.bin/node-pre-gyp install --fallback-to-build +yarn run install # download or build the c dep ret=$? rm -rf "$garbage_folder" popd || exit 1