mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fix cp arguments to match previous behavior
This commit is contained in:
@@ -76,7 +76,11 @@ public class OsxBuildTools
|
||||
throw new ArgumentException("Source directory does not exist: " + source);
|
||||
}
|
||||
Log.Debug($"Copying '{source}' to '{dest}' (preserving symlinks)");
|
||||
Log.Debug(Exe.InvokeAndThrowIfNonZero("cp", new[] { "-a", source, dest }, null));
|
||||
|
||||
// copy the contents of the folder, not the folder itself.
|
||||
var src = source.TrimEnd('/') + "/.";
|
||||
var des = dest.TrimEnd('/') + "/";
|
||||
Log.Debug(Exe.InvokeAndThrowIfNonZero("cp", new[] { "-a", src, des }, null));
|
||||
}
|
||||
|
||||
public void CreateInstallerPkg(string appBundlePath, string appTitle, string appId, IEnumerable<KeyValuePair<string, string>> extraContent,
|
||||
|
||||
@@ -326,7 +326,10 @@ public abstract class PackageBuilder<T> : ICommand<T>
|
||||
CopyFilesInternal(source, target);
|
||||
} else {
|
||||
Log.Debug($"Copying '{source}' to '{target}' (preserving symlinks)");
|
||||
Log.Debug(Exe.InvokeAndThrowIfNonZero("cp", new[] { "-a", source.FullName, target.FullName }, null));
|
||||
// copy the contents of the folder, not the folder itself.
|
||||
var src = source.FullName.TrimEnd('/') + "/.";
|
||||
var dest = target.FullName.TrimEnd('/') + "/";
|
||||
Log.Debug(Exe.InvokeAndThrowIfNonZero("cp", new[] { "-a", src, dest }, null));
|
||||
|
||||
if (excludeAnnoyances) {
|
||||
foreach (var f in target.EnumerateFiles("*", SearchOption.AllDirectories)) {
|
||||
|
||||
Reference in New Issue
Block a user