Skip to content

Commit

Permalink
Changed Exe Size
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaaammmler authored and Gaaammmler committed Feb 27, 2020
1 parent 977c37c commit fcab4be
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 79 deletions.
Binary file not shown.
Binary file not shown.
4 changes: 3 additions & 1 deletion Gm1KonverterCrossPlatform/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura >

<ExcludeAssemblies>
libSkiaSharp
</ExcludeAssemblies>

</Costura>
</Weavers>
84 changes: 11 additions & 73 deletions Gm1KonverterCrossPlatform/Gm1KonverterCrossPlatform.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ShouldIncludeNativeSkiaSharp>True</ShouldIncludeNativeSkiaSharp>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<OutputType>WinExe</OutputType>
<OutputType>Exe</OutputType>
<TargetFrameworks>net461</TargetFrameworks>
<RuntimeIdentifiers>win10-x64;linux-x64</RuntimeIdentifiers>
<PublishSingleFile>false</PublishSingleFile>
<RuntimeIdentifiers>win10-x64;osx;linux-x64</RuntimeIdentifiers>
<LangVersion>7.2</LangVersion>
<StartupObject></StartupObject>

<ApplicationIcon>Assets\avalonia-logo.ico</ApplicationIcon>

<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netcoreapp2.1|AnyCPU'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Compile Update="**\*.xaml.cs">
Expand All @@ -24,22 +14,24 @@
<SubType>Designer</SubType>
</AvaloniaResource>
<AvaloniaResource Include="Assets\*" />
<AvaloniaResource Remove="Images\**" />
<AvaloniaResource Remove="Models\**" />
<Compile Remove="Images\**" />
<Compile Remove="Models\**" />
<EmbeddedResource Remove="Images\**" />
<EmbeddedResource Remove="Models\**" />
<None Remove="Images\**" />
<None Remove="Models\**" />
<None Remove="Costura64\libSkiaSharp.dll" />
<None Remove="Costura64\libSkiaSharp.dylib" />
<AvaloniaResource Remove="HelperClasses\Language.de-DE.xaml" />
<AvaloniaResource Remove="HelperClasses\Language.xaml" />
<AvaloniaResource Remove="HelperClasses\Views\ChangeColorPalette.xaml" />
<AvaloniaResource Remove="HelperClasses\Views\MessageBoxWindow.xaml" />
<AvaloniaResource Remove="Views\InfoWindow.xaml" />
<None Remove="HelperClasses\Views\ChangeColorPalette.xaml" />
<None Remove="HelperClasses\Views\MessageBoxWindow.xaml" />
<None Remove="Views\InfoWindow.xaml" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Costura64\libSkiaSharp.dll" />
<EmbeddedResource Include="Costura64\libSkiaSharp.dylib" />
</ItemGroup>
<ItemGroup>

<PackageReference Include="Avalonia" Version="0.9.3" />
<PackageReference Include="Avalonia.Desktop" Version="0.9.3" />
<PackageReference Include="Avalonia.ReactiveUI" Version="0.9.3" />
Expand Down Expand Up @@ -88,39 +80,6 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Update="Assets\info.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\Interface1.JPG">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\Interface2.JPG">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\Palette1.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\Palette2.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\Palette3.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\TiledObject1.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\TiledObject2.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\TiledObject3.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\TiledObject4.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Assets\TiledObject5.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="Language.ru-RU.xaml">
<Generator>MSBuild:Compile</Generator>
</None>
Expand All @@ -137,25 +96,4 @@
<Generator>MSBuild:Compile</Generator>
</None>
</ItemGroup>
<ItemGroup>
<None Update="C:\Users\Gaaammmler\.nuget\packages\skiasharp\1.68.0\build\net45\..\..\runtimes\win-x86\native\libSkiaSharp.dll">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Update="C:\Users\Gaaammmler\.nuget\packages\skiasharp\1.68.0\build\net45\..\..\runtimes\osx\native\libSkiaSharp.dylib">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="C:\Users\Gaaammmler\.nuget\packages\skiasharp\1.68.0\build\net45\..\..\runtimes\osx\native\libSkiaSharp.dylib" Link="Costura64\libSkiaSharp.dylib">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="C:\Users\Gaaammmler\.nuget\packages\skiasharp\1.68.0\build\net45\..\..\runtimes\win-x86\native\libSkiaSharp.dll" Link="Costura64\libSkiaSharp.dll">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>

</Project>
3 changes: 1 addition & 2 deletions Gm1KonverterCrossPlatform/Views/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">

<TextBlock Text="{Binding Filetype}" HorizontalAlignment="Center" Height="20"/>

<Image Name="HelpIcon" Margin="10,0,0,0" Source="avares://Gm1KonverterCrossPlatform/Assets/info.png"/><!--Source="avares://Gm1KonverterCrossPlatform/Assets/info.png"-->
<Image Name="HelpIcon" Margin="10,0,0,0" Source="avares://Gm1KonverterCrossPlatform/Assets/info.png"/>
</StackPanel>


Expand Down
6 changes: 3 additions & 3 deletions Gm1KonverterCrossPlatform/Views/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public MainWindow()
MenuItem exportTgxImageMenueItem = this.Get<MenuItem>("ExportTgxImageMenueItem");
exportTgxImageMenueItem.Click += ExportTgxImage;




Image image = this.Get<Image>("HelpIcon");
Expand Down Expand Up @@ -546,7 +546,7 @@ private void ExportImagesMethod(bool bigImage)


if (vm.UserConfig.OpenFolderAfterExport)
Process.Start("explorer.exe", vm.UserConfig.WorkFolderPath + "\\" + filewithoutgm1ending + "\\Images");
Process.Start("explorer.exe", vm.UserConfig.WorkFolderPath + "\\" + filewithoutgm1ending +((bigImage)?"\\BigImage": "\\Images"));


vm.LoadWorkfolderFiles();
Expand Down Expand Up @@ -857,7 +857,7 @@ private async Task<string> GetFolderAsync(String name,String initialDirectory)

if (!String.IsNullOrEmpty(initialDirectory))
{
openFolderDialog.Directory = initialDirectory;
openFolderDialog.DefaultDirectory = initialDirectory;
}
var file = await openFolderDialog.ShowAsync(this);
if (String.IsNullOrEmpty(file))
Expand Down

0 comments on commit fcab4be

Please sign in to comment.