14 lines
382 B
Go
14 lines
382 B
Go
package task_pack_release
|
|
|
|
import "os"
|
|
|
|
func PackRelease(srcPath string, dstPath string, releaseName string, archivePwd string, archiveSize string, nfoSettings *NfoCreatorSettings) error {
|
|
nfoPath, err := CreateNfo(dstPath, nfoSettings)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
defer os.Remove(nfoPath)
|
|
|
|
return compress(srcPath, dstPath, releaseName, archivePwd, archiveSize, nfoPath)
|
|
}
|