MonoGame.Packaging.Flatpak
3.7.0.18
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
<PackageReference Include="MonoGame.Packaging.Flatpak" Version="3.7.0.18" />
paket add MonoGame.Packaging.Flatpak --version 3.7.0.18
#r "nuget: MonoGame.Packaging.Flatpak, 3.7.0.18"
// 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 |
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 | 587 | 7/26/2022 |
3.8.0.1641 | 811 | 8/10/2020 |
3.8.0.1375-develop | 390 | 5/27/2020 |
3.7.0.18 | 1,098 | 4/6/2018 |
3.7.0.17 | 1,265 | 4/6/2018 |
3.7.0.16 | 977 | 4/5/2018 |