diff --git a/update-remote-apps.sh b/update-remote-apps.sh new file mode 100755 index 0000000..3cc7c24 --- /dev/null +++ b/update-remote-apps.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +if [ ! -e "src/external" ]; then + echo "No external apps exist yet." + exit 1 +fi + +top=${PWD} + +for appDir in src/external/*; do + cd "$appDir" + if [ -e "build.sh" ]; then + ./build.sh + fi + for app in *.app; do + ${top}/output/bin/bmfs --disk ${top}/output/baremetal-os.img --offset 32KiB rm -f Applications/$app + ${top}/output/bin/bmfs --disk ${top}/output/baremetal-os.img --offset 32KiB cp $app Applications/$app + done + cd "${top}" +done