mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 17:20:14 +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 = ''
|
text = ''
|
||||||
set -x
|
set -x
|
||||||
[ "''${1:-}" == "" ] && cargo build --package commands --release
|
commandslib="''${1:-}"
|
||||||
uniffi-bindgen-cs "''${1:-target/release/libcommands.so}" --library --out-dir="''${2:-./PluralKit.Bot}"
|
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