mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
added new icon copy in linux command runner
This commit is contained in:
@@ -34,6 +34,10 @@ public class LinuxPackCommandRunner : PackageBuilder<LinuxPackOptions>
|
||||
File.Copy(icon, Path.Combine(dir.FullName, iconFilename), true);
|
||||
File.Copy(icon, Path.Combine(dir.FullName, ".DirIcon"), true);
|
||||
|
||||
string iconDirPath = Path.Combine(dir.FullName, "usr", "share", "icons", "hicolor", "scalable", "apps");
|
||||
Directory.CreateDirectory(iconDirPath);
|
||||
File.Copy(icon, Path.Combine(iconDirPath, iconFilename), true);
|
||||
|
||||
var categories = String.IsNullOrWhiteSpace(Options.Categories)
|
||||
? "Utility"
|
||||
: Options.Categories.TrimEnd(';');
|
||||
|
||||
Reference in New Issue
Block a user