Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@ on: [ "push", "pull_request" ]

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x

- name: Run the Cake script
uses: cake-build/cake-action@v1
uses: cake-build/cake-action@v2
with:
cake-version: 4.2.0
verbosity: Diagnostic

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Reactor.Template.dll
path: Reactor.Template/bin/Release/net6.0/Reactor.Template.dll
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Reactor.Template
Mod template for Reactor

1. `dotnet new --install Reactor.Template` - installs latest Reactor.Template from nuget.org
2. `dotnet new reactor -n {Name} -o {Name}` - creates new Reactor plugin under {Name} directory
1. `dotnet new install Reactor.Template` - installs latest Reactor.Template from nuget.org
2. `dotnet new reactor -n {Name}` - creates new Reactor plugin under {Name} directory
8 changes: 4 additions & 4 deletions Reactor.Template/Reactor.Template.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Reactor" Version="2.0.0" />
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.662" Private="false" ExcludeAssets="runtime;native" />
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2022.10.25" PrivateAssets="all" />
<PackageReference Include="Reactor" Version="2.5.0-ci.371" />
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.735" Private="false" ExcludeAssets="runtime;native" />
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2025.4.15" PrivateAssets="all" />

<PackageReference Include="BepInEx.AutoPlugin" Version="1.1.0" PrivateAssets="all" />
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.0.1" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1" PrivateAssets="all" ExcludeAssets="runtime" />
</ItemGroup>

<Target Name="Copy" AfterTargets="Build" Condition="'$(AmongUs)' != ''">
Expand Down
2 changes: 2 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
<configuration>
<packageSources>
<add key="BepInEx" value="https://nuget.bepinex.dev/v3/index.json" />
<add key="Samboy" value="https://nuget.samboy.dev/v3/index.json" />
<add key="Reactor" value="https://nuget.reactor.gg/v3/index.json" />
</packageSources>
</configuration>
9 changes: 7 additions & 2 deletions templatepack.proj
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<Project Sdk="Microsoft.Build.NoTargets/3.5.6" DefaultTargets="Pack">
<Project Sdk="Microsoft.Build.NoTargets/3.7.56" DefaultTargets="Pack">
<PropertyGroup>
<PackageType>Template</PackageType>
<PackageVersion>4.0.0</PackageVersion>
<PackageVersion>6.0.0</PackageVersion>
<PackageId>Reactor.Template</PackageId>
<Authors>NuclearPowered</Authors>
<Description>Mod template for Reactor.</Description>

<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/NuclearPowered/Reactor.Template</RepositoryUrl>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>

<TargetFramework>net6.0</TargetFramework>

Expand All @@ -19,6 +20,10 @@
<NoWarn>$(NoWarn);NU5128</NoWarn>
</PropertyGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<Compile Remove="**\*" />
<Content Include=".template.config\**\*" />
Expand Down