Skip to content

Commit

Permalink
fix: add code gen web
Browse files Browse the repository at this point in the history
Signed-off-by: bkioshn <[email protected]>
  • Loading branch information
bkioshn committed Nov 4, 2024
1 parent 4e01564 commit c207ec6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions earthly/flutter_rust_bridge/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ IMPORT ../rust AS rust-ci
builder:
FROM debian:stable-slim

WORKDIR /work

RUN apt-get update \
&& apt-get install -y \
apt-utils \
Expand All @@ -22,3 +24,13 @@ builder:
DO rust-ci+COPY_TOOL --tool="flutter-rust-bridge-codegen" --bin="flutter_rust_bridge_codegen"

RUN flutter_rust_bridge_codegen --version

# Generated necessary files for running Flutter web.
code-generator-web:
FROM +builder
RUN flutter_rust_bridge_codegen generate
RUN flutter_rust_bridge_codegen build-web

SAVE ARTIFACT ./web/pkg pkg
SAVE ARTIFACT ./rust/src/frb_generated.rs frb_generated
SAVE ARTIFACT ./lib/src lib_src

0 comments on commit c207ec6

Please sign in to comment.