Skip to content

Commit

Permalink
justfile: use gtar on macOS
Browse files Browse the repository at this point in the history
I went to release from my macOS machine and ran into trouble because Apple's
tar doesn't have the arguments we want. So force use of GNU tar.
  • Loading branch information
indygreg committed Nov 16, 2023
1 parent a191dcb commit 1453147
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ default:

exe_suffix := if os() == "windows" { ".exe" } else { "" }

tar := if os() == "macos" { "gtar" } else { "tar" }

macosx_deployment_target := if os() == "macos" {
if arch() == "arm" {
"11.0"
Expand Down Expand Up @@ -83,7 +85,7 @@ notarize path:
{{path}}

_tar_directory source_directory dir_name dest_dir:
tar \
{{tar}} \
--sort=name \
--owner=root:0 \
--group=root:0 \
Expand Down

0 comments on commit 1453147

Please sign in to comment.