Skip to content

Commit

Permalink
Update .csproj to work with release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
coloursofnoise committed Feb 3, 2022
1 parent c7eb4fa commit 50117e7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: actions/[email protected]
with:
name: main
path: src/bin/Debug/net452
path: FancyTileEntities/bin/Debug/net452

- name: Create mod zip
run: zip -qq -r FancyTileEntities.zip Ahorn FancyTileEntities/bin everest.yaml
Expand All @@ -71,6 +71,5 @@ jobs:
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
$RELEASE_URL \
-d "$(jq -n \
--rawfile body changelog.current \
--arg url $DOWNLOAD_URL \
'{body: "\($body)\r\n\r\n[Install FancyTileEntities.zip](https://0x0a.de/twoclick/?\($url))"}')"
'{body: "[Install FancyTileEntities.zip](https://0x0a.de/twoclick/?\($url))"}')"
27 changes: 18 additions & 9 deletions FancyTileEntities/FancyTileEntities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,40 @@
<AssemblyName>FancyTileEntities</AssemblyName>
<RootNamespace>Celeste.Mod.FancyTileEntities</RootNamespace>
<LangVersion>9.0</LangVersion>
<CelesteGamePath Condition="'$(CELESTEGAMEPATH)' == ''">..\..\..</CelesteGamePath>
</PropertyGroup>

<!--Disable "Copy Local" for all references-->
<ItemDefinitionGroup>
<PackageReference ExcludeAssets="runtime" PrivateAssets="all" />
<Reference Private="false" />
</ItemDefinitionGroup>

<ItemGroup>
<PackageReference Include="MonoMod" Version="21.4.2.3" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="MonoMod.RuntimeDetour" Version="21.01.11.01" PrivateAssets="all" ExcludeAssets="runtime" />
<PackageReference Include="MonoMod" Version="21.7.22.3" />
<PackageReference Include="MonoMod.RuntimeDetour" Version="21.7.22.3">
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<Reference Include="Celeste" HintPath="..\..\..\Celeste.exe" Private="false" />
<Reference Include="MMHOOK_Celeste" HintPath="..\..\..\MMHOOK_Celeste.dll" Private="false" />
<Reference Include="YamlDotNet" HintPath="..\..\..\YamlDotNet.dll" Private="false" />
<Reference Include="Celeste" HintPath="$(CELESTEGAMEPATH)\Celeste.exe" />
<Reference Include="MMHOOK_Celeste" HintPath="$(CELESTEGAMEPATH)\MMHOOK_Celeste.dll" />
<Reference Include="YamlDotNet" HintPath="$(CELESTEGAMEPATH)\YamlDotNet.dll" />
</ItemGroup>

<Choose>
<When Condition="'$(OS)' != 'Windows_NT' Or Exists('..\..\..\FNA.dll')">
<ItemGroup>
<Reference Include="FNA" HintPath="..\..\..\FNA.dll" Private="false" />
<Reference Include="FNA" HintPath="$(CELESTEGAMEPATH)\FNA.dll" />
</ItemGroup>
</When>

<Otherwise>
<ItemGroup>
<Reference Include="Microsoft.Xna.Framework" HintPath="$(WINDIR)\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.dll" Private="false" />
<Reference Include="Microsoft.Xna.Framework.Game" HintPath="$(WINDIR)\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Game\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Game.dll" Private="false" />
<Reference Include="Microsoft.Xna.Framework.Graphics" HintPath="$(WINDIR)\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Graphics\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Graphics.dll" Private="false" />
<Reference Include="Microsoft.Xna.Framework" HintPath="$(WINDIR)\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.dll" />
<Reference Include="Microsoft.Xna.Framework.Game" HintPath="$(WINDIR)\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Game\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Game.dll" />
<Reference Include="Microsoft.Xna.Framework.Graphics" HintPath="$(WINDIR)\Microsoft.NET\assembly\GAC_32\Microsoft.Xna.Framework.Graphics\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Graphics.dll" />
</ItemGroup>
</Otherwise>
</Choose>
Expand Down

0 comments on commit 50117e7

Please sign in to comment.