Build Script Updates (NON WORKING)

This commit is contained in:
Maddox Werts 2024-08-10 00:38:20 -04:00
parent 017aeaed1e
commit ab536ee13d
3 changed files with 10 additions and 3 deletions

View file

@ -8,15 +8,21 @@ WORKDIR /tmp/src
## Installing Requisites ## Installing Requisites
RUN apt update -y 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 ## Downloading RUSTUP
RUN wget https://sh.rustup.rs -O /tmp/rustup.sh RUN wget https://sh.rustup.rs -O /tmp/rustup.sh
RUN chmod +x /tmp/rustup.sh RUN chmod +x /tmp/rustup.sh
RUN /tmp/rustup.sh -y 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 ## 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 ## Copying compile script
COPY docker/flipper-dev.sh /bin/flipper-dev.sh COPY docker/flipper-dev.sh /bin/flipper-dev.sh

View file

@ -2,7 +2,7 @@
cp -r /src/* ./ cp -r /src/* ./
# Building the Project # 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 # Copy the .FAP file to the app directory
cp ./target/thumbv7em-none-eabihf/debug/*.fap /app/ cp ./target/thumbv7em-none-eabihf/debug/*.fap /app/

View file

@ -1,6 +1,7 @@
clear clear
echo "Building Project" echo "Building Project"
docker run --rm -it \ docker run --rm -it \
-e USER=$USER \
-v "$PWD/project:/src:ro,z" \ -v "$PWD/project:/src:ro,z" \
-v "$PWD/build:/app:Z" \ -v "$PWD/build:/app:Z" \
flipper-dev flipper-dev