-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhowtobuild.txt
246 lines (159 loc) · 9.56 KB
/
howtobuild.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
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