dotnet-bundle icon indicating copy to clipboard operation
dotnet-bundle copied to clipboard

Damaged or incomplete app - Please help

Open McoreD opened this issue 3 years ago • 2 comments

Hi there,

I believe I followed the instructions exactly however I am getting the error in the screenshot further below.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    <RuntimeIdentifiers>osx-x64</RuntimeIdentifiers>
    <CFBundleName>NftJsonGen</CFBundleName> <!-- Also defines .app file name -->
    <CFBundleDisplayName>NftJsonGen</CFBundleDisplayName>
    <CFBundleIdentifier>com.endomint</CFBundleIdentifier>
    <CFBundleVersion>1.0.0</CFBundleVersion>
    <CFBundleShortVersionString>1.0.0</CFBundleShortVersionString>
     <OutputType>WinExe</OutputType>
    <CFBundlePackageType>APPL</CFBundlePackageType>
    <CFBundleExecutable>NftJsonGen</CFBundleExecutable>
    <CFBundleIconFile>Logo.icns</CFBundleIconFile> <!-- Will be copied from output directory -->
    <NSPrincipalClass>NSApplication</NSPrincipalClass>
    <NSHighResolutionCapable>true</NSHighResolutionCapable>
  </PropertyGroup>
  <ItemGroup>
    <Folder Include="Models\" />
    <AvaloniaResource Include="Assets\**" />
    <None Remove=".gitignore" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Avalonia" Version="0.10.10" />
    <PackageReference Include="Avalonia.Desktop" Version="0.10.10" />
    <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
    <PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="0.10.10" />
    <PackageReference Include="Avalonia.ReactiveUI" Version="0.10.10" />
    <PackageReference Include="Dotnet.Bundle" Version="*" />
  </ItemGroup>
</Project>

I would appreciate any pointers in the right direction please.

alt text

I have also got the file list as below: https://mike.getsharex.com/2022/01/20220129_y6MIvgrM2X.html

McoreD avatar Jan 28 '22 23:01 McoreD

Having the same issue here

query-wow avatar Mar 28 '22 14:03 query-wow

Managed to fix my issue. Make sure you point <CFBundleExecutable>NftJsonGen</CFBundleExecutable> to your actual executable on your project

query-wow avatar Mar 28 '22 15:03 query-wow