From 1f91c35378b86d9911e09b10034cb38cd53be2f7 Mon Sep 17 00:00:00 2001 From: dannylin0711 Date: Fri, 23 Jun 2023 15:40:17 +0800 Subject: [PATCH] Update to NodeJS 16 --- build-arm-build.sh | 3 +- build-linux.sh | 2 +- build-win.ps1 | 7 ++- package.json | 103 +++++++++++++++++++++++---------------------- 4 files changed, 60 insertions(+), 55 deletions(-) diff --git a/build-arm-build.sh b/build-arm-build.sh index 0bd8c01..4439433 100644 --- a/build-arm-build.sh +++ b/build-arm-build.sh @@ -1,4 +1,5 @@ #!/bin/bash echo "Packing binaries" -npx pkg ./build-env -t node10.15.3-linux-armv7 -o ./build/asphyxia-core --options no-warnings +npx pkg ./build-env -t node16-linux-armv7 -o ./build/asphyxia-core --options no-warnings +npx pkg ./build-env -t node16-linux-arm64 -o ./build/asphyxia-core --options no-warnings diff --git a/build-linux.sh b/build-linux.sh index a644d82..4bfb19e 100644 --- a/build-linux.sh +++ b/build-linux.sh @@ -25,7 +25,7 @@ cp -r typescript ./node_modules/ echo "Packing binaries" cd .. -npx pkg ./build-env -t node12.16.1-linux-x64 -o ./build/asphyxia-core --options no-warnings +npx pkg ./build-env -t node16-linux-x64 -o ./build/asphyxia-core --options no-warnings echo "Compressing" diff --git a/build-win.ps1 b/build-win.ps1 index 3932d22..258544b 100644 --- a/build-win.ps1 +++ b/build-win.ps1 @@ -33,8 +33,11 @@ Set-Location -Path ".." # Packing Write-Output "Packing binaries" -npx pkg .\build-env -t "node12.16.1-win-x64,node12.16.1-win-x86" -o .\build\asphyxia-core --options no-warnings +npx pkg .\build-env -t "node16-win-x64" -o .\build\asphyxia-core-x64 --options no-warnings + # Packing zips Compress-Archive -Path ".\build\asphyxia-core-x64.exe", ".\plugins" -DestinationPath ".\build\asphyxia-core-win-x64.zip" -Force -Compress-Archive -Path ".\build\asphyxia-core-x86.exe", ".\plugins" -DestinationPath ".\build\asphyxia-core-win-x86.zip" -Force + +# Temporary remove x86 support, until solution found +# Compress-Archive -Path ".\build\asphyxia-core-x86.exe", ".\plugins" -DestinationPath ".\build\asphyxia-core-win-x86.zip" -Force diff --git a/package.json b/package.json index 9140ba2..aafed26 100644 --- a/package.json +++ b/package.json @@ -1,52 +1,53 @@ { - "name": "asphyxia-core", - "version": "0.0.1", - "description": "KONMAI FUN TIME", - "main": "./build/index.js", - "dependencies": { - "@seald-io/nedb": "^4.0.2", - "@types/argparse": "^1.0.38", - "@types/connect-flash": "0.0.35", - "@types/cookie-parser": "^1.4.2", - "@types/ejs": "^3.0.3", - "@types/express": "^4.17.6", - "@types/express-session": "^1.17.0", - "@types/get-caller-file": "^1.0.0", - "@types/ini": "^1.3.30", - "@types/lodash": "^4.14.153", - "@types/multer": "^1.4.4", - "@types/node": "^13.13.48", - "@types/pretty-bytes": "^5.2.0", - "@types/pug": "^2.0.4", - "@types/showdown": "^1.9.3", - "@types/sizeof": "^1.0.1", - "@vercel/ncc": "^0.28.3", - "argparse": "^1.0.10", - "body-parser": "^1.19.0", - "chalk": "^4.0.0", - "connect-flash": "^0.1.1", - "cookie-parser": "^1.4.5", - "ejs": "^3.1.2", - "express": "^4.17.1", - "express-session": "^1.17.1", - "fast-xml-parser": "^3.16.0", - "get-caller-file": "^2.0.5", - "hashids": "^2.2.1", - "iconv-lite": "^0.5.1", - "ini": "^1.3.8", - "lodash": "^4.17.21", - "memorystore": "^1.6.2", - "multer": "^1.4.2", - "open": "^7.0.4", - "pkg": "^4.5.1", - "prettier": "^2.0.5", - "pretty-bytes": "^5.6.0", - "pug": "^3.0.2", - "showdown": "^1.9.1", - "sizeof": "^1.0.0", - "ts-node": "^9.1.1", - "typedoc": "^0.22.15", - "typescript": "^4.2.3", - "winston": "^3.2.1" - } -} + "name": "asphyxia-core", + "version": "0.0.1", + "description": "KONMAI FUN TIME", + "main": "./build/index.js", + "dependencies": { + "@seald-io/nedb": "^4.0.2", + "@types/argparse": "^1.0.38", + "@types/connect-flash": "0.0.35", + "@types/cookie-parser": "^1.4.2", + "@types/ejs": "^3.0.3", + "@types/express": "^4.17.6", + "@types/express-session": "^1.17.0", + "@types/get-caller-file": "^1.0.0", + "@types/ini": "^1.3.30", + "@types/lodash": "^4.14.153", + "@types/multer": "^1.4.4", + "@types/node": "^13.13.48", + "@types/pretty-bytes": "^5.2.0", + "@types/pug": "^2.0.4", + "@types/showdown": "^1.9.3", + "@types/sizeof": "^1.0.1", + "@vercel/ncc": "^0.28.3", + "argparse": "^1.0.10", + "body-parser": "^1.19.0", + "chalk": "^4.0.0", + "connect-flash": "^0.1.1", + "cookie-parser": "^1.4.5", + "ejs": "^3.1.2", + "express": "^4.17.1", + "express-session": "^1.17.1", + "fast-xml-parser": "^3.16.0", + "get-caller-file": "^2.0.5", + "hashids": "^2.2.1", + "iconv-lite": "^0.5.1", + "ini": "^1.3.8", + "lodash": "^4.17.21", + "memorystore": "^1.6.2", + "multer": "^1.4.2", + "open": "^7.0.4", + "pkg": "^5.8.1", + "prettier": "^2.0.5", + "pretty-bytes": "^5.6.0", + "pug": "^3.0.2", + "showdown": "^1.9.1", + "sizeof": "^1.0.0", + "ts-node": "^9.1.1", + "typedoc": "^0.22.15", + "typescript": "^4.2.3", + "winston": "^3.2.1", + "resedit-cli": "^2.0.0" + } +} \ No newline at end of file