mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-25 23:51:11 +00:00
Updated HIRS_Provisioner.NET package options
This commit is contained in:
parent
2240ad4560
commit
d17fc2e525
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.1.32421.90
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "hirs", "hirs\hirs.csproj", "{300FF15E-1E10-4586-843D-D652BA40DEE5}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "hirs", "hirs\HIRS_Provisioner.NET.csproj", "{300FF15E-1E10-4586-843D-D652BA40DEE5}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E61D6E28-B993-436D-AA88-165857AAEEC0}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
|
@ -5,14 +5,21 @@
|
||||
</PropertyGroup>
|
||||
<Move SourceFiles="$(OUTDIR)publish\$(AssemblyName)" DestinationFiles="$(OUTDIR)publish\tpm_aca_provision" />
|
||||
<Message Text="Renamed linux binary file." Importance="high" />
|
||||
<PropertyGroup>
|
||||
<Prefix>/usr/share/hirs</Prefix>
|
||||
<PostInstallScript>/usr/bin/chmod 644 /usr/share/hirs/appsettings.json; /usr/bin/ln -s /usr/share/hirs/tpm_aca_provision /usr/bin/tpm_aca_provision</PostInstallScript>
|
||||
<PostRemoveScript>rm -f /usr/bin/tpm_aca_provision; rm -rf /usr/share/hirs</PostRemoveScript>
|
||||
</PropertyGroup>
|
||||
<Message Text="Set installed directory prefix to $(PREFIX)." Importance="high" />
|
||||
</Target>
|
||||
<Target Name="RenameBeforePublishWindows" BeforeTargets="SetWixPath" Condition="$(RuntimeIdentifier.Contains('win'))">
|
||||
<Move SourceFiles="$(OUTDIR)publish\$(AssemblyName).exe" DestinationFiles="$(OUTDIR)publish\tpm_aca_provision.exe" />
|
||||
<Message Text="Renamed exe binary file." Importance="high" />
|
||||
</Target>
|
||||
<PropertyGroup>
|
||||
<PostInstallScript>"/bin/sh -c \"chmod 664 /usr/share/hirs/appsettings.json\""</PostInstallScript>
|
||||
<Prefix>C:/Progra~1/hirs</Prefix>
|
||||
</PropertyGroup>
|
||||
<Message Text="Set installed directory prefix to $(PREFIX)." Importance="high" />
|
||||
</Target>
|
||||
<Target Name="SetWixPath" BeforeTargets="Msi">
|
||||
<PropertyGroup>
|
||||
<ProductSourceFilePath>$(MSBuildThisFileDirectory)\Resources\Product.wxs</ProductSourceFilePath>
|
||||
@ -37,6 +44,7 @@
|
||||
SourceFiles="@(PaccorScriptsDll)"
|
||||
DestinationFolder="$(PublishDir)plugins"
|
||||
/>
|
||||
<!--
|
||||
<ItemGroup>
|
||||
<PaccorScriptsLinux Include="$(PublishDir)scripts\*"/>
|
||||
<PaccorScriptsWindows Include="$(PublishDir)scripts\windows\*"/>
|
||||
@ -50,8 +58,8 @@
|
||||
DestinationFolder="$(PublishDir)plugins/scripts/windows"
|
||||
/>
|
||||
<RemoveDir Directories="$(PublishDir)scripts" />
|
||||
-->
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="plugins\**\*.*">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
|
@ -8,6 +8,8 @@
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<PackageVersion>2.2.0</PackageVersion>
|
||||
<Release></Release>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
@ -30,7 +30,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\hirs\hirs.csproj" />
|
||||
<ProjectReference Include="..\hirs\HIRS_Provisioner.NET.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ProjectExtensions><VisualStudio><UserProperties resources_4settings_3test_4appsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
|
||||
|
Loading…
Reference in New Issue
Block a user