From a9355654dfceac1002c9b33982e4e305e7c2f398 Mon Sep 17 00:00:00 2001 From: alyssa Date: Wed, 8 Oct 2025 21:50:58 +0000 Subject: [PATCH] fix docker build --- ci/Dockerfile.dotnet | 6 +++--- crates/commands/Cargo.toml | 4 ++-- crates/commands/src/{bin => }/write_cs_glue.rs | 0 3 files changed, 5 insertions(+), 5 deletions(-) rename crates/commands/src/{bin => }/write_cs_glue.rs (100%) diff --git a/ci/Dockerfile.dotnet b/ci/Dockerfile.dotnet index 000b7bae..6054e74c 100644 --- a/ci/Dockerfile.dotnet +++ b/ci/Dockerfile.dotnet @@ -32,9 +32,9 @@ COPY Cargo.lock /app/ COPY crates/ /app/crates # Generate command parser bindings -RUN mkdir -p app/obj && cargo -Z unstable-options build --package commands --lib --release --artifact-dir app/obj/ -RUN uniffi-bindgen-cs "app/obj/libcommands.so" --library --out-dir="app/PluralKit.Bot" -RUN cargo run --package commands --bin write_cs_glue -- "app/PluralKit.Bot/commandtypes.cs" +RUN mkdir -p /app/bin && cargo -Z unstable-options build --package commands --lib --release --artifact-dir /app/bin/ +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" # build bot RUN dotnet build -c Release -o bin diff --git a/crates/commands/Cargo.toml b/crates/commands/Cargo.toml index 6bc1d977..6c274a33 100644 --- a/crates/commands/Cargo.toml +++ b/crates/commands/Cargo.toml @@ -6,7 +6,7 @@ default-run = "commands" [[bin]] name = "write_cs_glue" -path = "src/bin/write_cs_glue.rs" +path = "src/write_cs_glue.rs" [lib] crate-type = ["cdylib", "lib"] @@ -18,4 +18,4 @@ command_definitions = { path = "../command_definitions"} uniffi = { version = "0.29" } [build-dependencies] -uniffi = { version = "0.29", features = [ "build" ] } \ No newline at end of file +uniffi = { version = "0.29", features = [ "build" ] } diff --git a/crates/commands/src/bin/write_cs_glue.rs b/crates/commands/src/write_cs_glue.rs similarity index 100% rename from crates/commands/src/bin/write_cs_glue.rs rename to crates/commands/src/write_cs_glue.rs