From 95f51ae4c3b64d2c49fe76d8bd599bec8471ac03 Mon Sep 17 00:00:00 2001 From: Mohammad Nadeem Date: Sat, 21 Aug 2021 12:03:40 -0400 Subject: [PATCH] fixed issues in build script for Pi --- build_pi.sh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/build_pi.sh b/build_pi.sh index 1995578..c73604a 100644 --- a/build_pi.sh +++ b/build_pi.sh @@ -1,16 +1,18 @@ #!/usr/bin/env bash -echo "Building App" -pyinstaller -y --clean --windowed muezzin.spec > /dev/null -echo "Packaging" -pushd dist > /dev/null -tar czf ../../muezzin.tar muezzin/ > /dev/null -popd > /dev/null -cd .. -echo "Extracting" -mkdir muezzin_app -mv muezzin.tar muezzin_app -cd muezzin_app -tar -xvf muezzin.tar > /dev/null -echo "Package succesfully built" +echo "Building App"; +pyinstaller -y --clean --windowed muezzin.spec > /dev/null; +echo "Packaging"; +cd dist > /dev/null; +touch ../../muezzin.tar; +chmod 644 ../../muezzin.tar; +tar czf ../../muezzin.tar muezzin/ > /dev/null; +cd .. > /dev/null; +cd ..; +echo "Extracting"; +mkdir muezzin_app; +mv muezzin.tar muezzin_app; +cd muezzin_app; +tar -xvf muezzin.tar > /dev/null; +echo "Package succesfully built";