Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into dev
  • Loading branch information
misternebula committed May 5, 2024
2 parents 7aba6bb + 9cf9293 commit ab02d46
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: Raicuparta.QuantumSpaceBuddies
path: .\QSB\Bin\Debug
path: .\QSB-NH\Bin\Debug
10 changes: 3 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ permissions:
env:
PROJ_USERNAME: Raicuparta
PROJ_NAME: QuantumSpaceBuddies
REAL_PROJ_NAME: QSB

jobs:
pre_job:
Expand All @@ -34,7 +33,7 @@ jobs:

- name: Read Manifest
id: read-manifest
run: echo "manifest=$(< ./${{ env.REAL_PROJ_NAME }}/manifest.json sed ':a;N;$!ba;s/\n/ /g')" >> $GITHUB_OUTPUT
run: echo "manifest=$(< ./QSB/manifest.json sed ':a;N;$!ba;s/\n/ /g')" >> $GITHUB_OUTPUT

- name: Check For Release
id: check-tag
Expand Down Expand Up @@ -63,20 +62,17 @@ jobs:
- name: Setup .NET
uses: "actions/setup-dotnet@v3"

- name: Remove .csproj.user
run: if (Test-Path ${{ env.REAL_PROJ_NAME }}/${{ env.REAL_PROJ_NAME }}.csproj.user) { rm ${{ env.REAL_PROJ_NAME }}/${{ env.REAL_PROJ_NAME }}.csproj.user }

- name: Build Mod
run: dotnet build -c Release

- name: Upload Artifact
uses: "actions/upload-artifact@v3"
with:
name: "${{ env.PROJ_USERNAME }}.${{ env.PROJ_NAME }}"
path: "${{ env.REAL_PROJ_NAME }}/bin/Release"
path: "QSB-NH/bin/Release"

- name: Zip For Release
run: 7z a ${{ env.PROJ_USERNAME }}.${{ env.PROJ_NAME }}.zip ./${{ env.REAL_PROJ_NAME }}/bin/Release/**
run: 7z a ${{ env.PROJ_USERNAME }}.${{ env.PROJ_NAME }}.zip ./QSB-NH/bin/Release/**

- name: Create Release
uses: "ncipollo/release-action@v1"
Expand Down
24 changes: 24 additions & 0 deletions QSB-NH/QSB-NH.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@
<NoWarn>CS1998;CS0649</NoWarn>
</PropertyGroup>

<Target Name="clean after building" AfterTargets="PostBuildEvent">
<ItemGroup>
<_Files Remove="@(_Files)" />
<_Files Include="$(OutputPath)\*.exe.config" />
</ItemGroup>
<Delete Files="@(_Files)" />
</Target>

<Target Name="weave qsb nh" AfterTargets="PostBuildEvent">
<Exec Command=".\MirrorWeaver &quot;$(TargetPath)&quot;" WorkingDirectory="..\MirrorWeaver\bin\$(Configuration)\" />
</Target>

<PropertyGroup>
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
</PropertyGroup>
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)')">
<ItemGroup>
<_Files Remove="@(_Files)" />
<_Files Include="$(OutputPath)/*.dll" />
<_Files Include="$(OutputPath)/*.exe" />
</ItemGroup>
<Copy SourceFiles="@(_Files)" DestinationFolder="$(UnityDllsDir)" />
</Target>

<ItemGroup>
<Folder Include="lib\" />
</ItemGroup>
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Spoilers within!

## Installation

### Easy installation (recommended)

- [Install the Outer Wilds Mod Manager](https://outerwildsmods.com/mod-manager/)
- Install Quantum Space Buddies from the mod list displayed in the application

Expand Down

0 comments on commit ab02d46

Please sign in to comment.