Minor fixes for linux

This commit is contained in:
Caelan
2024-01-09 21:44:36 +00:00
parent 813f9141f8
commit fbc4ab9231
2 changed files with 3 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ Comment={Options.PackTitle ?? Options.PackId} {Options.PackVersion}
Icon={Options.PackId}
Exec={mainExeName}
Path=~
Categories=Development;
""");
File.Copy(Options.Icon, Path.Combine(dir.FullName, Options.PackId + Path.GetExtension(Options.Icon)), true);
@@ -53,7 +54,7 @@ Path=~
CopyFiles(new DirectoryInfo(packDir), bin, progress, true);
File.WriteAllText(Path.Combine(bin.FullName, "sq.version"), nuspecText);
return Task.FromResult(packDir);
return Task.FromResult(dir.FullName);
}
protected override Task CreatePortablePackage(Action<int> progress, string packDir, string outputPath)

View File

@@ -18,7 +18,7 @@ namespace Velopack.Vpk.Commands
ReleaseDirectoryOption = AddOption<DirectoryInfo>((v) => ReleaseDirectory = v.ToFullNameOrNull(), "-o", "--outputDir")
.SetDescription("Output directory for created packages.")
.SetArgumentHelpName("DIR")
.SetDefault(new DirectoryInfo(".\\Releases"));
.SetDefault(new DirectoryInfo("Releases"));
ChannelOption = AddOption<string>((v) => Channel = v, "-c", "--channel")
.SetDescription("The channel to use for this release.")