Skip to content

Commit 8c45924

Browse files
committed
Fix GUI proj file, add publish script
1 parent 77df631 commit 8c45924

File tree

3 files changed

+38
-23
lines changed

3 files changed

+38
-23
lines changed

‎PreviewApp/FastNoiseLite.csproj‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎PreviewApp/FastNoiseLiteGUI.csproj‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>WinExe</OutputType>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<PackageReference Include="Eto.Forms" Version="2.5.10" />
9+
</ItemGroup>
10+
11+
<Choose>
12+
<When Condition="$(RuntimeIdentifier) != ''">
13+
<ItemGroup>
14+
<PackageReference Condition="$(RuntimeIdentifier.StartsWith('win'))" Include="Eto.Platform.Wpf" Version="2.5.10" />
15+
<PackageReference Condition="$(RuntimeIdentifier.StartsWith('osx'))" Include="Eto.Platform.Mac64" Version="2.5.10" />
16+
<PackageReference Condition="$(RuntimeIdentifier.StartsWith('linux'))" Include="Eto.Platform.Gtk" Version="2.5.10" />
17+
</ItemGroup>
18+
</When>
19+
<Otherwise>
20+
<ItemGroup>
21+
<PackageReference Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="Eto.Platform.Wpf" Version="2.5.10" />
22+
<PackageReference Condition="$([MSBuild]::IsOSPlatform('OSX'))" Include="Eto.Platform.Mac64" Version="2.5.10" />
23+
<PackageReference Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="Eto.Platform.Gtk" Version="2.5.10" />
24+
</ItemGroup>
25+
</Otherwise>
26+
</Choose>
27+
28+
<ItemGroup>
29+
<Compile Include="..\CSharp\FastNoiseLite.cs" Link="FastNoiseLite.cs" />
30+
</ItemGroup>
31+
</Project>

‎PreviewApp/publish.bat‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dotnet publish -o .\publish -c Release -r win-x64 --no-self-contained /p:PublishSingleFile=true /p:AssemblyName=FastNoiseLiteGUI-Win64
2+
3+
dotnet publish -o .\publish -c Release -r linux-x64 --no-self-contained /p:PublishSingleFile=true /p:AssemblyName=FastNoiseLiteGUI-Linux64
4+
5+
dotnet publish -o .\publish -c Release -r osx-x64 --no-self-contained /p:MacBundleDotNet=False /p:PublishSingleFile=true /p:AssemblyName=FastNoiseLiteGUI-OSX64
6+
7+
pause

0 commit comments

Comments
 (0)