🔨 update archive script

This commit is contained in:
zztkm 2022-08-14 02:48:08 +09:00
parent 68428d61e0
commit 2322e28028
2 changed files with 4 additions and 2 deletions

View file

@ -9,11 +9,12 @@ tasks:
archive:
desc: Create archive file
vars:
ARCHIVE_DIR: "dist/{{.TARGET}}_{{OS}}_{{ARCH}}"
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}}

View file

@ -9,11 +9,12 @@ tasks:
archive:
desc: Create archive file
vars:
ARCHIVE_DIR: "dist/{{.TARGET}}_{{OS}}_{{ARCH}}"
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}}