mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
fix docker build
This commit is contained in:
parent
323377c217
commit
a9355654df
3 changed files with 5 additions and 5 deletions
|
|
@ -32,9 +32,9 @@ COPY Cargo.lock /app/
|
||||||
COPY crates/ /app/crates
|
COPY crates/ /app/crates
|
||||||
|
|
||||||
# Generate command parser bindings
|
# Generate command parser bindings
|
||||||
RUN mkdir -p app/obj && cargo -Z unstable-options build --package commands --lib --release --artifact-dir app/obj/
|
RUN mkdir -p /app/bin && cargo -Z unstable-options build --package commands --lib --release --artifact-dir /app/bin/
|
||||||
RUN uniffi-bindgen-cs "app/obj/libcommands.so" --library --out-dir="app/PluralKit.Bot"
|
RUN uniffi-bindgen-cs "/app/bin/libcommands.so" --library --out-dir="/app/PluralKit.Bot"
|
||||||
RUN cargo run --package commands --bin write_cs_glue -- "app/PluralKit.Bot/commandtypes.cs"
|
RUN cargo run --package commands --bin write_cs_glue -- "/app/PluralKit.Bot/commandtypes.cs"
|
||||||
|
|
||||||
# build bot
|
# build bot
|
||||||
RUN dotnet build -c Release -o bin
|
RUN dotnet build -c Release -o bin
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ default-run = "commands"
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "write_cs_glue"
|
name = "write_cs_glue"
|
||||||
path = "src/bin/write_cs_glue.rs"
|
path = "src/write_cs_glue.rs"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib", "lib"]
|
crate-type = ["cdylib", "lib"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue