vss/misc/Taskfile_darwin.yml
2022-08-14 02:48:08 +09:00

20 lines
No EOL
440 B
YAML

# 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}}