feat: download and include dotnet runtime in the appimage on linux (#1289)

This commit is contained in:
rs189
2025-07-14 12:42:36 +09:00
committed by GitHub
parent f4f78bb5ec
commit 40861ef120
3 changed files with 145 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
"localization": "node ./src/localization/localizationHelperCLI.js",
"prod": "cross-env PLATFORM=windows webpack --config webpack.config.js --mode production",
"prod-linux": "cross-env PLATFORM=linux webpack --config webpack.config.js --mode production",
"build-electron": "node ./src-electron/patch-package-version.js && electron-builder --publish never",
"build-electron": "node ./src-electron/download-dotnet-runtime.js && node ./src-electron/patch-package-version.js && electron-builder --publish never",
"postbuild-electron": "node ./src-electron/patch-node-api-dotnet.js && node ./src-electron/rename-builds.js",
"start-electron": "electron ."
},
@@ -91,7 +91,8 @@
"node_modules/node-api-dotnet/**/*",
"node_modules/node-api-dotnet/net9.0/**/*",
"build/Electron/*",
"build/Electron/**"
"build/Electron/**",
"build/Electron/dotnet-runtime/**/*"
],
"extraResources": [
{
@@ -109,6 +110,10 @@
{
"from": "node_modules/node-api-dotnet/net9.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll",
"to": "app.asar.unpacked/node_modules/node-api-dotnet/net9.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll"
},
{
"from": "build/Electron/dotnet-runtime/",
"to": "dotnet-runtime/"
}
],
"directories": {
@@ -140,4 +145,4 @@
"hazardous": "^0.3.0",
"node-api-dotnet": "^0.9.12"
}
}
}