MonoGame.Packaging.Flatpak 3.7.0.18

This package allows you to package up your MonoGame game into a flatpak installer for Linux.

Install-Package MonoGame.Packaging.Flatpak -Version 3.7.0.18
dotnet add package MonoGame.Packaging.Flatpak --version 3.7.0.18
<PackageReference Include="MonoGame.Packaging.Flatpak" Version="3.7.0.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.Packaging.Flatpak --version 3.7.0.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package only works if you are targeting .NET Core. This package allows you to package up your MonoGame game into a flatpak installer for Linux.

Requirements:

  • netcoreapp as the target
  • flatpak
    • org.freedesktop.Platform/x86_64/1.6
    • org.freedesktop.Sdk/x86_64/1.6

Flatpak install instructions: https://flatpak.org/setup/

To install the required runtimes, simply do:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.freedesktop.Platform/x86_64/1.6
flatpak install flathub org.freedesktop.Sdk/x86_64/1.6

Usage:

Call the publish command as you normally would: dotnet publish -r linux-x64, the resulting flatpak should get generated in the output directory.

Customization:

This nuget package offers the following properties for customizing the build of the flatpak. Simply set them in the csproj or pass them to msbuild to change their values:

| Variable Name            | Description / Default value            |
| ------------------------ | -------------------------------------- |
| MGFlatpakIntermediateDir | Folder for temporary files.            |
|                          | $(IntermediateOutputPath)              |
| ------------------------ | -------------------------------------- |
| MGFlatpakOutputPath      | The output folder for the flatpak.     |
|                          | $(OutputPath)                          |
| ------------------------ | -------------------------------------- |
| MGFlatpakProjectDir      | The current project directory.         |
|                          | $(ProjectDir)                          |
| ------------------------ | -------------------------------------- |
| MGFlatpakPublishDir      | The publish output folder.             |
|                          | $(PublishDir)                          |
| ------------------------ | -------------------------------------- |
| MGFlatpakAssemblyName    | The output assembly to run.            |
|                          | $(AssemblyName)                        |
| ------------------------ | -------------------------------------- |
| MGFlatpakTitle           | The game title.                        |
|                          | $(AssemblyTitle)                       |
| ------------------------ | -------------------------------------- |
| MGFlatpakId              | The game id.                           |
|                          | com.$(Company).$(AssemblyName)         |
| ------------------------ | -------------------------------------- |
| MGFlatpakIcon            | The icon file, needs to be png format. |
|                          | Icon.png                               |

This package only works if you are targeting .NET Core. This package allows you to package up your MonoGame game into a flatpak installer for Linux.

Requirements:

  • netcoreapp as the target
  • flatpak
    • org.freedesktop.Platform/x86_64/1.6
    • org.freedesktop.Sdk/x86_64/1.6

Flatpak install instructions: https://flatpak.org/setup/

To install the required runtimes, simply do:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.freedesktop.Platform/x86_64/1.6
flatpak install flathub org.freedesktop.Sdk/x86_64/1.6

Usage:

Call the publish command as you normally would: dotnet publish -r linux-x64, the resulting flatpak should get generated in the output directory.

Customization:

This nuget package offers the following properties for customizing the build of the flatpak. Simply set them in the csproj or pass them to msbuild to change their values:

| Variable Name            | Description / Default value            |
| ------------------------ | -------------------------------------- |
| MGFlatpakIntermediateDir | Folder for temporary files.            |
|                          | $(IntermediateOutputPath)              |
| ------------------------ | -------------------------------------- |
| MGFlatpakOutputPath      | The output folder for the flatpak.     |
|                          | $(OutputPath)                          |
| ------------------------ | -------------------------------------- |
| MGFlatpakProjectDir      | The current project directory.         |
|                          | $(ProjectDir)                          |
| ------------------------ | -------------------------------------- |
| MGFlatpakPublishDir      | The publish output folder.             |
|                          | $(PublishDir)                          |
| ------------------------ | -------------------------------------- |
| MGFlatpakAssemblyName    | The output assembly to run.            |
|                          | $(AssemblyName)                        |
| ------------------------ | -------------------------------------- |
| MGFlatpakTitle           | The game title.                        |
|                          | $(AssemblyTitle)                       |
| ------------------------ | -------------------------------------- |
| MGFlatpakId              | The game id.                           |
|                          | com.$(Company).$(AssemblyName)         |
| ------------------------ | -------------------------------------- |
| MGFlatpakIcon            | The icon file, needs to be png format. |
|                          | Icon.png                               |

  • .NETFramework 4.6

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.7.0.18 285 4/6/2018
3.7.0.17 346 4/6/2018
3.7.0.16 261 4/5/2018