Skip to content

Commit

Permalink
installer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
insomniachi committed Aug 12, 2022
1 parent 5e10e61 commit 53c6978
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions AnimDL.Installer/AnimDL.Installer.wixproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@
<Error Text="The WiX Toolset v3.11 (or newer) build tools must be installed to build this project. To download the WiX Toolset, see http://wixtoolset.org/releases/" />
</Target>
<Target Name="BeforeBuild">
<Exec Command="rd /s /q ..\AnimDL.WinUI\bin\x64\Release\net6.0-windows10.0.19041.0\win10-x64\" />
<Exec Command="dotnet publish ..\AnimDL.WinUI\AnimDL.WinUI.csproj -c $(Configuration) --self-contained -r win10-x64" />
<Exec Command="rd /s /q ..\AnimDL.WinUI\bin\publish\" />
<PropertyGroup>
<DefineConstants>BuildVersion=$(Version);BasePath=..\AnimDL.WinUI\bin\x64\Release\net6.0-windows10.0.19041.0\win10-x64\publish\</DefineConstants>
<DefineConstants>BuildVersion=$(Version);BasePath=..\AnimDL.WinUI\bin\publish\</DefineConstants>
</PropertyGroup>
<Exec Command="dotnet publish ..\AnimDL.WinUI\AnimDL.WinUI.csproj -c $(Configuration) --self-contained -r win10-x64 -o ..\AnimDL.WinUI\bin\publish\ /property:BuildVersion=$(BuildVersion)" />
<HeatDirectory OutputFile="ComponentsGenerated.wxs"
DirectoryRefId="INSTALLFOLDER"
ComponentGroupName="PublishedComponents"
SuppressCom="true"
Directory="..\AnimDL.WinUI\bin\x64\Release\net6.0-windows10.0.19041.0\win10-x64\publish\"
Directory="..\AnimDL.WinUI\bin\publish\"
SuppressFragments="true" SuppressRegistry="true" SuppressRootDirectory="true" AutoGenerateGuids="false" GenerateGuidsNow="true" ToolPath="$(WixToolPath)" RunAsSeparateProcess="$(RunWixToolsOutOfProc)"
PreprocessorVariable="var.BasePath"/>
</Target>
Expand Down
3 changes: 2 additions & 1 deletion AnimDL.WinUI/AnimDL.WinUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
<EnableMsixTooling>true</EnableMsixTooling>
<ApplicationIcon>Assets\WindowIcon.ico</ApplicationIcon>
<Version>0.0.1.0</Version>
<Version Condition=" '$(BuildVersion)' == '' ">1.0.0.0</Version>
<Version Condition=" '$(BuildVersion)' != '' ">$(BuildVersion)</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 53c6978

Please sign in to comment.