Skip to content

Commit

Permalink
优化构建
Browse files Browse the repository at this point in the history
  • Loading branch information
Light committed Sep 1, 2024
1 parent 7888822 commit e2de4a6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dotnet-publish-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Publish for Linux-x64
run: dotnet publish -c Release -r linux-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true -o app/linux-x64
run: dotnet publish -c Release -r linux-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true-o app/linux-x64
- name: Publish for Windows-x64
run: dotnet publish -c Release -r win-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true -o app/win-x64
run: dotnet publish -c Release -r win-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true -o app/win-x64
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dotnet-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Publish for Linux-x64
run: dotnet publish -c Release -r linux-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true -o app/linux-x64
run: dotnet publish -c Release -r linux-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true -o app/linux-x64
- name: Publish for Windows-x64
run: dotnet publish -c Release -r win-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true -o app/win-x64
run: dotnet publish -c Release -r win-x64 --self-contained -p:PublishTrimmed=true -p:PublishSingleFile=true -o app/win-x64
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions src/TokenPay/Models/TronModel/TronTransaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace TokenPay.Models.TronModel
{
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
public class TronTransaction
{
[JsonProperty("transaction_id")]
Expand Down Expand Up @@ -44,4 +45,5 @@ public class TokenInfo
[JsonProperty("name")]
public string Name { get; set; }
}
#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
}
5 changes: 2 additions & 3 deletions src/TokenPay/Models/TronModel/TrxTransaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace TokenPay.Models.TronModel
{
// Root myDeserializedClass = JsonSerializer.Deserialize<Root>(myJsonResponse);
#pragma warning disable CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
public class Contract
{
[JsonProperty("parameter")]
Expand Down Expand Up @@ -118,6 +118,5 @@ public class Value
public string ToAddress { get; set; }
public string ToAddressBase58 => ToAddress.HexToeBase58();
}


#pragma warning restore CS8618 // 在退出构造函数时,不可为 null 的字段必须包含非 null 值。请考虑声明为可以为 null。
}

0 comments on commit e2de4a6

Please sign in to comment.