Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion misc/ripunzip/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)

Expand Down
11 changes: 11 additions & 0 deletions misc/ripunzip/BUILD.ripunzip.bazel
Original file line number Diff line number Diff line change
@@ -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"],
)
3 changes: 3 additions & 0 deletions misc/ripunzip/ripunzip-Linux.zip
Git LFS file not shown
3 changes: 3 additions & 0 deletions misc/ripunzip/ripunzip-Windows.zip
Git LFS file not shown
3 changes: 0 additions & 3 deletions misc/ripunzip/ripunzip-linux

This file was deleted.

3 changes: 3 additions & 0 deletions misc/ripunzip/ripunzip-macOS.zip
Git LFS file not shown
3 changes: 0 additions & 3 deletions misc/ripunzip/ripunzip-macos

This file was deleted.

3 changes: 0 additions & 3 deletions misc/ripunzip/ripunzip-windows.exe

This file was deleted.

Loading