Update to NodeJS 16

This commit is contained in:
dannylin0711
2023-06-23 15:40:17 +08:00
parent e2ce1f470f
commit 1f91c35378
4 changed files with 60 additions and 55 deletions

View File

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

View File

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

View File

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

View File

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