Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Commit

Permalink
Add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
999eagle committed Mar 25, 2019
1 parent d3d2be9 commit 8019277
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.idea/
.cargo/
libs/
build/
25 changes: 25 additions & 0 deletions build-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

echo "Cleaning output"
if [[ -d build ]]; then
rm -rf build
fi
mkdir build

echo "Building app"
cd openbook-app
flutter build bundle
cd ..

echo "Copying app data"
cp -r openbook-app/build/flutter_assets build/
cp icudtl.dat build/

echo "Building binaries"
cargo build --release --target x86_64-unknown-linux-gnu
cargo build --release --target x86_64-pc-windows-gnu

echo "Copying binaries"
cp target/x86_64-unknown-linux-gnu/release/openbook-desktop build/
cp target/x86_64-pc-windows-gnu/release/openbook-desktop.exe build/
cp target/x86_64-pc-windows-gnu/release/flutter_engine.dll build/

0 comments on commit 8019277

Please sign in to comment.