mirror of
https://github.com/Smaug123/AdventOfCode2022
synced 2025-10-12 21:08:42 +00:00
19 lines
470 B
Bash
19 lines
470 B
Bash
#!/bin/bash
|
|
runHook preInstall
|
|
target="${out:?}/lib/dotnet/@pname@"
|
|
mkdir -p "$target"
|
|
cp -rv @outputFiles@ AdventOfCode2022.App/bin/Release/net7.0/publish/* "$target"
|
|
pushd "$out" || exit 1
|
|
remove-duplicated-dlls.sh
|
|
popd || exit 2
|
|
set -f
|
|
exe="$target/AdventOfCode2022.App"
|
|
[ -f "$exe" ] || exit 3
|
|
mkdir -p "$out"/bin
|
|
commandName="$(basename -s .exe "$(echo "$exe" | tr "[:upper:]" "[:lower:]")")"
|
|
makeWrapper \
|
|
"$exe" \
|
|
"$out/bin/$commandName"
|
|
|
|
runHook postInstall
|