From 20b9f54736daeb91fe4e8d898b3f9d1f560cc931 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Mon, 24 Apr 2023 13:07:54 +0200 Subject: [PATCH] deploy: Use `.exe` extension for release binaries --- BUILD.bazel | 6 ++++-- launcher/BUILD.bazel | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 10c119ed9..908457466 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -14,8 +14,10 @@ pkg_tar( mode = "0777", remap_paths = { "src/main/java/com/code_intelligence/jazzer/jazzer_standalone_deploy.jar": "jazzer_standalone.jar", - "launcher/jazzer": "jazzer", - }, + } | select({ + "@platforms//os:windows": {"launcher/jazzer": "jazzer.exe"}, + "//conditions:default": {"launcher/jazzer": "jazzer"}, + }), strip_prefix = select({ "@platforms//os:windows": ".\\", "//conditions:default": "./", diff --git a/launcher/BUILD.bazel b/launcher/BUILD.bazel index bcf3eaa2e..50bd47727 100644 --- a/launcher/BUILD.bazel +++ b/launcher/BUILD.bazel @@ -38,7 +38,7 @@ cc_binary( ) # On macOS, builds a binary that supports both x86_64 and arm64. -# On all other platforms, is just symlinks the input binary. +# On all other platforms, it just symlinks the input binary. universal_binary( name = "jazzer", binary = ":jazzer_single_arch",