|
47 | 47 | <UnoFeatures>$(UnoFeatures);SkiaRenderer;</UnoFeatures> |
48 | 48 | </PropertyGroup> |
49 | 49 |
|
| 50 | + <PropertyGroup Condition="'$(TargetFramework)'=='net10.0-desktop'"> |
| 51 | + <DotPilotSnapContactUrl>https://github.com/managedcode/dotPilot/issues</DotPilotSnapContactUrl> |
| 52 | + <DotPilotSnapIssuesUrl>https://github.com/managedcode/dotPilot/issues</DotPilotSnapIssuesUrl> |
| 53 | + <DotPilotSnapSourceCodeUrl>https://github.com/managedcode/dotPilot</DotPilotSnapSourceCodeUrl> |
| 54 | + <DotPilotSnapWebsiteUrl>https://dotpilot.managed-code.com</DotPilotSnapWebsiteUrl> |
| 55 | + <DotPilotSnapLicense>MIT</DotPilotSnapLicense> |
| 56 | + <DotPilotSnapManifestTemplate>$(MSBuildProjectDirectory)/Platforms/Linux/snapcraft.template.yaml</DotPilotSnapManifestTemplate> |
| 57 | + <DotPilotSnapDesktopFileTemplate>$(MSBuildProjectDirectory)/Platforms/Linux/dotpilot.desktop</DotPilotSnapDesktopFileTemplate> |
| 58 | + </PropertyGroup> |
| 59 | + |
50 | 60 | <PropertyGroup Condition="'$(TargetFramework)'=='net10.0-browserwasm'"> |
51 | 61 | <UnoSkipWasmToolsWorkloadValidation>true</UnoSkipWasmToolsWorkloadValidation> |
52 | 62 | <UnoDisableHotDesign>true</UnoDisableHotDesign> |
|
78 | 88 | <Compile Remove="Services\Endpoints\DebugHandler.cs" /> |
79 | 89 | </ItemGroup> |
80 | 90 |
|
| 91 | + <Target Name="PrepareCustomLinuxSnapLayout" |
| 92 | + Condition="'$(SelfContained)'=='true' and $(RuntimeIdentifier.StartsWith('linux')) and '$(PackageFormat)'=='snap'" |
| 93 | + BeforeTargets="_UnoPublishSnap"> |
| 94 | + <PropertyGroup> |
| 95 | + <_DotPilotSnapAppName>$([System.String]::Copy('$(AssemblyName)').ToLowerInvariant().Replace('.', '-'))</_DotPilotSnapAppName> |
| 96 | + <_DotPilotSnapManifestPath>$(IntermediateOutputPath)dotpilot.snapcraft.yaml</_DotPilotSnapManifestPath> |
| 97 | + <_DotPilotSnapDesktopFilePath>$(IntermediateOutputPath)dotpilot.desktop</_DotPilotSnapDesktopFilePath> |
| 98 | + <SnapManifest>$(_DotPilotSnapManifestPath)</SnapManifest> |
| 99 | + <DesktopFile>$(_DotPilotSnapDesktopFilePath)</DesktopFile> |
| 100 | + </PropertyGroup> |
| 101 | + |
| 102 | + <MakeDir Directories="$(IntermediateOutputPath)" /> |
| 103 | + <!-- |
| 104 | + Uno's generated core24 snap manifest currently fails the release job because |
| 105 | + snapcraft promotes classic/library lint findings to a non-zero exit code. The |
| 106 | + release pipeline needs a deterministic installable asset, so we generate a |
| 107 | + manifest template with explicit metadata and targeted lint suppression here. |
| 108 | + --> |
| 109 | + <Exec Command="sed -e "s|__APP_NAME__|$(_DotPilotSnapAppName)|g" -e "s|__ASSEMBLY_NAME__|$(AssemblyName)|g" -e "s|__VERSION__|$(ApplicationDisplayVersion)|g" -e "s|__TITLE__|$(ApplicationTitle)|g" -e "s|__DESCRIPTION__|$(Description)|g" -e "s|__CONTACT_URL__|$(DotPilotSnapContactUrl)|g" -e "s|__ISSUES_URL__|$(DotPilotSnapIssuesUrl)|g" -e "s|__SOURCE_CODE_URL__|$(DotPilotSnapSourceCodeUrl)|g" -e "s|__WEBSITE_URL__|$(DotPilotSnapWebsiteUrl)|g" -e "s|__LICENSE__|$(DotPilotSnapLicense)|g" "$(DotPilotSnapManifestTemplate)" > "$(_DotPilotSnapManifestPath)"" /> |
| 110 | + <Copy SourceFiles="$(DotPilotSnapDesktopFileTemplate)" |
| 111 | + DestinationFiles="$(_DotPilotSnapDesktopFilePath)" |
| 112 | + SkipUnchangedFiles="true" /> |
| 113 | + </Target> |
| 114 | + |
81 | 115 | </Project> |
0 commit comments