fix: refactor publish command #12
1 changed files with 5 additions and 5 deletions
|
|
@ -255,16 +255,16 @@ func copyShaFiles(destPath, srcPath, repoName, version string) {
|
||||||
|
|
||||||
// Copy files from srcPath
|
// Copy files from srcPath
|
||||||
shaSum := repoName + "_" + version + "_SHA256SUMS"
|
shaSum := repoName + "_" + version + "_SHA256SUMS"
|
||||||
shaSumPath := srcPath + "/" + shaSum
|
shaSumPath := path.Join(srcPath, shaSum)
|
||||||
|
|
||||||
// _SHA256SUMS file
|
// _SHA256SUMS file
|
||||||
_, err := copyFile(shaSumPath, destPath+shaSum)
|
_, err := copyFile(shaSumPath, path.Join(destPath, shaSum))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// _SHA256SUMS.sig file
|
// _SHA256SUMS.sig file
|
||||||
_, err = copyFile(shaSumPath+".sig", destPath+shaSum+".sig")
|
_, err = copyFile(shaSumPath+".sig", path.Join(destPath, shaSum+".sig"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
|
@ -312,8 +312,8 @@ func copyBuildZips(destPath, distPath, repoName, version string) error {
|
||||||
// Loop through and copy each
|
// Loop through and copy each
|
||||||
for _, v := range shaSumContents {
|
for _, v := range shaSumContents {
|
||||||
zipName := v[1]
|
zipName := v[1]
|
||||||
zipSrcPath := distPath + zipName
|
zipSrcPath := path.Join(distPath, zipName)
|
||||||
zipDestPath := destPath + zipName
|
zipDestPath := path.Join(destPath, zipName)
|
||||||
|
|
||||||
log.Printf(" - Zip Source: %s", zipSrcPath)
|
log.Printf(" - Zip Source: %s", zipSrcPath)
|
||||||
log.Printf(" - Zip Dest: %s", zipDestPath)
|
log.Printf(" - Zip Dest: %s", zipDestPath)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue