Update to .NET 6
This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Setup Dotnet
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: '5.0.x'
|
||||
dotnet-version: '6.0.x'
|
||||
|
||||
- name: Setup MSBuild
|
||||
uses: microsoft/setup-msbuild@v1.0.3
|
||||
|
||||
@@ -21,10 +21,10 @@ This repository is just something I work on when bored, do not expect much at th
|
||||
If you are enrolled into the closed beta, you can download a fresh copy with [SteamRE/DepotDownloader](https://github.com/SteamRE/DepotDownloader).
|
||||
|
||||
```
|
||||
.\DepotDownloader.exe -app 1600360 -depot 1600361 -manifest 8099885118311987420 -username <username>
|
||||
.\DepotDownloader.exe -app 1600360 -depot 1600361 -manifest 720055916602660127 -username <username>
|
||||
```
|
||||
|
||||
This gives you the [exact copy](https://steamdb.info/depot/1600361/history/?changeid=M:8099885118311987420) that is used for this repository.
|
||||
This gives you the [exact copy](https://steamdb.info/depot/1600361/history/?changeid=M:720055916602660127) that is used for this repository.
|
||||
|
||||
### 2. Download the latest launcher
|
||||
|
||||
@@ -32,7 +32,7 @@ Navigate to the [latest successful](https://github.com/AeonLucid/Prospect/action
|
||||
|
||||
Run the launcher with the first argument being the path of step 1.
|
||||
```
|
||||
./Prospect.Launcher.exe "E:\Depots\depots\1600361\7573497"
|
||||
./Prospect.Launcher.exe "E:\Depots\depots\1600361\7593680"
|
||||
```
|
||||
|
||||
### 3. Clone the repository
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<SelfContained>false</SelfContained>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.13.2" />
|
||||
<PackageReference Include="MongoDB.Driver" Version="2.14.1" />
|
||||
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.14.0" />
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.15.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -14,7 +14,6 @@ namespace Prospect.Server.Steam
|
||||
public static bool VerifySignature(byte[] data, byte[] signature)
|
||||
{
|
||||
var rsa = new RSACryptoServiceProvider();
|
||||
var hash = new SHA1Managed();
|
||||
|
||||
rsa.ImportFromPem(SystemCertificate);
|
||||
|
||||
@@ -24,7 +23,7 @@ namespace Prospect.Server.Steam
|
||||
return false;
|
||||
}
|
||||
|
||||
var dataHashed = hash.ComputeHash(data);
|
||||
var dataHashed = SHA1.HashData(data);
|
||||
var dataVerified = rsa.VerifyHash(dataHashed, CryptoConfig.MapNameToOID("SHA1")!, signature);
|
||||
|
||||
return dataVerified;
|
||||
|
||||
Reference in New Issue
Block a user