Skip to content
Merged
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
27 changes: 7 additions & 20 deletions .github/workflows/RocketModFix.Module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v4
name: Setup .NET
Expand Down Expand Up @@ -51,30 +53,15 @@ jobs:
path: "./Rocket.Unturned/bin/Release/net461/linux-x64/Rocket.Unturned/Rocket.Unturned.Module.zip"
if-no-files-found: error

- name: Create version
if: github.event_name == 'create' && github.event.ref_type == 'tag'
id: get-version
run: echo "version=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
shell: bash

- name: Check Prerelease
if: github.event_name == 'create' && github.event.ref_type == 'tag'
id: check-prerelease
run: "if ${{ contains(steps.get-version.outputs.version, '-') }}; then
echo is_prerelease=true >> $GITHUB_OUTPUT;
else
echo is_prerelease=false >> $GITHUB_OUTPUT;
fi"
shell: bash

- name: Create Release
if: github.event_name == 'create' && github.event.ref_type == 'tag'
uses: ncipollo/release-action@v1.14.0
with:
name: RocketModFix Release v${{ steps.get-version.outputs.version }}
tag: v${{ steps.get-version.outputs.version }}
name: RocketModFix Release v${{ steps.project-build.outputs.version }}
tag: v${{ steps.project-build.outputs.version }}
artifacts: "./Rocket.Unturned/bin/Release/net461/linux-x64/Rocket.Unturned/Rocket.Unturned.Module.zip"
token: ${{ secrets.PAT }}
prerelease: ${{ steps.check-prerelease.outputs.is_prerelease }}
prerelease: ${{ steps.project-build.outputs.is_prerelease }}
allowUpdates: true
generateReleaseNotes: true
generateReleaseNotes: true
draft: true
11 changes: 8 additions & 3 deletions Rocket.Unturned/Module/RuntimeLibs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ Here we just store the runtime libraries that are used by the Rocket or other pl

## Add/Update Runtime Library

To add/update a Runtime Library, keep these steps:
1. Have installed Mono/Unity Editor with the same version as in Unturned.
2. To find the needed library: `Program Files\Mono\lib\mono\gac` or also you can try this place: `Program Files\Mono\lib\mono\4.5\Facades`.
To add/update a Runtime Library, we provide these options (they're different ways):

# Option #1
- Have installed Mono/Unity Editor with the same version as in Unturned.
- To find the necessary library: `Program Files\Mono\lib\mono\gac` or also you can try this place: `Program Files\Mono\lib\mono\4.5\Facades`.

# Option #2
- Copy the necessary libraries from [OpenMod](https://github.com/openmod/openmod) runtime libs or release of the module, this way we keep as close as possible same libraries.

You can also check this [post](https://sunnamed434.github.io/posts/assemblyresolve-and-mono/) to understand things better about libraries, specifically in Unity.
2 changes: 1 addition & 1 deletion Rocket.Unturned/Rocket.Unturned.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageReference Include="RocketModFix.UnityEngine.Redist" Version="2021.3.29.1">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="RocketModFix.Unturned.Redist.Server" Version="3.24.4.1">
<PackageReference Include="RocketModFix.Unturned.Redist.Server" Version="3.24.5">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Rocket/Rocket.API/Rocket.API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageReference Include="RocketModFix.UnityEngine.Redist" Version="2021.3.28.1">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="RocketModFix.Unturned.Redist.Server" Version="3.24.4.1">
<PackageReference Include="RocketModFix.Unturned.Redist.Server" Version="3.24.5">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Rocket/Rocket.Core/Rocket.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="RocketModFix.UnityEngine.Redist" Version="2021.3.28.1">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="RocketModFix.Unturned.Redist.Server" Version="3.24.4.1">
<PackageReference Include="RocketModFix.Unturned.Redist.Server" Version="3.24.5">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions props/SharedProjectProps.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<InformationalVersion>$(RocketModVersion)</InformationalVersion>
<Copyright>RocketModFix and their contributors</Copyright>
<RepositoryUrl>https://github.com/RocketModFix/RocketModFix</RepositoryUrl>
<LangVersion>11</LangVersion>
<LangVersion>preview</LangVersion>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<Prefer32Bit>false</Prefer32Bit>
Expand All @@ -29,7 +29,7 @@
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Expand Down