/
githubmirror
/
Files
Обзор
Документация
Войти
/
githubmirror
/
Files
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Satori.targets
62 строки
3 KB
yair100
Feature: Added support for customizing the toolbar (#18276)
15 апр 2026, 06:11
Не верифицирован
15 апр 2026, 06:11
fcb5c0f
Код
Авторство
О чём код?
<Project> <PropertyGroup> <SatoriDownloadDate>$([System.DateTime]::UtcNow.ToString('yyyyMMdd'))</SatoriDownloadDate> <SatoriArchiveName>windows_$(Platform).zip</SatoriArchiveName> <SatoriArchivePath>$(IntermediateOutputPath)SatoriPackage\$(SatoriDownloadDate)\$(SatoriArchiveName)</SatoriArchivePath> <SatoriDownloadedThisRun>false</SatoriDownloadedThisRun> <UseSatoriCoreLibOverride Condition="'$(UseSatoriCoreLibOverride)' == ''">true</UseSatoriCoreLibOverride> <UseSatoriNativeRuntimeOverride Condition="'$(UseSatoriNativeRuntimeOverride)' == ''">true</UseSatoriNativeRuntimeOverride> <UseSatoriCoreLibOverride Condition="'$(EnableMsixTooling)' == 'true'">false</UseSatoriCoreLibOverride> <UseSatoriNativeRuntimeOverride Condition="'$(EnableMsixTooling)' == 'true'">false</UseSatoriNativeRuntimeOverride> </PropertyGroup> <Target Name="FetchSatori" AfterTargets="ResolveRuntimePackAssets"> <!-- Skip download if the archive already exists --> <ItemGroup Condition="Exists('$(SatoriArchivePath)')"> <SatoriArchive Include="$(SatoriArchivePath)" /> </ItemGroup> <!-- Download if the archive does not exist --> <PropertyGroup Condition="!Exists('$(SatoriArchivePath)')"> <SatoriDownloadedThisRun>true</SatoriDownloadedThisRun> </PropertyGroup> <DownloadFile SourceUrl="https://github.com/files-community/Satori/releases/latest/download/$(SatoriArchiveName)" DestinationFolder="$(IntermediateOutputPath)SatoriPackage\$(SatoriDownloadDate)" Retries="3" Condition="!Exists('$(SatoriArchivePath)')"> <Output TaskParameter="DownloadedFile" ItemName="SatoriArchive" /> </DownloadFile> </Target> <Target Name="ExtractSatori" AfterTargets="FetchSatori" DependsOnTargets="FetchSatori"> <Unzip SourceFiles="@(SatoriArchive)" DestinationFolder="$(IntermediateOutputPath)Satori" OverwriteReadOnlyFiles="true" /> </Target> <Target Name="IncludeSatoriInRuntimePackAssets" AfterTargets="ExtractSatori" DependsOnTargets="ExtractSatori"> <ItemGroup> <RuntimePackAsset Remove="@(RuntimePackAsset)" Condition=" ('%(RuntimePackAsset.Filename)' == 'coreclr' Or '%(RuntimePackAsset.Filename)' == 'clrjit') And '$(UseSatoriNativeRuntimeOverride)' == 'true' Or ('%(RuntimePackAsset.Filename)' == 'System.Private.CoreLib' And '$(UseSatoriCoreLibOverride)' == 'true') " /> <SatoriRuntimePackAsset Include="$(IntermediateOutputPath)Satori\System.Private.CoreLib.dll" Condition="'$(UseSatoriCoreLibOverride)' == 'true'"> <AssetType>runtime</AssetType> </SatoriRuntimePackAsset> <SatoriRuntimePackAsset Include="$(IntermediateOutputPath)Satori\clrjit.dll;$(IntermediateOutputPath)Satori\coreclr.dll" Condition="'$(UseSatoriNativeRuntimeOverride)' == 'true'"> <AssetType>native</AssetType> <DropFromSingleFile>true</DropFromSingleFile> </SatoriRuntimePackAsset> <RuntimePackAsset Include="@(SatoriRuntimePackAsset)"> <DestinationSubPath>%(Filename)%(Extension)</DestinationSubPath> <RuntimeIdentifier>$(RuntimeIdentifier)</RuntimeIdentifier> <CopyLocal>true</CopyLocal> <NuGetPackageId>Microsoft.NETCore.App.Runtime.win-x64</NuGetPackageId> <FileVersion>42.42.42.42424</FileVersion> <NuGetPackageVersion>42.42.42.42424</NuGetPackageVersion> </RuntimePackAsset> </ItemGroup> </Target> </Project>