# https://taskfile.dev

version: '3'

vars:
  TARGET: vss

tasks:
  archive:
    desc: Create archive file
    vars:
      ARCHIVE_DIR: "{{.TARGET}}_{{OS}}_{{ARCH}}"
    cmds:
      - mkdir -p dist
      - mkdir -p {{.ARCHIVE_DIR}}
      - mv {{.TARGET}} {{.ARCHIVE_DIR}}
      - cp README.md {{.ARCHIVE_DIR}}
      - tar -zcvf {{.ARCHIVE_DIR}}.tar.gz {{.ARCHIVE_DIR}}
      - mv {{.ARCHIVE_DIR}}.tar.gz dist
      - rm -rf {{.ARCHIVE_DIR}}
