phantomjs/deploy
Ariya Hidayat aaca7774c9 Vagrant setup: Don't clone PhantomJS into Git build directory.
http://code.google.com/p/phantomjs/issues/detail?id=963
2013-01-09 01:03:27 -08:00
..
.gitignore ignore deploy/brandelf 2012-06-19 00:29:18 +01:00
README.md Add breakpad support for Mac 2012-06-19 00:28:37 +01:00
Vagrantfile Setup Vagrant to build Linux packages on CentOS 5. 2013-01-05 09:35:27 -08:00
brandelf.c Improve package-linux-dynamic.sh to create a quasi-static phantomjs. 2012-04-25 19:36:00 +02:00
build-and-package.sh Ask for a confirmation before initiating the build. 2012-11-10 00:11:14 -08:00
package.sh Use bash from PATH rather than hardcoded in /bin. 2013-01-09 00:06:58 -08:00
provision-vm.sh Vagrant setup: Don't clone PhantomJS into Git build directory. 2013-01-09 01:03:27 -08:00

README.md

Packaging PhantomJS

This directory contains various scripts to assist with making PhantomJS packages.

Packaging for Linux

Linux building/packaging is best done in a virtual machine to ensure isolation and clean state. This is also necessary to build for different architectures.

We use Vagrant to help with this. Please see the Vagrant documentation for instructions on how to install VirtualBox and Vagrant.

Once you have Vagrant installed, building should be as simple as running:

$ export PHANTOMJS_VERSION=1.6.0 # change as necessary
$ vagrant up $ARCH

Where $ARCH is either i686 or x86_64.

This runs the provision_vm.sh script, which installs the necessary dependencies, checks out a fresh copy of the PhantomJS repository, switches to the relevant tag, builds and packages the software and the associated debugging symbols tarball, and copies the tarballs out of the VM onto your host machine.

If it runs successfully, you will see the tarballs in this directory, ready for upload.

If there are any problems, you can re-run the script with:

$ vagrant provision $ARCH

Or SSH into the VM:

$ vagrant ssh $ARCH

Once you're done, you can destroy the VM with:

$ vagrant destroy $ARCH

If you need to build a new version, you should destroy the VM and start again to ensure a clean state. (Or SSH in and do a git clean.)

Packaging for OS X

Run deploy/build-and-package.sh. That's it.

However, if you have previously built the sources in release mode, you should clean your tree to make sure all the debugging symbols gets compiled:

$ make clean && cd src/qt && make clean && cd ../..