Is there zip command on the windows VMs?

I’m trying to deploy a github release as a zip file, and it works on Linux and macOS, but seems the zip command is not available on Windows. Any ideas how to solve that?

ended up using choco to install zip on windows. here’s the code:

before_deploy:
  - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install zip ; fi
  - strip "target/$TARGET/release/${PROJECT_NAME}${SUFFIX}"
  - zip ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.zip -j "target/$TARGET/release/${PROJECT_NAME}${SUFFIX}"
1 Like

As per Windows builder snapshot, there’s 7z.exe on PATH which can work with .zip archives among others.

1 Like