From f8af8851fe78a8bedbcacb63663eb68d57a5733b Mon Sep 17 00:00:00 2001 From: TitleHHHH Date: Fri, 25 Oct 2024 21:13:37 +0500 Subject: [PATCH] test pupnet --- .github/workflows/devbuilds.yaml | 24 +++++++++++------------- build/Build.cs | 17 +++-------------- 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/.github/workflows/devbuilds.yaml b/.github/workflows/devbuilds.yaml index 784e56ae..c4ff8179 100644 --- a/.github/workflows/devbuilds.yaml +++ b/.github/workflows/devbuilds.yaml @@ -10,7 +10,7 @@ on: jobs: basic: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 @@ -20,15 +20,13 @@ jobs: with: dotnet-version: 9.x - run: dotnet --version - - - name: set shell script permissions - if: ${{ matrix.os != 'windows-latest'}} - run: chmod +x ./build.sh - - - name: build (Unix) - if: ${{ matrix.os != 'windows-latest'}} - run: ./build.sh DevBuild --Configuration Release --Runtime linux-x64 - - - name: build (Windows) - if: ${{ matrix.os == 'windows-latest'}} - run: .\build.ps1 DevBuild --Configuration Release --Runtime win-x64 \ No newline at end of file + + - name: Install Pupnet and dpkg + if: ${{ matrix.os == 'ubuntu-latest'}} + run: | + dotnet tool install -g KuiperZone.PupNet + sudo apt install dpkg + + - name: Run pupnet + if: ${{ matrix.os == 'ubuntu-latest'}} + run: pupnet --runtime linux-64 --kind deb --app-version 4.0.0[1] \ No newline at end of file diff --git a/build/Build.cs b/build/Build.cs index dd0efe04..aea3fcd8 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -8,6 +8,7 @@ using Nuke.Common.Git; using Nuke.Common.IO; using Nuke.Common.ProjectModel; +using Nuke.Common.Tooling; using Nuke.Common.Tools.DotNet; using Nuke.Common.Tools.GitHub; using Nuke.Common.Tools.MinVer; @@ -58,21 +59,9 @@ class Build : NukeBuild .Requires(() => Configuration.Equals(Configuration.Release)) .Executes(() => { - DotNetPublish(x => x - .SetProject(Solution.Platfroms.HolyClient_Desktop) - .SetConfiguration(Configuration) - .SetPublishSingleFile(true) - .SetProperty("DebugSymbols", "False") - .SetProperty("DebugType", "None") - .SetPublishReadyToRun(true) - .EnableSelfContained() - .SetAssemblyVersion(MinVer.AssemblyVersion) - .SetFileVersion(MinVer.FileVersion) - .SetOutput(BuildDirectory) - .SetFramework("net9.0") - .SetRuntime(Runtime)); - + + }); }