2022-08-05 06:54:09 +02:00
|
|
|
# https://taskfile.dev
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
vars:
|
|
|
|
TARGET: vss
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
archive:
|
|
|
|
desc: Create archive file
|
|
|
|
vars:
|
2022-08-13 19:48:08 +02:00
|
|
|
ARCHIVE_DIR: "{{.TARGET}}_{{OS}}_{{ARCH}}"
|
2022-08-05 06:54:09 +02:00
|
|
|
cmds:
|
|
|
|
- mkdir -p dist
|
|
|
|
- mkdir -p {{.ARCHIVE_DIR}}
|
|
|
|
- mv {{.TARGET}} {{.ARCHIVE_DIR}}
|
2022-08-05 19:54:21 +02:00
|
|
|
- cp README.md {{.ARCHIVE_DIR}}
|
2022-08-05 06:54:09 +02:00
|
|
|
- tar -zcvf {{.ARCHIVE_DIR}}.tar.gz {{.ARCHIVE_DIR}}
|
2022-08-13 19:48:08 +02:00
|
|
|
- mv {{.ARCHIVE_DIR}}.tar.gz dist
|
2022-08-05 06:54:09 +02:00
|
|
|
- rm -rf {{.ARCHIVE_DIR}}
|