Copy readme files to release zip

This commit is contained in:
kolaente 2020-09-16 20:12:07 +02:00
parent 9b5106baa9
commit 7367693c6e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
.idea/
qrcode-bulk
dist/
mage-static
*.txt
qrcodes/

View File

@ -648,10 +648,10 @@ func (Release) OsPackage() error {
if err := moveFile(path, folder+info.Name()); err != nil {
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
}
if err := copyFile(RootPath+"/LICENSE", folder+"LICENSE"); err != nil {
if err := copyFile(RootPath+"/README.md", folder+"README.md"); err != nil {
return err
}
}
@ -668,7 +668,7 @@ func (Release) Zip() error {
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
out, err := c.Output()
fmt.Print(string(out))