Skip to content

Commit

Permalink
Fix build on Linux
Browse files Browse the repository at this point in the history
Use the msbuild copy target instead of xcopy; change file encoding to
utf-8.
  • Loading branch information
Nazfib committed Aug 15, 2023
1 parent 2618301 commit 05d8e6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LunarTransferPlanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void MakeMainWindow(int id)

GUILayout.Space(4);
GUILayout.Label("Launch Now Incl", GUILayout.ExpandWidth(true));
GUILayout.Box(new GUIContent($"{(launchOrbit.azimuth > 90d ? -launchOrbit.inclination : launchOrbit.inclination):F2}°",
GUILayout.Box(new GUIContent($"{(launchOrbit.azimuth > 90d ? -launchOrbit.inclination : launchOrbit.inclination):F2}°",
"Launch to this inclination now to reach a Lunar parking orbit"), GUILayout.MinWidth(100));

string tooltip = latitude >= target.orbit.inclination ?
Expand Down
11 changes: 6 additions & 5 deletions LunarTransferPlanner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,15 @@
<None Include="README.md" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy /y "$(TargetPath)" "$(ProjectDir)/GameData/LunarTransferPlanner\Plugins\"</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
-->
<Target Name="AfterBuild">
<Copy
SourceFiles="$(TargetPath)"
DestinationFolder="$(ProjectDir)/GameData/LunarTransferPlanner/Plugins"
SkipUnchangedFiles="false" />
</Target>
-->
</Project>
</Project>

0 comments on commit 05d8e6c

Please sign in to comment.