diff --git a/.travis.yml b/.travis.yml index 16c1ab5..b370b42 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,6 @@ matrix: - dosfstools - zip script: - - cd ~ - sudo bash ./scripts/ci/rpi/mkimage.sh - zip ${IMAGE}.zip ${IMAGE} deploy: diff --git a/scripts/ci/rpi/mkimage.sh b/scripts/ci/rpi/mkimage.sh index b046878..6679aa3 100644 --- a/scripts/ci/rpi/mkimage.sh +++ b/scripts/ci/rpi/mkimage.sh @@ -16,6 +16,7 @@ fi MOUNT="mnt" echo "Welcome to mkimage.sh script." +cd .. pwd # Unmount drives and general cleanup on exit, the trap ensures this will always @@ -75,6 +76,9 @@ cp /usr/bin/qemu-arm-static "${MOUNT}/usr/bin" cp "${MOUNT}/etc/ld.so.preload" "${MOUNT}/etc/_ld.so.preload" echo "" > "${MOUNT}/etc/ld.so.preload" +# copy ofxPiMapper to openFrameworks/addons +cp -r ofxPiMapper "${MOUNT}/home/pi/openFrameworks/addons/" + # Run the installation script as if we would be inside the Raspberry Pi. chroot "${MOUNT}" "/tmp/${SCRIPT}"