steps:
  - task: UsePythonVersion@0
    inputs:
      versionSpec: '3.7'
      addToPath: true

  - script: |
      python --version
      python -m pip install toml click
    displayName: Installing python dependencies

  - script: |
      set -e
      python packager.py build
      cp target/packager/mac/espanso-*.gz .
      cp target/packager/mac/espanso-*.txt .
      cp target/packager/mac/espanso.rb .
      ls -la
    displayName: "Cargo build and packaging for MacOS"