forked from Printrbot/FirmwareUpdatr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-firmware-app.sh
executable file
·22 lines (18 loc) · 997 Bytes
/
build-firmware-app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# This script will build the Mac OS X native app used to install firmware on a Printrbot
# Requirements:
# * Platypus: http://sveinbjorn.org/platypus
# Install the GUI app and also the command-line tool (from within the app's Preferences window)
#
# * cocoaDialog: http://mstratman.github.io/cocoadialog/
# This must be installed in /Applications, a copy will be bundled into the finished app
#
# * dfu-programmer: http://dfu-programmer.sourceforge.net
# A pre-built copy is provided along with this script and will be bundled into the finished app
# Specify the location on your system in the PATH_TO_DFU variable below, this should be the
# top-level directory which was given as a PREFIX to the 'make' command used to build dfu-programmer.
# In other words it will contain bin/, lib/, etc. sub-directories
#
PATH_TO_DFU=./dfu/
VERSION="1.02"
/usr/local/bin/platypus -P 'Printrbot Firmware Updater.platypus' -y -f $PATH_TO_DFU -V $VERSION 'Printrbot Firmware Updater.app'