Skip to content

Commit

Permalink
SelfContained --> NoSelfContained
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Sep 21, 2023
1 parent 9bb7c5a commit 887ce4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Nickvision.FlatpakGenerator/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ internal class Options
[Option('t', "temp-dir", Required = false, Default = "./FlatpakGeneratorPackages", HelpText = "Temporary directory to store packages (will be automatically removed after the process ends).")]
public string TempDir { get; set; }
/// <summary>
/// Whether to download runtime packages required to build self-contained apps
/// Whether to NOT 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; }
[Option("no-self-contained", Required = false, HelpText = "Add runtime packages required to build self-contained apps.")]
public bool NoSelfContained { 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 == true)
if (!o.NoSelfContained)
{
addPackages.Add("microsoft.aspnetcore.app.runtime.linux-arm");
addPackages.Add("microsoft.aspnetcore.app.runtime.linux-arm64");
Expand Down

0 comments on commit 887ce4c

Please sign in to comment.