mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
fix: Squirrel migration fails if there are files in the package with no extension
This commit is contained in:
@@ -346,6 +346,7 @@ public abstract class PackageBuilder<T> : ICommand<T>
|
||||
var extensions = Directory.EnumerateFiles(rootDirectory, "*", SearchOption.AllDirectories)
|
||||
.Select(p => Path.GetExtension(p).TrimStart('.').ToLower())
|
||||
.Distinct()
|
||||
.Where(ext => !String.IsNullOrWhiteSpace(ext))
|
||||
.Select(ext => $""" <Default Extension="{ext}" ContentType="application/octet" />""")
|
||||
.ToArray();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user