MonoGame.Packaging.Flatpak 3.7.0.18

There is a newer version of this package available.
See the version list below for details.
dotnet add package MonoGame.Packaging.Flatpak --version 3.7.0.18                
NuGet\Install-Package MonoGame.Packaging.Flatpak -Version 3.7.0.18                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<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                
#r "nuget: MonoGame.Packaging.Flatpak, 3.7.0.18"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MonoGame.Packaging.Flatpak as a Cake Addin
#addin nuget:?package=MonoGame.Packaging.Flatpak&version=3.7.0.18

// Install MonoGame.Packaging.Flatpak as a Cake Tool
#tool nuget:?package=MonoGame.Packaging.Flatpak&version=3.7.0.18                

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                               |
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETFramework 4.6

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.8.1.303 580 7/26/2022
3.8.0.1641 805 8/10/2020
3.8.0.1375-develop 386 5/27/2020
3.7.0.18 1,092 4/6/2018
3.7.0.17 1,259 4/6/2018
3.7.0.16 971 4/5/2018