forked from baskerville/plato
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This scripts does all the build steps and checks the setup beforehand to reduce frustration.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
|
||
cd "`dirname \"$0\"`" | ||
|
||
if ! which rustup >/dev/null 2>&1; then | ||
echo 'Please install rustup either from your system package manager or https://rustup.rs/' >&2 | ||
exit 1 | ||
fi | ||
|
||
if ! rustup show active-toolchain | grep "nightly-" >/dev/null 2>&1; then | ||
echo 'Please use the nightly build.' >&2 | ||
echo 'Run "rustup install nightly; rustup default nightly" to do so' >&2 | ||
exit 1 | ||
fi | ||
|
||
if ! rustup target list | grep "armv7-unknown-linux-gnueabihf (installed)" >/dev/null 2>&1; then | ||
echo 'You need to add the armv7-unknown-linux-gnueabihf target' >&2 | ||
echo 'Run "rustup target add armv7-unknown-linux-gnueabihf" to do so' >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d /usr/local/oecore-x86_64/ ]; then | ||
echo "Couldn't find the oecore toolchain at its default location" >&2 | ||
echo "Please install it from https://remarkable.engineering/" >&2 | ||
exit 1 | ||
fi | ||
|
||
./clean.sh && \ | ||
./build.sh && \ | ||
./dist.sh || exit $? | ||
|
||
echo | ||
echo 'Congrats! You have compiled the plato port for the reMarkable!' | ||
echo 'The dist/ folder contains everything you need. Put it onto your reMarklable and run ./plato.sh to use it.' | ||
echo 'Tip: After the first launch and proper "Quit", you can make changes to the created file Settings.toml .' |