On Fri, Aug 3, 2012 at 5:44 AM, C Anthony Risinger <[email protected]> wrote:
> this is brief because i need to go to bed, but i've got the gobject
> backed running near flawlessly for simple examples, and only a couple
> edge cases to get the heavier stuff running.
>
> still need to add important bits, like XMLHTTP, but i'll be working on
> it more this weekend.  the good news is DOM handling is near 100%
> perfect, and stuff like alerts are working as well.
>
> ... to try it out, build webkit 1.8.1 built with this patch:
>
> https://github.com/downloads/pyjs/pyjs/bug77835.patch
>
> thanks!

since building webkit is sort of annoying, i've put my Archlinux
package here (sorry, x86_64 only):

https://github.com/downloads/pyjs/pyjs/libwebkit3-1.8.1-1-x86_64.pkg.tar.gz

... Archlinux users can simply install this package, checkout
`feature/giwebkit` branch, and try it out.

i don't want to spend time creating packages for
Ubuntu/Debian/{insert-here} at this point, but if your distribution is
recent enough (eg. binary compatible with *all* the dynamically linked
dependencies ... kind of alot), you can try this script:

https://github.com/downloads/pyjs/pyjs/giwebkit.sh

... which looks like:

# cat giwebkit.sh
================================================
#!/bin/bash

pkg_file=libwebkit3-1.8.1-1-x86_64.pkg.tar.gz
pkg_uri=https://github.com/downloads/pyjs/pyjs/${pkg_file}
git_uri=https://github.com/pyjs/pyjs.git

cd
mkdir -p .pyjd/
echo -e '[gui]\nengine = giwebkit' > ~/.pyjd/pyjdrc
mkdir giwebkit/
cd giwebkit/
git clone -b feature/giwebkit --depth=1 --single-branch ${git_uri}
curl -L ${pkg_uri} | tee ${pkg_file} | tar xz usr/lib
cd pyjs/
python2.7 bootstrap.py
cd examples/helloworld/

export GI_TYPELIB_PATH=~/giwebkit/usr/lib/girepository-1.0
export LD_LIBRARY_PATH=~/giwebkit/usr/lib
../../bin/pyjd Hello.py
================================================

... simply download the file, `chmod +x` it, and see what happens.
tbh, there isn't a great chance it will work outside of Arch, but the
above does work if all the right libraries are installed, or if your
on Arch and just want to try it without installing [replacing]
anything.

now, if you're really daring, you can just:

curl -L https://github.com/downloads/pyjs/pyjs/giwebkit.sh | bash

... and maybe it'll Just Work.

-- 

C Anthony

-- 



Reply via email to