From 5aae625a9dd5db4379b9947eec49913974842e60 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 28 Jan 2024 11:04:26 +0100 Subject: [PATCH 1/2] bump node to 18 --- .github/workflows/build.yml | 1 - debian/control | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5772c6..6c939d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,6 @@ jobs: strategy: matrix: node_version: [ - 16.x, # EOL: April 2024 18.x, # EOL: April 2025 20.x, # EOL: April 2026 ] diff --git a/debian/control b/debian/control index db4f55f..7b43ffb 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Version: 4.4.1 Section: net Priority: optional Architecture: all -Depends: nodejs (>= 16.0.0), bash, init-system-helpers +Depends: nodejs (>= 18.0.0), bash, init-system-helpers Recommends: python3, build-essential Maintainer: The Lounge maintainers team Description: A self-hosted, web-based IRC client From f218c9c634d48d3f4d816fadcb9926ac2c9e4c81 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sun, 28 Jan 2024 12:20:18 +0100 Subject: [PATCH 2/2] 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