colindembovsky / cols-agent-tasks

Colin's ALM Corner Custom Build Tasks
MIT License
83 stars 67 forks source link

Replace Tokens Feature Request: Allow task to work with zip files #151

Open deadlydog opened 4 years ago

deadlydog commented 4 years ago

It would be awesome if when the Source Path points at a zip file, that it could automatically unzip the file to a temporary directory, do the token replacement, and then zip the directory back up and overwrite the original zip file. That is what the MS File Transform task does and it's super useful, especially for .Net Framework web apps which typically get zipped up into an MsDeploy package when published.

colindembovsky commented 4 years ago

I think you could do this using an unzip, replace, zip sequence. But I'm happy to accept a PR for this!

deadlydog commented 4 years ago

Hey @colindembovsky the PR to add zip file support is up :) You'll want to pull down the branch and run the test to make sure it works as expected though (I couldn't get the tests to run properly for some reason).

deadlydog commented 4 years ago

@colindembovsky any chance you've had time to take a look at the PR yet? I also see a number of other PRs waiting to be merged in, most of which are low risk documentation PRs. Hopefully you'll have time to give this project some more love soon :)