node16: Builds on node v16.13.1 (#79)

* node16: Builds on node v16.13.1

* node16: Builds on CentOS 8
This commit is contained in:
key-networks 2021-12-22 19:43:17 +08:00 committed by GitHub
parent f76ba8b6a8
commit d05963695b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@
],
"cflags+": ["-Wno-cast-function-type"],
"include_dirs+": ["<!(node -e \"require('nan')\")"],
+ "libraries": ["/usr/lib/gcc/x86_64-redhat-linux/10/libstdc++.a"],
+ "libraries": ["/usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.a"],
"dependencies": ["libargon2"],
"configurations": {
"Debug": {

View File

@ -24,9 +24,9 @@ LICENSE='GPLv3'
BINDINGGYP='node_modules/argon2/binding.gyp'
NODE_VER='v14'
NODE_VER='v16'
if [ ! -f /usr/lib/gcc/x86_64-redhat-linux/10/libstdc++.a ]; then
if [ ! -f /usr/lib/gcc/x86_64-redhat-linux/8/libstdc++.a ]; then
echo "You must install libstdc++-static"
exit 1
fi
@ -75,7 +75,7 @@ if [ $? -ne 0 ]; then
fi
popd
pkg -c ./package.json -t node14-linux-x64 bin/www -o $BUILD_DIR/ztncui
pkg -c ./package.json -t node16-linux-x64 bin/www -o $BUILD_DIR/ztncui
popd

View File

@ -1,6 +1,6 @@
{
"name": "ztncui",
"version": "0.7.2",
"version": "0.8.4",
"private": true,
"scripts": {
"start": "node ./bin/www",