-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
229 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<PropertyGroup> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<AppendPlatformToOutputPath>false</AppendPlatformToOutputPath> | ||
<BeatSaberOutputType>Plugin</BeatSaberOutputType> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>portable</DebugType> | ||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> | ||
<LangVersion>12</LangVersion> | ||
<Nullable>disable</Nullable> | ||
<PathMap>$(MSBuildProjectDirectory)\$(IntermediateOutputPath)=$(MSBuildProjectName)</PathMap> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="$(ProjectName).csproj.user" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="BeatSaberModdingTools.Tasks" Version="1.4.3"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManifestPath>$(ProjectDir)..\CustomAvatar\manifest.json</ManifestPath> | ||
</PropertyGroup> | ||
|
||
<!--Get info about the project used by later targets --> | ||
<Target Name="GetProjectInfo" AfterTargets="BeforeBuild"> | ||
<GetManifestInfo ManifestPath="$(ManifestPath)"> | ||
<Output TaskParameter="PluginVersion" PropertyName="PluginVersion" /> | ||
<Output TaskParameter="GameVersion" PropertyName="GameVersion" /> | ||
<Output TaskParameter="BasePluginVersion" PropertyName="BasePluginVersion" /> | ||
</GetManifestInfo> | ||
|
||
<PropertyGroup> | ||
<Version>$(BasePluginVersion)</Version> | ||
<FileVersion>$(BasePluginVersion)</FileVersion> | ||
<InformationalVersion>$(PluginVersion)</InformationalVersion> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<!-- Set shared properties that can't be set in a top-level PropertyGroup (too early) --> | ||
<Target Name="GetProperties"> | ||
<PropertyGroup> | ||
<ArtifactDir>$(TargetDir)Artifact\</ArtifactDir> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<!-- Copy the assembly and PDB to the Artifact folder --> | ||
<Target Name="CopyToArtifact" AfterTargets="AfterBuild" DependsOnTargets="GetProperties"> | ||
<Message Text="$(MSBuildProjectName) -> $(ArtifactDir)" Importance="high" /> | ||
|
||
<MakeDir Directories="$(ArtifactDir)" /> | ||
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ArtifactDir)" /> | ||
</Target> | ||
|
||
<Target Name="SetGitHubActionsOutput" AfterTargets="CopyToArtifact" Condition="'$(GITHUB_ACTIONS)' == 'true'"> | ||
<Message Text="Writing to GitHub output" Importance="high" /> | ||
|
||
<PropertyGroup> | ||
<ArtifactName>$(ProjectName)-v$(PluginVersion)</ArtifactName> | ||
<ArtifactName Condition="'$(Configuration)' != 'Release'">$(ArtifactName)-$(Configuration)</ArtifactName> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<LinesToWrite Include="artifact-name=$(ArtifactName)" /> | ||
<LinesToWrite Include="artifact-path=$(ArtifactDir)" /> | ||
<LinesToWrite Include="unity-project-name=$(ArtifactName.Replace('Editor', 'UnityProject'))" /> | ||
</ItemGroup> | ||
|
||
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Lines="@(LinesToWrite)" /> | ||
</Target> | ||
|
||
<!-- Copy the assembly and PDB to the Unity Project's folder --> | ||
<Target Name="CopyToUnityProject" AfterTargets="CopyToArtifact" Condition="'$(UnityProjectDir)' != ''"> | ||
<Message Text="$(MSBuildProjectName) -> $(UnityProjectDir)" Importance="high" /> | ||
|
||
<ItemGroup> | ||
<FilesToCopy Include="$(ArtifactDir)\**\*" /> | ||
</ItemGroup> | ||
|
||
<Copy SourceFiles="@(FilesToCopy)" DestinationFiles="@(FilesToCopy->'$(UnityProjectDir)\Assets\Libraries\%(RecursiveDir)%(Filename)%(Extension)')" Condition="!Exists('$(UnityProjectDir)\Assets\Libraries\%(RecursiveDir)%(Filename)%(Extension)') OR '%(Extension)' != '.meta'" /> | ||
</Target> | ||
|
||
<!-- Clean up artifact files --> | ||
<Target Name="CleanArtifact" AfterTargets="Clean" DependsOnTargets="GetProperties"> | ||
<RemoveDir Directories="$(ArtifactDir)" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project> | ||
<PropertyGroup> | ||
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> | ||
<AppendPlatformToOutputPath>false</AppendPlatformToOutputPath> | ||
<BeatSaberOutputType>Plugin</BeatSaberOutputType> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>portable</DebugType> | ||
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion> | ||
<LangVersion>12</LangVersion> | ||
<Nullable>disable</Nullable> | ||
<PathMap>$(MSBuildProjectDirectory)\$(IntermediateOutputPath)=$(MSBuildProjectName)</PathMap> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<None Include="$(ProjectName).csproj.user" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="BeatSaberModdingTools.Tasks" Version="1.4.3"> | ||
<PrivateAssets>all</PrivateAssets> | ||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.