Copy readme files to release zip
This commit is contained in:
parent
9b5106baa9
commit
7367693c6e
|
@ -1,6 +1,7 @@
|
||||||
.idea/
|
.idea/
|
||||||
qrcode-bulk
|
qrcode-bulk
|
||||||
dist/
|
dist/
|
||||||
|
mage-static
|
||||||
|
|
||||||
*.txt
|
*.txt
|
||||||
qrcodes/
|
qrcodes/
|
||||||
|
|
|
@ -648,10 +648,10 @@ func (Release) OsPackage() error {
|
||||||
if err := moveFile(path, folder+info.Name()); err != nil {
|
if err := moveFile(path, folder+info.Name()); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := copyFile(RootPath+"/config.yml.sample", folder+"config.yml.sample"); err != nil {
|
if err := copyFile(RootPath+"/README_DE.md", folder+"README_DE.md"); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := copyFile(RootPath+"/LICENSE", folder+"LICENSE"); err != nil {
|
if err := copyFile(RootPath+"/README.md", folder+"README.md"); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -668,7 +668,7 @@ func (Release) Zip() error {
|
||||||
|
|
||||||
fmt.Printf("Zipping %s...\n", info.Name())
|
fmt.Printf("Zipping %s...\n", info.Name())
|
||||||
|
|
||||||
c := exec.Command("zip", "-r", RootPath+"/"+DIST+"/zip/"+info.Name(), ".", "-i", "*")
|
c := exec.Command("zip", "-r", RootPath+"/"+DIST+"/zip/"+info.Name()+".zip", ".", "-i", "*")
|
||||||
c.Dir = path
|
c.Dir = path
|
||||||
out, err := c.Output()
|
out, err := c.Output()
|
||||||
fmt.Print(string(out))
|
fmt.Print(string(out))
|
||||||
|
|
Loading…
Reference in New Issue