mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
Update Linux build to .NET 9.0
This commit is contained in:
4
.github/workflows/github_actions.yml
vendored
4
.github/workflows/github_actions.yml
vendored
@@ -51,10 +51,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup .NET 8
|
||||
- name: Setup .NET 9
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: "8.0.x"
|
||||
dotnet-version: "9.0.x"
|
||||
- name: Set version
|
||||
run: |
|
||||
echo "${{ needs.set_version.outputs.version }}" > Version
|
||||
|
||||
@@ -84,12 +84,12 @@
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CefSharp.OffScreen.NETCore" Version="131.3.50" />
|
||||
<PackageReference Include="CefSharp.WinForms.NETCore" Version="131.3.50" />
|
||||
<PackageReference Include="CefSharp.OffScreen.NETCore" Version="132.3.11" />
|
||||
<PackageReference Include="CefSharp.WinForms.NETCore" Version="132.3.11" />
|
||||
<PackageReference Include="DiscordRichPresence" Version="1.2.1.24" />
|
||||
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog" Version="5.3.4" />
|
||||
<PackageReference Include="NLog" Version="5.4.0" />
|
||||
<PackageReference Include="SharpDX.Direct3D11" Version="4.2.0" />
|
||||
<PackageReference Include="SharpDX.Mathematics" Version="4.2.0" />
|
||||
<PackageReference Include="sqlite-net-pcl" Version="1.9.172" />
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
</PropertyGroup>
|
||||
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<Platforms>x64</Platforms>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
@@ -92,12 +92,12 @@
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.JavaScript.NodeApi" Version="0.8.20" />
|
||||
<PackageReference Include="Microsoft.JavaScript.NodeApi.Generator" Version="0.8.20" />
|
||||
<PackageReference Include="Microsoft.JavaScript.NodeApi" Version="0.9.1" />
|
||||
<PackageReference Include="Microsoft.JavaScript.NodeApi.Generator" Version="0.9.1" />
|
||||
<PackageReference Include="DiscordRichPresence" Version="1.2.1.24" />
|
||||
<PackageReference Include="Microsoft.Toolkit.Uwp.Notifications" Version="7.1.3" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog" Version="5.3.4" />
|
||||
<PackageReference Include="NLog" Version="5.4.0" />
|
||||
<PackageReference Include="SharpDX.Direct3D11" Version="4.2.0" />
|
||||
<PackageReference Include="SharpDX.Mathematics" Version="4.2.0" />
|
||||
<PackageReference Include="sqlite-net-pcl" Version="1.9.172" />
|
||||
|
||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -8,7 +8,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"hazardous": "^0.3.0",
|
||||
"node-api-dotnet": "^0.8.19"
|
||||
"node-api-dotnet": "^0.9.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/eslint-parser": "^7.25.9",
|
||||
@@ -7876,9 +7876,9 @@
|
||||
"optional": true
|
||||
},
|
||||
"node_modules/node-api-dotnet": {
|
||||
"version": "0.8.19",
|
||||
"resolved": "https://registry.npmjs.org/node-api-dotnet/-/node-api-dotnet-0.8.19.tgz",
|
||||
"integrity": "sha512-78rLSmzevFYvQo0E3UC57Q7oalgnN7YmsZpmhUuCwU2JAt8ro3F3JV1tabAsnmBC1votk2xwTQ3tLzdPTPzcvg==",
|
||||
"version": "0.9.1",
|
||||
"resolved": "https://registry.npmjs.org/node-api-dotnet/-/node-api-dotnet-0.9.1.tgz",
|
||||
"integrity": "sha512-Y5rzYs7Ek3pZ2HXYGRpr0cciU7Zb/7TF75JKpmZ7ZofsDWGaqK3xM46510Vk0UXQwSekIKbUcAZlpaPpZravsA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/node-api-version": {
|
||||
|
||||
15
package.json
15
package.json
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"name": "VRCX",
|
||||
"description": "Friendship management tool for VRChat",
|
||||
"private": true,
|
||||
"main": "src-electron/main.js",
|
||||
"scripts": {
|
||||
@@ -19,7 +20,7 @@
|
||||
"keywords": [
|
||||
"vrchat"
|
||||
],
|
||||
"author": "pypy <git@pypy.moe>",
|
||||
"author": "VRCX Team",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/vrcx-team/VRCX/issues"
|
||||
@@ -82,7 +83,7 @@
|
||||
],
|
||||
"asarUnpack": [
|
||||
"node_modules/node-api-dotnet/**/*",
|
||||
"node_modules/node-api-dotnet/net8.0/**/*",
|
||||
"node_modules/node-api-dotnet/net9.0/**/*",
|
||||
"build/Electron/*",
|
||||
"build/Electron/**"
|
||||
],
|
||||
@@ -96,12 +97,12 @@
|
||||
"to": "app.asar.unpacked/build/Electron/"
|
||||
},
|
||||
{
|
||||
"from": "node_modules/node-api-dotnet/net8.0/Microsoft.JavaScript.NodeApi.dll",
|
||||
"to": "app.asar.unpacked/node_modules/node-api-dotnet/net8.0/Microsoft.JavaScript.NodeApi.dll"
|
||||
"from": "node_modules/node-api-dotnet/net9.0/Microsoft.JavaScript.NodeApi.dll",
|
||||
"to": "app.asar.unpacked/node_modules/node-api-dotnet/net9.0/Microsoft.JavaScript.NodeApi.dll"
|
||||
},
|
||||
{
|
||||
"from": "node_modules/node-api-dotnet/net8.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll",
|
||||
"to": "app.asar.unpacked/node_modules/node-api-dotnet/net8.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll"
|
||||
"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"
|
||||
}
|
||||
],
|
||||
"directories": {
|
||||
@@ -129,6 +130,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"hazardous": "^0.3.0",
|
||||
"node-api-dotnet": "^0.8.19"
|
||||
"node-api-dotnet": "^0.9.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const dotnet = require('node-api-dotnet/net8.0');
|
||||
const dotnet = require('node-api-dotnet/net9.0');
|
||||
|
||||
class InteropApi {
|
||||
constructor() {
|
||||
|
||||
@@ -14,7 +14,10 @@ const fs = require('fs');
|
||||
const https = require('https');
|
||||
|
||||
if (!isDotNetInstalled()) {
|
||||
dialog.showErrorBox('VRCX', 'Please install .NET 8.0 Runtime to run VRCX.');
|
||||
dialog.showErrorBox(
|
||||
'VRCX',
|
||||
'Please install .NET 9.0 Runtime "dotnet-runtime-9.0" to run VRCX.'
|
||||
);
|
||||
app.quit();
|
||||
return;
|
||||
}
|
||||
@@ -508,7 +511,7 @@ function isDotNetInstalled() {
|
||||
encoding: 'utf-8'
|
||||
}
|
||||
);
|
||||
return result.stdout?.includes('.NETCore.App 8.0');
|
||||
return result.stdout?.includes('.NETCore.App 9.0');
|
||||
}
|
||||
|
||||
function tryCopyFromWinePrefix() {
|
||||
|
||||
Reference in New Issue
Block a user