Skip to content

Commit c64efde

Browse files
arthurkehrwaldfreezy
authored andcommitted
Eliminate differences between dev and release file structure
1 parent ea5f623 commit c64efde

File tree

3 files changed

+20
-15
lines changed

3 files changed

+20
-15
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
dotnet build -c Release -r ${{ matrix.rid }} -p:InstallYetAnotherHttpHandler=false
2929
- run: |
3030
mkdir -p tmp/Plugins
31-
cp -r Dependencies/NuGetDependencies/${{ matrix.rid }} tmp/Plugins
31+
cp -r Plugins/${{ matrix.rid }} tmp/Plugins
3232
- uses: actions/upload-artifact@v4
3333
with:
3434
name: Plugins-${{ matrix.rid }}
@@ -39,10 +39,13 @@ jobs:
3939
steps:
4040
- uses: actions/checkout@v4
4141
- run: dotnet build /t:InstallYetAnotherHttpHandler
42+
- run: |
43+
mkdir -p tmp/YetAnotherHttpHandler
44+
cp -r YetAnotherHttpHandler tmp/YetAnotherHttpHandler
4245
- uses: actions/upload-artifact@v4
4346
with:
4447
name: YetAnotherHttpHandler
45-
path: Dependencies
48+
path: tmp
4649

4750
dispatch:
4851
runs-on: ubuntu-latest

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,11 @@ VisualPinball.Engine.Mpf/machine/data/
357357
# macOS meta files
358358
*.DS_Store
359359

360-
Dependencies/
361-
Dependencies.meta
360+
Plugins/
361+
Plugins.meta
362+
363+
YetAnotherHttpHandler/
364+
YetAnotherHttpHandler.meta
362365

363366
Runtime/GrpcInterface/Generated/
364367
Runtime/GrpcInterface/Generated.meta

VisualPinball.Engine.Mpf.csproj

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@
5252
<Protobuf ProtoRoot="Runtime/GrpcInterface/" Include= "Runtime/GrpcInterface/*.proto" OutputDir="Runtime\GrpcInterface\Generated" GrpcServices="Client" />
5353
</ItemGroup>
5454

55-
<!-- Copy NuGet binaries to 'Dependencies/NuGetDependencies'-->
55+
<!-- Copy NuGet binaries to 'Plugins'-->
5656
<Target Name="CopyNuGetDependencies" AfterTargets="AfterBuild">
5757
<ItemGroup>
5858
<OutputFiles Include="$(OutDir)/*.*"/>
5959
</ItemGroup>
60-
<Copy SourceFiles="@(OutputFiles)" DestinationFolder="./Dependencies/NuGetDependencies/$(RuntimeIdentifier)" SkipUnchangedFiles="true"/>
60+
<Copy SourceFiles="@(OutputFiles)" DestinationFolder="./Plugins/$(RuntimeIdentifier)" SkipUnchangedFiles="true"/>
6161
</Target>
6262

6363
<!-- Delete build artifacts-->
@@ -69,17 +69,16 @@
6969
<RemoveDir Directories="@(BuildArtifacts)"/>
7070
</Target>
7171

72-
<!-- Download YetAnotherHttpHandler from GitHub and copy into Dependencies directory-->
72+
<!-- Download YetAnotherHttpHandler from GitHub and copy into 'YetAnotherHttpHandler'-->
7373
<Target Name="InstallYetAnotherHttpHandler" AfterTargets="AfterBuild" Condition="'$(InstallYetAnotherHttpHandler)' == 'true'">
74-
<RemoveDir Directories="Dependencies/tmp"/>
75-
<MakeDir Directories="Dependencies"/>
76-
<Exec Command="git clone --no-checkout --depth=1 --filter=tree:0 --branch $(YetAnotherHttpHandlerVersion) https://github.com/Cysharp/YetAnotherHttpHandler tmp" ConsoleToMSBuild="true" WorkingDirectory="Dependencies"/>
77-
<Exec Command="git sparse-checkout set --no-cone /src/YetAnotherHttpHandler" ConsoleToMSBuild="true" WorkingDirectory="Dependencies/tmp"/>
78-
<Exec Command="git checkout $(YetAnotherHttpHandlerVersion)" ConsoleToMSBuild="true" WorkingDirectory="Dependencies/tmp"/>
74+
<RemoveDir Directories="tmp"/>
75+
<Exec Command="git clone --no-checkout --depth=1 --filter=tree:0 --branch $(YetAnotherHttpHandlerVersion) https://github.com/Cysharp/YetAnotherHttpHandler tmp" ConsoleToMSBuild="true"/>
76+
<Exec Command="git sparse-checkout set --no-cone /src/YetAnotherHttpHandler" ConsoleToMSBuild="true" WorkingDirectory="tmp"/>
77+
<Exec Command="git checkout $(YetAnotherHttpHandlerVersion)" ConsoleToMSBuild="true" WorkingDirectory="tmp"/>
7978
<ItemGroup>
80-
<PackageFiles Include="Dependencies/tmp/src/YetAnotherHttpHandler/**/*.*"/>
79+
<PackageFiles Include="tmp/src/YetAnotherHttpHandler/**/*.*"/>
8180
</ItemGroup>
82-
<Copy SourceFiles="@(PackageFiles)" DestinationFolder="Dependencies/YetAnotherHttpHandler/%(RecursiveDir)"/>
83-
<RemoveDir Directories="Dependencies/tmp;obj"/>
81+
<Copy SourceFiles="@(PackageFiles)" DestinationFolder="YetAnotherHttpHandler/%(RecursiveDir)"/>
82+
<RemoveDir Directories="tmp;obj"/>
8483
</Target>
8584
</Project>

0 commit comments

Comments
 (0)