diff --git a/orbit/pkg/packaging/linux_shared.go b/orbit/pkg/packaging/linux_shared.go index 71b25f9b4..35e5fe2a6 100644 --- a/orbit/pkg/packaging/linux_shared.go +++ b/orbit/pkg/packaging/linux_shared.go @@ -23,6 +23,7 @@ func buildNFPM(opt Options, pkger nfpm.Packager) error { if err != nil { return errors.Wrap(err, "failed to create temp dir") } + os.Chmod(tmpDir, 0755) defer os.RemoveAll(tmpDir) log.Debug().Str("path", tmpDir).Msg("created temp dir") diff --git a/orbit/pkg/packaging/macos.go b/orbit/pkg/packaging/macos.go index c0507b8ea..4601f4dac 100644 --- a/orbit/pkg/packaging/macos.go +++ b/orbit/pkg/packaging/macos.go @@ -27,6 +27,7 @@ func BuildPkg(opt Options) error { if err != nil { return errors.Wrap(err, "failed to create temp dir") } + os.Chmod(tmpDir, 0755) defer os.RemoveAll(tmpDir) log.Debug().Str("path", tmpDir).Msg("created temp dir") diff --git a/orbit/pkg/packaging/windows.go b/orbit/pkg/packaging/windows.go index 969fb4194..ebdb1ceee 100644 --- a/orbit/pkg/packaging/windows.go +++ b/orbit/pkg/packaging/windows.go @@ -22,6 +22,7 @@ func BuildMSI(opt Options) error { if err != nil { return errors.Wrap(err, "failed to create temp dir") } + os.Chmod(tmpDir, 0755) defer os.RemoveAll(tmpDir) log.Debug().Str("path", tmpDir).Msg("created temp dir")