Skip to content

Commit

Permalink
Build the Payload as nupkg and upgrade dependencies to consume nuget …
Browse files Browse the repository at this point in the history
…pkgs as well
  • Loading branch information
MeFisto94 committed Nov 26, 2023
1 parent 6e5d6be commit c1baf96
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 15 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/netfx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Repository
on: [push]

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]

- name: Restore NuGet Packages
run: nuget restore Andraste.Payload.csproj

- name: Build project
run: msbuild Andraste.Payload.csproj /p:Configuration=Release /p:GeneratePackageOnBuild=true

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: DLL
path: bin\Release\net48\Andraste.Payload.dll
- name: Upload NuPkg
uses: actions/upload-artifact@v3
with:
name: NuGet
path: bin\Release\Andraste.Payload.*.nupkg
35 changes: 28 additions & 7 deletions Andraste.Payload.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!-- NuGet Metadata -->
<PackageId>Andraste.Payload</PackageId>
<PackageVersion>0.1.4</PackageVersion>
<Title>Andraste Payload</Title>
<Authors>MeFisto94</Authors>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<!-- <icon>icon.png</icon> -->
<PackageProjectUrl>https://AndrasteFramework.github.io</PackageProjectUrl>
<Description>The Payload is what is injected into the Application to provide all the modding functionality</Description>
<Copyright>Copyright 2023</Copyright>
<PackageTags>Andraste ModdingFramework</PackageTags>
<RepositoryUrl>https://github.com/AndrasteFramework/Payload</RepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<!-- Additional NuGet Files -->
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<PropertyGroup>
<LangVersion>8.0</LangVersion>
Expand All @@ -20,15 +43,19 @@

<ItemGroup>
<PackageReference Include="Andraste.EasyHook" Version="1.0.2" />
<PackageReference Include="Andraste.Shared" Version="0.1.3" />
<PackageReference Include="Iced" Version="1.11.3" />
<PackageReference Include="NLog" Version="4.7.10" />
<PackageReference Include="NLog" Version="4.7.13" />
<PackageReference Include="SharpDX.Direct3D9" Version="4.2.0" />
<PackageReference Include="System.Text.Json" Version="6.0.0" />
</ItemGroup>

<!-- For local dev only -->
<!--
<ItemGroup>
<ProjectReference Include="..\Andraste.Shared\Andraste.Shared.csproj" />
</ItemGroup>
-->

<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
<Reference Include="CppSharp.Runtime">
Expand All @@ -43,10 +70,4 @@
<TargetPath>cimgui.dll</TargetPath>
</ContentWithTargetPath>
</ItemGroup>

<ItemGroup>
<Reference Include="EasyHook">
<HintPath>EasyHookCompiled\EasyHook.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
8 changes: 0 additions & 8 deletions packages.config

This file was deleted.

0 comments on commit c1baf96

Please sign in to comment.