Skip to content

Commit

Permalink
put nebulabundle in root of output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantomGamers committed Feb 17, 2022
1 parent ddbc2b4 commit 2392f29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NebulaWorld/AssetLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static AssetBundle AssetBundle
return null;
}

var fullAssetPath = Path.Combine(pluginfolder, "Assets", "nebulabundle");
var fullAssetPath = Path.Combine(pluginfolder, "nebulabundle");
assetBundle = AssetBundle.LoadFromFile(fullAssetPath);
}

Expand Down
5 changes: 0 additions & 5 deletions NebulaWorld/NebulaWorld.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,4 @@
<ProjectReference Include="..\NebulaModel\NebulaModel.csproj" SpecificVersion="true" />
<ProjectReference Include="..\NebulaAPI\NebulaAPI.csproj" Private="false" />
</ItemGroup>
<ItemGroup>
<Content Include="Assets\nebulabundle">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions SharedConfig.targets
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
SourceFiles="@(ProjectAssembliesMetaFilesFolder)"
DestinationFolder="..\NebulaUnity\Assets\Assemblies\" />
</Target>

<Target Name="CopyBundleToOutDir" AfterTargets="Build">
<Copy SourceFiles="..\NebulaWorld\Assets\nebulabundle" DestinationFolder="$(OutDir)" />
</Target>

<Target Name="BeforeBuild">
<Copy
Expand Down

0 comments on commit 2392f29

Please sign in to comment.