aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/unzip.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/unzip.go')
-rw-r--r--internal/rosa/unzip.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/internal/rosa/unzip.go b/internal/rosa/unzip.go
index 84e6120c..cc821428 100644
--- a/internal/rosa/unzip.go
+++ b/internal/rosa/unzip.go
@@ -6,7 +6,7 @@ import (
"hakurei.app/internal/pkg"
)
-func (t Toolchain) newUnzip() pkg.Artifact {
+func (t Toolchain) newUnzip() (pkg.Artifact, string) {
const (
version = "6.0"
checksum = "fcqjB1IOVRNJ16K5gTGEDt3zCJDVBc7EDSra9w3H93stqkNwH1vaPQs_QGOpQZu1"
@@ -29,6 +29,14 @@ mv unzip /work/system/bin/
mustDecode(checksum),
pkg.TarGzip,
), false,
- )))
+ ))), version
+}
+func init() {
+ artifactsM[Unzip] = Metadata{
+ f: Toolchain.newUnzip,
+
+ Name: "unzip",
+ Description: "portable compression/archiver utilities",
+ Website: "https://infozip.sourceforge.net/",
+ }
}
-func init() { artifactsF[Unzip] = Toolchain.newUnzip }