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

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

  - script: |
      python packager.py build
      copy "target\\packager\\win\\espanso-win-installer.exe" "espanso-win-installer.exe"
      copy "target\\packager\\win\\espanso-win-installer-sha256.txt" "espanso-win-installer-sha256.txt"
      dir
    displayName: "Build and packaging for Windows"