Ver código fonte

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

* node16: Builds on node v16.13.1

* node16: Builds on CentOS 8
key-networks 3 anos atrás
pai
commit
d05963695b
3 arquivos alterados com 5 adições e 5 exclusões
  1. 1 1
      build/binding.gyp.patch
  2. 3 3
      build/build.sh
  3. 1 1
      src/package.json

+ 1 - 1
build/binding.gyp.patch

@@ -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": {

+ 3 - 3
build/build.sh

@@ -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
 

+ 1 - 1
src/package.json

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