diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-07-23 17:10:22 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-07-23 17:10:22 +0900 |
| commit | e0eec632d0a7cca2fb09e026997fa9a39dcd7504 (patch) | |
| tree | 705ecc285e4fe05c3bba126a276c2e9e28ae9ec8 /internal/pkg/compress.go | |
| parent | 67dbb68818026f3d7a64e9519cf1aac36468b7c9 (diff) | |
internal/pkg: optional executable files
This enables a FileArtifact implementation to specify whether its resulting file should be executable. This change also implements shebang and ELF magic checks in the file artifact.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pkg/compress.go')
| -rw-r--r-- | internal/pkg/compress.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/pkg/compress.go b/internal/pkg/compress.go index 50303419..9a0c1152 100644 --- a/internal/pkg/compress.go +++ b/internal/pkg/compress.go @@ -91,6 +91,9 @@ func (c compoundCloser) Close() error { return err } +// IsExecutable returns false. +func (*decompressArtifact) IsExecutable() bool { return false } + // Cure returns a decompressor [io.ReadCloser]. func (a *decompressArtifact) Cure(r *RContext) (io.ReadCloser, error) { sr, err := r.Open(a.f) |
