woodpecker: use upstream naming for cli executable

The intended executable name is supposed to be `woodpecker`, not
`woodpecker-cli`, as pointed out in [1].

[1]: https://github.com/woodpecker-ci/woodpecker/issues/2112
This commit is contained in:
Bruno BELANYI 2024-02-10 18:52:27 +00:00
parent 61276c8099
commit 3d7e60beb0
2 changed files with 6 additions and 2 deletions

View File

@ -12,6 +12,6 @@ buildGoModule {
meta = common.meta // {
description = "Command line client for the Woodpecker Continuous Integration server";
mainProgram = "woodpecker-cli";
mainProgram = "woodpecker";
};
}

View File

@ -17,7 +17,11 @@ in
postInstall = ''
cd $out/bin
for f in *; do
mv -- "$f" "woodpecker-$f"
if [ "$f" = cli ]; then
mv -- "$f" "woodpecker"
else
mv -- "$f" "woodpecker-$f"
fi
done
cd -
'';