fix(package): create symlink to expose binary as "zen"

This change might fix the issue mentioned here:
https://github.com/0xc000022070/zen-browser-flake/issues/36

But the problem with this is that if both zen flavors are installed
then one of them will have more priority than the other so they should
use complete binary name like "zen-twilight" or "zen-beta" instead of
only "zen"
This commit is contained in:
Luis Quiñones
2025-04-03 18:21:45 -05:00
parent 93a716206e
commit 05274a63b9

View File

@@ -83,6 +83,8 @@ in
mkdir -p "$out/bin"
ln -s "$prefix/lib/zen-bin-${variant.version}/zen" "$out/bin/${binaryName}"
# ! twilight and beta could collide if both are installed
ln -s "$prefix/lib/zen-bin-${variant.version}/zen" "$out/bin/zen"
mkdir -p "$out/lib/zen-${variant.version}/distribution"
ln -s ${policiesJson} "$out/lib/zen-${variant.version}/distribution/policies.json"