Skip to content

Commit 7511c32

Browse files
committed
Update update-nodejs-and-nodered
Bump to latest versions - start to add node24
1 parent ced95f3 commit 7511c32

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

deb/update-nodejs-and-nodered

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ tgta16=16.20.2 # need armv6l latest from https://unofficial-builds.nodejs.org/
2626
tgtl16=16.20.2 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
2727
tgta18=18.20.8 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
2828
tgtl18=18.20.8 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
29-
tgta20=20.19.4 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
30-
tgtl20=20.19.4 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
31-
tgta22=22.19.0 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
32-
tgtl22=None # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
29+
tgta20=20.19.5 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
30+
tgtl20=20.19.5 # need x86 latest from https://unofficial-builds.nodejs.org/download/release/
31+
tgta22=22.21.0 # need armv6l latest from https://unofficial-builds.nodejs.org/download/release/
32+
tgtl22=None
33+
tgta24=None
34+
tgtl24=None
3335

3436
usage() {
3537
cat << EOL
@@ -111,6 +113,10 @@ if [ $# -gt 0 ]; then
111113
NODE_VERSION="22"
112114
shift
113115
;;
116+
--node24)
117+
NODE_VERSION="24"
118+
shift
119+
;;
114120
--restart)
115121
RESTART="y"
116122
shift
@@ -262,14 +268,14 @@ if [[ "$(uname -m)" =~ "i686" ]] || [[ "$(uname -m)" =~ "x86_64" && "$(getconf L
262268
echo " There are no known later Nodejs builds for 32 bit systems."
263269
echo " "
264270
echo "************************************************************"
265-
# elif uname -m | grep -q armv6l ; then
266-
# echo " "
267-
# echo "************************************************************"
268-
# echo " "
269-
# echo " Warning : Nodejs v20 goes EOL in April 2026."
270-
# echo " There are no known later Nodejs builds for Arm v6 systems."
271-
# echo " "
272-
# echo "************************************************************"
271+
elif uname -m | grep -q armv6l ; then
272+
echo " "
273+
echo "************************************************************"
274+
echo " "
275+
echo " Warning : Nodejs v22 goes EOL in April 2027."
276+
echo " There are no known later Nodejs builds for Arm v6 systems."
277+
echo " "
278+
echo "************************************************************"
273279
fi
274280
echo " "
275281
echo Node-RED update script for : $NODERED_USER@`hostname`
@@ -456,8 +462,11 @@ case $yn in
456462
tgtl=$tgtl20
457463
tgta=$tgta20
458464
elif [[ "$NODE_VERSION" == "22" ]]; then
459-
tgtl="None"
465+
tgtl=$tgtl22
460466
tgta=$tgta22
467+
elif [[ "$NODE_VERSION" == "24" ]]; then
468+
tgtl=$tgtl24
469+
tgta=$tgta24
461470
else
462471
tgtl=$tgtl20
463472
tgta=$tgta20

0 commit comments

Comments
 (0)