Build Script Updates (NON WORKING)
This commit is contained in:
parent
017aeaed1e
commit
ab536ee13d
3 changed files with 10 additions and 3 deletions
|
@ -8,15 +8,21 @@ WORKDIR /tmp/src
|
|||
|
||||
## Installing Requisites
|
||||
RUN apt update -y
|
||||
RUN apt install -y wget curl build-essential
|
||||
RUN apt install -y wget curl build-essential pkg-config libssl-dev
|
||||
|
||||
## Downloading RUSTUP
|
||||
RUN wget https://sh.rustup.rs -O /tmp/rustup.sh
|
||||
RUN chmod +x /tmp/rustup.sh
|
||||
RUN /tmp/rustup.sh -y
|
||||
RUN chmod +x /root/.cargo/env
|
||||
RUN /root/.cargo/env
|
||||
|
||||
## Downloading rustup requirements
|
||||
RUN /root/.cargo/bin/rustup toolchain install nightly
|
||||
RUN /root/.cargo/bin/cargo install cargo-generate
|
||||
|
||||
## Flipper-Zero Build Target
|
||||
RUN /root/.cargo/bin/rustup target add thumbv7em-none-eabihf
|
||||
RUN /root/.cargo/bin/rustup target add --toolchain nightly thumbv7em-none-eabihf
|
||||
|
||||
## Copying compile script
|
||||
COPY docker/flipper-dev.sh /bin/flipper-dev.sh
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
cp -r /src/* ./
|
||||
|
||||
# Building the Project
|
||||
/root/.cargo/bin/cargo build
|
||||
/root/.cargo/bin/cargo build --target thumbv7em-none-eabihf
|
||||
|
||||
# Copy the .FAP file to the app directory
|
||||
cp ./target/thumbv7em-none-eabihf/debug/*.fap /app/
|
|
@ -1,6 +1,7 @@
|
|||
clear
|
||||
echo "Building Project"
|
||||
docker run --rm -it \
|
||||
-e USER=$USER \
|
||||
-v "$PWD/project:/src:ro,z" \
|
||||
-v "$PWD/build:/app:Z" \
|
||||
flipper-dev
|
Loading…
Reference in a new issue