build(nix): dont forget to copy commands lib for bot to use

This commit is contained in:
dusk 2025-01-04 00:45:48 +09:00
parent 7949e7e1f9
commit 11842e7637
No known key found for this signature in database

View file

@ -103,8 +103,13 @@
];
text = ''
set -x
[ "''${1:-}" == "" ] && cargo build --package commands --release
uniffi-bindgen-cs "''${1:-target/release/libcommands.so}" --library --out-dir="''${2:-./PluralKit.Bot}"
commandslib="''${1:-}"
if [ "$commandslib" == "" ]; then
cargo build --package commands --release
commandslib="target/release/libcommands.so"
fi
uniffi-bindgen-cs "$commandslib" --library --out-dir="''${2:-./PluralKit.Bot}"
cp -f "$commandslib" obj/
'';
};
};