You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
371 B
YAML
18 lines
371 B
YAML
# https://taskfile.dev
|
|
|
|
version: '3'
|
|
|
|
vars:
|
|
TARGET: vss
|
|
|
|
tasks:
|
|
archive:
|
|
desc: Create archive file for windows
|
|
vars:
|
|
ARCHIVE_DIR: "dist/{{.TARGET}}_{{OS}}_{{ARCH}}"
|
|
cmds:
|
|
- mkdir -p dist
|
|
- mkdir -p {{.ARCHIVE_DIR}}
|
|
- mv {{.TARGET}} {{.ARCHIVE_DIR}}
|
|
- 7z a {{.ARCHIVE_DIR}}.zip {{.ARCHIVE_DIR}}
|
|
- rm -rf {{.ARCHIVE_DIR}} |