Permalink
Fetching contributors…
Cannot retrieve contributors at this time
247 lines (159 sloc) 9.56 KB
This document explains how to build Rhostudio installers for Windows and Mac OSX.
Contents
Build Eclipse product
Build installer for Windows
Build installer for Mac OSX
* Build Eclipse product *
** Download required files **
1. Java Development Kit (32-bit)
go to http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html
select "Accept license agreement"
click "jdk-7u9-windows-i586.exe"
2. Git source control manager (https://github.com/downloads/schacon/testy/Git-1.7.10-preview20120409.exe)
4. Eclipse 3.7.2 (Indigo SR2) for RCP and RAP Developers (http://mirror.tspu.ru/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-rcp-indigo-SR2-win32.zip)
5. Eclipse 3.7.2 delta pack (http://mirror.tspu.ru/eclipse/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-3.7.2-delta-pack.zip)
6. DLTK SDK 4.0 for Eclipse (http://ftp.halifax.rwth-aachen.de/eclipse/technology/dltk/downloads/drops/R4.0/R-4.0-201206120903/dltk-sdk-R-4.0-201206120903.zip)
** Install and configure software **
1. Install JDK.
2. Install Git source control manager (select "Run Git from the Windows Command Prompt" on "Adjusting your PATH environment" page).
3. Create empty directory where you will build product. It will be referred to as <root>.
4. Extract Eclipse and Eclipse delta pack archives into <root> directory.
5. Clone rhostudio repository into <root>:
cd /d <root>
git clone http://github.com/rhomobile/rhostudio.git
6. Create Eclipse workspace and configure Eclipse.
Run Eclipse with command (always use absolute path as -data parameter):
<root>\eclipse\eclipse -data <root>\workspace
From menu select "Help"->"Install new software...".
Press "Add...".
Press "Archive...".
Point DLTK SDK archive.
Press "OK".
Mark "Dynamic Languages Toolkit (DLTK)" and press "Next >".
Press "Next >" again.
Accept license and press "Finish".
Wait for the DLTK installation to finish.
Restart Eclipse from "Software Updates" dialog.
From menu select "File"->"Import...".
In list of import sources select "General"->"Existing Projects into Workspace", then press "Next >".
Press "Browse...".
Select <root>\rhostudio directory, press "OK".
Press "Finish".
Close Eclipse.
** Build product **
1. Run Eclipse with command (always use absolute path as -data parameter):
<root>\eclipse\eclipse -data <root>\workspace
2. From menu select "Window"->"Show view"->"Project Explorer".
Select "RhogenWizard" item.
From menu select "File"->"Export..."
In list of export destinations select "Plug-in Development"->"Eclipse product" then press "Next >".
Select <root>\product as destination directory.
Uncheck "Generate metadata repositary" item.
Press "Finish".
* Build installer for Windows *
** Download required files **
1. Java Development Kit (32-bit)
go to http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u4-downloads-1591156.html
select "Accept license agreement"
click "jdk-7u4-windows-i586.exe"
2. Git source control manager (https://github.com/downloads/schacon/testy/Git-1.7.10-preview20120409.exe)
3. NSIS - Nullsoft Scriptable Install System (http://sourceforge.net/projects/nsis/files/NSIS%202/2.46/nsis-2.46-setup.exe/download)
and NSIS large string patch (http://sourceforge.net/projects/nsis/files/NSIS%202/2.46/nsis-2.46-strlen_8192.zip/download?use_mirror=citylan)
4. Eclipse 3.7.2 (Indigo SR2) for RCP and RAP Developers (http://mirror.tspu.ru/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-rcp-indigo-SR2-win32.zip)
5. Eclipse 3.7.2 delta pack (http://mirror.tspu.ru/eclipse/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-3.7.2-delta-pack.zip)
6. DLTK SDK 4.0 for Eclipse (http://ftp.halifax.rwth-aachen.de/eclipse/technology/dltk/downloads/drops/R4.0/R-4.0-201206120903/dltk-sdk-R-4.0-201206120903.zip)
7. Ruby 1.9.3-p125 7z archive (http://files.rubyforge.vm.bytemark.co.uk/rubyinstaller/ruby-1.9.3-p125-i386-mingw32.7z)
and RubyInstaller Development Kit (https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe)
8. Windows installer package archive (http://rhostudio.s3.amazonaws.com/instant/work/rhoinstaller.zip)
** Install and configure software **
1. Install JDK.
2. Install Git source control manager (select "Run Git from the Windows Command Prompt" on "Adjusting your PATH environment" page).
3. Install NSIS. Extract NSIS large string patch and copy its content into NSIS installation directory (into C:\Program Files (x86)\NSIS in case of typical installation).
4. Create an empty directory where you are going to build the installer, this will be referred to as <root> throughout the following steps. The path to <root> must not contain any spaces due to restrictions in the Ruby installation.
5. Extract Eclipse and Eclipse delta pack archives into <root> directory.
6. Unpack Ruby 7z archive into <root> directory. Rename new directory (ruby-1.9.3-p125-i386-mingw32) into ruby.
7. Run RubyInstaller Development Kit and extract it to <root>\devkit directory.
8. Clone rhostudio, rhodes-system-api-samples and rhoinstaller repositories into <root>:
cd /d <root>
git clone http://github.com/rhomobile/rhostudio.git
git clone http://github.com/rhomobile/rhodes-system-api-samples.git
git clone http://github.com/rhomobile/rhoinstaller.git
9. Extract Windows installer package archive into <root> directory.
10. Create <root>\files directory and place rhodes, rhoelements, rhoconnect, rhoconnect-adapters and rhohub gems there.
11. Place rhoconnect-push-<version>.tgz into <root>\files.
12. Create Eclipse workspace and configure Eclipse.
Run Eclipse with command (always use absolute path as -data parameter):
<root>\eclipse\eclipse -data <root>\workspace
From menu select "Help"->"Install new software...".
Press "Add...".
Press "Archive...".
Point DLTK SDK archive.
Press "OK".
Mark "Dynamic Languages Toolkit (DLTK)" and press "Next >".
Press "Next >" again.
Accept license and press "Finish".
Wait for the DLTK installation to finish.
Restart Eclipse from "Software Updates" dialog.
From menu select "File"->"Import...".
In list of import sources select "General"->"Existing Projects into Workspace", then press "Next >".
Press "Browse...".
Select <root>\rhostudio directory, press "OK".
Press "Finish".
Close Eclipse.
** Build installer **
1. Edit <root>\rhoinstaller\script\Rakefile file. You can tune following variables:
$version = '2.2.1.11'
$nsisPath = 'C:/Program Files (x86)/NSIS/makensis.exe'
2. Open new console (cmd.exe) and execute following commands:
path <root>\ruby\bin;C:\Windows\system32
cd /d <root>\rhoinstaller\script
rake installer:symbol
3. Wait while script finishes. New installer is created in <root> directory.
* Build installer for Mac OSX *
** Download required files **
1. Git source control manager (http://git-osx-installer.googlecode.com/files/git-1.7.10.1-intel-universal-snow-leopard.dmg)
2. Eclipse 3.7.2 (Indigo SR2) for RCP and RAP Developers (64-bit) (http://mirror.tspu.ru/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-rcp-indigo-SR2-macosx-cocoa-x86_64.tar.gz)
3. Eclipse 3.7.2 delta pack (http://mirror.tspu.ru/eclipse/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-3.7.2-delta-pack.zip)
4. DLTK SDK 4.0 for Eclipse (http://ftp.halifax.rwth-aachen.de/eclipse/technology/dltk/downloads/drops/R4.0/R-4.0-201206120903/dltk-sdk-R-4.0-201206120903.zip)
5. RhoMobileSuiteInstaller.dmg image (http://rhostudio.s3.amazonaws.com/instant/work/RhoMobileSuiteInstaller.dmg)
** Install and configure software **
1. Install Git source control manager
2. Create empty directory where you will build installer. It will be referred to as <root> in this document.
3. Place RhoMobileSuiteInstaller.dmg image into <root> directory.
4. Clone rhoinstaller, rhostudio and rhodes-system-api-samples repositories into <root> directory:
cd <root>
git clone http://github.com/rhomobile/rhoinstaller.git
git clone http://github.com/rhomobile/rhostudio.git
git clone http://github.com/rhomobile/rhodes-system-api-samples.git
5. Create <root>\files directory and place rhodes, rhoelements, rhoconnect, rhoconnect-adapters and rhohub gems there.
6. Place rhoconnect-push-<version>.tgz into <root>\files.
7. Extract Eclipse and delta pack archives into <root> directory.
cd <root>
tar -xzf <download_dir>/eclipse-rcp-indigo-SR2-macosx-cocoa-x86_64.tar.gz
unzip -o <download_dir>/eclipse-3.7.2-delta-pack.zip
8. Configure Eclipse:
Run Eclipse with command (always use absolute path as -data parameter):
<root>/eclipse/eclipse -data <root>/workspace&
From menu select "Help"->"Install new software...".
Press "Add...".
Press "Archive...".
Point DLTK SDK archive.
Press "OK".
Mark "Dynamic Languages Toolkit (DLTK)" and press "Next >".
Press "Next >" again.
Accept license and press "Finish".
Wait for the DLTK installation to finish.
Restart Eclipse from "Software Updates" dialog.
From menu select "File"->"Import...".
In list of import sources select "General"->"Existing Projects into Workspace", then press "Next >".
Press "Browse...".
Select <root>/rhostudio directory, press "Open".
Press "Finish".
Close Eclipse.
** Build installer **
1. Edit <root>\rhoinstaller\script\Rakefile file. You can tune following variables:
$version = '2.2.1.11'
2. Run build script:
cd <root>/rhoinstaller/script
rake installer:mac:make
3. New installer can be found as <root>/RMS_*.dmg