Skip to content

Commit

Permalink
Fix SelfContained Option
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Sep 21, 2023
1 parent 627b9e6 commit 9bb7c5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Nickvision.FlatpakGenerator/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal class Options
/// Whether to download runtime packages required to build self-contained apps
/// </summary>
[Option('s', "self-contained", Required = false, Default = true, HelpText = "Add runtime packages required to build self-contained apps.")]
public bool SelfContained { get; set; }
public bool? SelfContained { get; set; }
/// <summary>
/// Whether to download runtime packages required to build self-contained apps
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Nickvision.FlatpakGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ await Parser.Default.ParseArguments<Options>(args)
{
var sources = GenerateSourcesFromProject(o.InputFile, o.DestDir, o.TempDir, o.RunAsUser);
var addPackages = o.AdditionalPackages.ToList();
if (o.SelfContained)
if (o.SelfContained == true)
{
addPackages.Add("microsoft.aspnetcore.app.runtime.linux-arm");
addPackages.Add("microsoft.aspnetcore.app.runtime.linux-arm64");
Expand Down

0 comments on commit 9bb7c5a

Please sign in to comment.