Skip to content

Commit

Permalink
Update vsixeditor.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
jessehouwing authored Jan 2, 2023
1 parent 8c7a158 commit 47b876b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions BuildTasks/PublishExtension/v4/vsixeditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ export class VSIXEditor {
zip.arg("-tzip"); // zip format
zip.arg("-mx9"); // max compression level
zip.arg("-bd"); // disable progress indicator

}
else
{
Expand All @@ -207,20 +206,25 @@ export class VSIXEditor {

if (tl.getVariable("PREVIEW_FAST_UPDATE") === "true")
{
if (originalVsix !== targetVsix) {
tl.debug("Original vsix not matching targetVsix. Copying.");
tl.debug(originalVsix);
tl.debug(targetVsix);
tl.cp(originalVsix, targetVsix, "-f");
}
tl.cd(tmpPath);
zip.arg(path.join(cwd, targetVsix)); // redirect output to file
zip.arg(".");
zip.arg("-r"); // recursive
zip.arg("-9"); // max compression level
zip.arg("-f"); // update changed files only
}
else{
if (originalVsix !== targetVsix) { tl.cp(originalVsix, targetVsix, "-f"); }
tl.cd(tmpPath);
zip.arg(path.join(cwd, targetVsix)); // redirect output to file
zip.arg(".");
zip.arg("-r"); // recursive
zip.arg("-9"); // max compression level
zip.arg("-f"); // update changed files only
}
zip.execSync();
}
Expand Down

0 comments on commit 47b876b

Please sign in to comment.