Ripunzip: update to 2.0.2

This commit is contained in:
Paolo Tranquilli
2025-06-02 17:40:43 +02:00
parent aed9e9c883
commit ddbe29a8e2
9 changed files with 31 additions and 20 deletions

View File

@@ -239,24 +239,24 @@ go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//go/extractor:go.mod")
use_repo(go_deps, "org_golang_x_mod", "org_golang_x_tools")
lfs_files = use_repo_rule("//misc/bazel:lfs.bzl", "lfs_files")
lfs_archive = use_repo_rule("//misc/bazel:lfs.bzl", "lfs_archive")
lfs_files(
lfs_archive(
name = "ripunzip-linux",
srcs = ["//misc/ripunzip:ripunzip-linux"],
executable = True,
src = "//misc/ripunzip:ripunzip-Linux.zip",
build_file = "//misc/ripunzip:BUILD.ripunzip.bazel",
)
lfs_files(
lfs_archive(
name = "ripunzip-windows",
srcs = ["//misc/ripunzip:ripunzip-windows.exe"],
executable = True,
src = "//misc/ripunzip:ripunzip-Windows.zip",
build_file = "//misc/ripunzip:BUILD.ripunzip.bazel",
)
lfs_files(
lfs_archive(
name = "ripunzip-macos",
srcs = ["//misc/ripunzip:ripunzip-macos"],
executable = True,
src = "//misc/ripunzip:ripunzip-macOS.zip",
build_file = "//misc/ripunzip:BUILD.ripunzip.bazel",
)
register_toolchains(

View File

@@ -2,7 +2,7 @@ load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
alias(
name = "ripunzip",
actual = select({"@platforms//os:" + os: "@ripunzip-" + os for os in ("linux", "windows", "macos")}),
actual = select({"@platforms//os:" + os: "@ripunzip-%s//:ripunzip" % os for os in ("linux", "windows", "macos")}),
visibility = ["//visibility:public"],
)

View File

@@ -0,0 +1,11 @@
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
native_binary(
name = "ripunzip",
src = glob(["ripunzip-*"])[0],
out = "ripunzip" + select({
"@platforms//os:windows": ".exe",
"//conditions:default": "",
}),
visibility = ["//visibility:public"],
)

BIN
misc/ripunzip/ripunzip-Linux.zip (Stored with Git LFS) Normal file

Binary file not shown.

BIN
misc/ripunzip/ripunzip-Windows.zip (Stored with Git LFS) Normal file

Binary file not shown.

BIN
misc/ripunzip/ripunzip-linux (Stored with Git LFS)

Binary file not shown.

BIN
misc/ripunzip/ripunzip-macOS.zip (Stored with Git LFS) Normal file

Binary file not shown.

BIN
misc/ripunzip/ripunzip-macos (Stored with Git LFS)

Binary file not shown.

BIN
misc/ripunzip/ripunzip-windows.exe (Stored with Git LFS)

Binary file not shown.