Skip to content

Commit

Permalink
Update Readme & Cleanup Build Script
Browse files Browse the repository at this point in the history
  • Loading branch information
prikhi committed May 17, 2015
1 parent 6664e9b commit 91bf775
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ distribution-specific packages.

### Windows

You'll need `wget` installed so you can pull the Windows XULRunner runtime and
You'll need `curl` installed so you can pull the Windows XULRunner runtime and
`nsis` to compile the installer.

```bash
Expand All @@ -88,6 +88,18 @@ cd build

This should place an installer `exe` in the `Outputs/` folder.

### OS X

You'll need `curl` installed to fetch the OS X XULRunner runtime.

```bash

cd build
./build.sh mac
```

This will create a `Pencil.app` in the `Outputs/` folder.

### Documentation

To build the docs locally you'll need `Sphinx` and the `sphinx_rtd_theme`,
Expand Down
33 changes: 16 additions & 17 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,28 +214,28 @@ mac() {
tar -jxvf temp.tar.bz2 -C Mac
rm temp.tar.bz2
fi
echo "---------------------------------------------"
echo "------------------------------------------"
echo "* Building Mac OS X App with Private XRE *"
echo "---------------------------------------------"
echo "------------------------------------------"

rm -Rf ./Outputs/Mac/
mkdir ./Outputs/Mac/
OUTPUT="./Outputs/Mac"

cp -R ./Mac/* ./Outputs/Mac/
rm -Rf $OUTPUT
mkdir $OUTPUT

cp -R ./Mac/* $OUTPUT/

mkdir -p ./Outputs/Mac/Pencil.app/Contents/Resources/
mkdir -p $OUTPUT/Pencil.app/Contents/Resources/
cp -R ./Outputs/Pencil/* $_
cp -RL ./Outputs/Mac/XUL.framework/Versions/Current/* ./Outputs/Mac/Pencil.app/Contents/MacOS/
mv ./Outputs/Mac/Pencil.app/Contents/MacOS/dependentlibs.list ./Outputs/Mac/Pencil.app/Contents/Resources/dependentlibs.list
cp ./Outputs/Pencil/application.ini ./Outputs/Mac/Pencil.app/Contents/Resources/application.ini

./replacer.sh ./Outputs/Mac/Pencil.app/Contents/Resources/application.ini
./replacer.sh ./Outputs/Mac/Pencil.app/Contents/Resources/defaults/preferences/pencil.js
./replacer.sh ./Outputs/Mac/Pencil.app/Contents/Info.plist
cp -RL $OUTPUT/XUL.framework/Versions/Current/* $OUTPUT/Pencil.app/Contents/MacOS/
mv $OUTPUT/Pencil.app/Contents/MacOS/dependentlibs.list $OUTPUT/Pencil.app/Contents/Resources/dependentlibs.list
cp ./Outputs/Pencil/application.ini $OUTPUT/Pencil.app/Contents/Resources/application.ini

#genisoimage -V Pencil -r -apple -root ./Outputs/Mac/
./replacer.sh $OUTPUT/Pencil.app/Contents/Resources/application.ini
./replacer.sh $OUTPUT/Pencil.app/Contents/Resources/defaults/preferences/pencil.js
./replacer.sh $OUTPUT/Pencil.app/Contents/Info.plist

cp -R ./Outputs/Mac/Pencil.app ./Outputs/Pencil.app
cp -R $OUTPUT/Pencil.app ./Outputs/Pencil.app
}

ubuntu() {
Expand Down Expand Up @@ -279,14 +279,13 @@ maintainer_clean() {
if [ -d 'Win32/xulrunner' ]; then
echo "Removing the Windows copy of XULRunner..."
rm -Rf ./Win32/xulrunner
clean
fi

if [ -d 'Mac/XUL.framework' ]; then
echo "Removing the Mac copy of XULRunner..."
rm -Rf ./Mac/XUL.framework
clean
fi
clean
}


Expand Down

0 comments on commit 91bf775

Please sign in to comment.