Skip to content

Commit

Permalink
Instructions for building OS-specific installers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsecher committed Nov 17, 2015
1 parent 4d991d8 commit 675ed94
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
29 changes: 25 additions & 4 deletions README.md
Expand Up @@ -4,10 +4,7 @@

This is a tool for transferring applications to a [Mono device](http://openmono.com).

At the moments it works for
- [X] OS X
- [X] Linux
- [X] Windows
At the moments it works for OS X, Debian/Ubuntu GNU/Linux, and Windows.

To build Mono Programmer, you need Qt and various libraries, see architecture-specific sections below.

Expand All @@ -31,6 +28,14 @@ To run acceptance tests, install [Aruba](https://github.com/cucumber/aruba) and

- Optionally install Aruba: `$ gem install aruba`

To build an installer, run

$ ./compile.sh
$ cd pacakge/osx
$ ./package.sh

which places a package in `bin/Monoprog-vX.Y.Z-x64.pkg`.

### XCode 7

If you upgrade to XCode 7, you need to edit `Qt/5.3/clang_64/mkspecs/qdevice.pri` to
Expand All @@ -44,6 +49,14 @@ contain the line

- Optionally install Aruba: `$ sudo aptitude install ruby-aruba`

To build an installer, run

$ ./compile.sh
$ cd pacakge/debian
$ ./makedeb.sh

which places a package in `bin/monoprog_X.Y.Z.deb`.

## Windows

Monoprog has been tested with Visual Studio Express 2010. It might work in other configurations, please report back.
Expand All @@ -65,3 +78,11 @@ Run
Run

C:/> acceptancetest.bat

To build an installer install [NSIS](http://nsis.sourceforge.net/Download/) and run

$ ./compile.bat
$ cd pacakge/windows
$ makensis monoprog.nsi

which places a package in `bin/MonoprogSetup-vX.Y.Z-X86.exe`.
10 changes: 9 additions & 1 deletion package/osx/package.sh
Expand Up @@ -20,7 +20,11 @@ if [ ! -d "$BUILDDIR" ]; then
exit 1
fi

$QTDIR/bin/macdeployqt $BUILDDIR/$EXE.app -no-plugins
if [ ! -x "$QTDIR/bin/macdeployqt" ]; then
echo "$QTDIR/bin/macdeployqt" does not exist, cannot create package.
exit 2
fi
"$QTDIR/bin/macdeployqt" "$BUILDDIR/$EXE.app" -no-plugins

if [ -e "$DISTDIR" ]; then
rm -rf "$DISTDIR"
Expand All @@ -31,6 +35,10 @@ cp -R "$BUILDDIR/$EXE.app" "$DISTDIR/Applications/"
mkdir -p "$DISTDIR/usr/local/bin"
ln -s "../../../Applications/$EXE.app/Contents/MacOS/$EXE" "$DISTDIR/usr/local/bin/$EXE"

if ! hash pkgbuild 2>/dev/null; then
echo pkgbuild does not exist, cannot create package.
exit 3
fi
pkgbuild \
--root "$DISTDIR" \
--identifier com.openmono.monoprog \
Expand Down

0 comments on commit 675ed94

Please sign in to comment.