mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
build(nix): dont forget to copy commands lib for bot to use
This commit is contained in:
parent
7949e7e1f9
commit
11842e7637
1 changed files with 7 additions and 2 deletions
|
|
@ -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/
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue