#! /bin/zsh
# create a fake marfile to test the updater UI
# make sure to set MOZ_OBJ_DIR in the environment

#to test the ui, run this script, make -C toolkit/mozapps/update/src/updater, then run your build

export MOZ_UPDATER_DIR=${MOZ_OBJ_DIR}dist/bin/updates/0/
# clean up
rm -fr $MOZ_UPDATER_DIR
# remove icon:
rm ${MOZ_OBJ_DIR}dist/bin/icons/updater.png
mkdir $MOZ_UPDATER_DIR
touch ${MOZ_UPDATER_DIR}update.mar
echo '3.3' > ${MOZ_UPDATER_DIR}update.version
echo 'pending' > ${MOZ_UPDATER_DIR}update.status

