🔨 update archive script
This commit is contained in:
parent
68428d61e0
commit
2322e28028
2 changed files with 4 additions and 2 deletions
|
@ -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}}
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue