Browse Source

Test macOS building

Ruben 1 year ago
parent
commit
3b25e93b9d

+ 11 - 0
src/PicView.Avalonia.MacOS/PicView.Avalonia.MacOS.csproj

@@ -11,7 +11,18 @@
     <Company>Ruben Hyldgaard Negendahl</Company>
     <Product>PicView</Product>
     <UseAppHost>true</UseAppHost>
+    <PublishAot>true</PublishAot>
+    <Trimming>full</Trimming>
     <AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
+    <LangVersion>preview</LangVersion>
+    <AssemblyVersion>3.0</AssemblyVersion>
+    <FileVersion>3.0</FileVersion>
+    <Company>Ruben Hyldgaard Negendahl</Company>
+    <Authors>Ruben Hyldgaard Negendahl</Authors>
+    <Copyright>© Ruben Hyldgaard Negendahl</Copyright>
+    <ImplicitUsings>enable</ImplicitUsings>
+    <Product>PicView</Product>
+    <ApplicationIcon>icon.ico</ApplicationIcon>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
     <DebugType>none</DebugType>

BIN
src/PicView.Avalonia.MacOS/icon.ico


+ 5 - 14
src/PicView.Core/PicView.Core.csproj

@@ -1,5 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
-
+<Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
     <TargetFramework>net9.0</TargetFramework>
     <ImplicitUsings>enable</ImplicitUsings>
@@ -7,34 +6,28 @@
     <Platforms>x64;arm64</Platforms>
     <LangVersion>preview</LangVersion>
   </PropertyGroup>
-
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     <IsAotCompatible>True</IsAotCompatible>
     <IsTrimmable>True</IsTrimmable>
     <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
   </PropertyGroup>
-
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
     <IsAotCompatible>True</IsAotCompatible>
     <IsTrimmable>True</IsTrimmable>
     <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
     <DebugType>none</DebugType>
   </PropertyGroup>
-
   <PropertyGroup Condition="'$(Platform)' == 'x64'">
     <PlatformTarget>x64</PlatformTarget>
   </PropertyGroup>
-
   <PropertyGroup Condition="'$(Platform)' == 'arm64'">
     <PlatformTarget>ARM64</PlatformTarget>
   </PropertyGroup>
-
   <ItemGroup>
     <PackageReference Include="Magick.NET-Q8-OpenMP-x64" Version="14.0.0" />
     <PackageReference Include="SharpCompress" Version="0.38.0" />
     <PackageReference Include="ZString" Version="2.6.0" />
   </ItemGroup>
-
   <ItemGroup>
     <None Update="Config\Languages\da.json">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
@@ -76,9 +69,7 @@
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </None>
   </ItemGroup>
-
-	<ItemGroup>
-		<InternalsVisibleTo Include="PicView.Tests" />
-	</ItemGroup>
-
-</Project>
+  <ItemGroup>
+    <InternalsVisibleTo Include="PicView.Tests" />
+  </ItemGroup>
+</Project>