Skip to content

Commit

Permalink
restore 7zip-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
jessehouwing committed Jun 11, 2024
1 parent a3f2177 commit 8fc74b8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
13 changes: 5 additions & 8 deletions BuildTasks/PublishExtension/v5/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion BuildTasks/PublishExtension/v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "module",
"license": "MIT",
"dependencies": {
"7zip-bin-win": "^2.2.0",
"7zip-bin": "^5.2.0",
"azure-pipelines-task-lib": "^4.13.0",
"azure-pipelines-tasks-azure-arm-rest": "^3.239.0",
"fs-extra": "^11.2.0",
Expand Down
4 changes: 2 additions & 2 deletions BuildTasks/PublishExtension/v5/vsixeditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default class VSIXEditor {
const cwd = tl.cwd();

if (tl.getPlatform() === tl.Platform.Windows) {
const sevenZip = await require("7zip-bin-win");
const sevenZip = await import ("7zip-bin");
const zip = new tr.ToolRunner(sevenZip.path7za);

zip.arg("x");
Expand Down Expand Up @@ -166,7 +166,7 @@ export default class VSIXEditor {
if (originalVsix !== targetVsix) { tl.cp(originalVsix, targetVsix, "-f"); }

if (tl.getPlatform() === tl.Platform.Windows) {
const sevenZip = await require("7zip-bin-win");
const sevenZip = await import ("7zip-bin");
const zip = new tr.ToolRunner(sevenZip.path7za);

zip.arg("u");
Expand Down
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ stages:
customCommand: 'run package'

- pwsh: |
del BuildTasks\PublishExtension\v5\node_modules\7zip-bin\linux -recurse
del BuildTasks\PublishExtension\v5\node_modules\7zip-bin\mac -recurse
del BuildTasks\*\v*\package-lock.json
del BuildTasks\*\v*\*.ts
del BuildTasks\*\v*\tsconfig.json
Expand Down

0 comments on commit 8fc74b8

Please sign in to comment.