Skip to content

Latest commit

 

History

History
119 lines (74 loc) · 3.02 KB

hack026.md

File metadata and controls

119 lines (74 loc) · 3.02 KB

hack 026: Building Shoes for Linux: Building Shoes on VirtualBox

Laptop

  • ThinkPad X40
  • Windows XP SP3

Setup VirtualBox

Setup Ubunto: Ubuntu 10.04 LTS (Lucid Lynx)

Build Ruby 1.9.1

Open terminal on Ubuntu Desktop and run the following commands.

  • sudo apt-get install libssl-dev
  • sudo apt-get install zlib1g-dev
  • wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.9.1-p378.tar.gz
  • tar xfvz ruby-1.9.1-p378.tar.gz
  • cd ruby-1.9.1-p378
  • ./configure --enable-shared
  • make
  • sudo make install

Build Shoes

Open terminal on Ubuntu Desktop and run the following commands.

  • sudo apt-get install git-core libcairo2-dev libpixman-1-dev libpango1.0-dev libungif4-dev libjpeg62-dev libgtk2.0-dev portaudio19-dev libsqlite3-dev libcurl4-openssl-dev
  • git clone git://github.com/ashbb/shoes.git
  • cd shoes
  • rake

That's it! You can find dist/shoes. Just do the following.

  • cd dist
  • ./shoes

Package Shoes

  • wget http://megastep.org/makeself/makeself.run
  • chmod 755 makeself.run
  • ./makeself.run
  • sudo ln -s /home/ashbb/work/makeself-2.1.5/makeself.sh /usr/local/bin/makeself
  • sudo ln -s /home/ashbb/work/makeself-2.1.5/makeself-header.sh /usr/local/bin/makeself-header.sh
  • cd shoes
  • rake installer

You can find pkg/shoes-0.r1416.run.

Snapshot 1

Opening window.

Screenshot-Shoes-opening.png

Snapshot 2

Manual window.

Screenshot-manual.png

Snapshot 3

    Shoes.app do
      background hotpink..orange, angle: 90
      stack do
        para 'Hello world!'
        para "RELEASE_NAME: #{Shoes::RELEASE_NAME}"
        para "RELEASE_ID: #{Shoes::RELEASE_ID}"
        para "REVISION: #{Shoes::REVISION}"
        para "RUBY_PLATFORM: #{Shoes::RUBY_PLATFORM}"
        para "RUBY_VERSION: #{Shoes::RUBY_VERSION}"
      end
    end

Screenshot-Shoes-for-Linux-1.png

Snapshot 4

The shoes_app_launcher.shy can be launched!! This is a shy file created by Policeman for Windows.

Screenshot-Shoes-app-launcher.png

Note