Skip to content

Commit

Permalink
Added script for updating external apps
Browse files Browse the repository at this point in the history
  • Loading branch information
tay10r committed Jun 23, 2018
1 parent 2671144 commit bd5f236
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions 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

0 comments on commit bd5f236

Please sign in to comment.