mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
build(nix): actually make sure libcommands.so is outputted to correct dir (obj)
This commit is contained in:
parent
00ba1753a2
commit
2027da40ad
1 changed files with 5 additions and 4 deletions
|
|
@ -90,11 +90,12 @@
|
|||
set -x
|
||||
commandslib="''${1:-}"
|
||||
if [ "$commandslib" == "" ]; then
|
||||
cargo build --package commands --release
|
||||
commandslib="target/release/libcommands.so"
|
||||
cargo -Z unstable-options build --package commands --release --artifact-dir obj/
|
||||
commandslib="obj/libcommands.so"
|
||||
else
|
||||
cp -f "$commandslib" obj/
|
||||
fi
|
||||
uniffi-bindgen-cs "$commandslib" --library --out-dir="''${2:-./PluralKit.Bot}"
|
||||
cp -f "$commandslib" obj/
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
@ -204,7 +205,7 @@
|
|||
set -x
|
||||
${pluralkitConfCheck}
|
||||
${self'.apps.generate-command-parser-bindings.program}
|
||||
dotnet build -c Release -o obj/
|
||||
dotnet build ./PluralKit.Bot/PluralKit.Bot.csproj -c Release -o obj/
|
||||
exec dotnet obj/PluralKit.Bot.dll
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue