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.
19 lines
455 B
YAML
19 lines
455 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}}
|
|
- cp README.md {{.ARCHIVE_DIR}}
|
|
- powershell Compress-Archive -Path {{.ARCHIVE_DIR}} -DestinationPath {{.ARCHIVE_DIR}}.zip
|
|
- rm -rf {{.ARCHIVE_DIR}} |