You are here

Developing Ruby (Language) Portable

3 posts / 0 new
Last post
t-unit
t-unit's picture
Offline
Last seen: 14 years 10 months ago
Joined: 2010-01-01 15:44
Developing Ruby (Language) Portable

I would love to see Ruby (Language made portable)
Though it is possible it isn't very practical.

Vital Information:
Description: Ruby is an open-source coding language.
home page: http://www.ruby-lang.org
Licence: OpenSource Coding Language

I have begun the process of compiling a packaged installer, but I am facing some difficulties setting up the installer to add the PATH to Command Prompt Portable so it can be used portably. I am using the NSIS tool to create the installer but I need to add a few tips on adding dialogues to the installer like the option to install Command Prompt Portable with Ruby and Add the PATH to the batch file. These things are eluding me and I would like to ask for some help.

I have released two versions of ruby (7zip and Executable) that have been cut down and set up for use with Command Prompt Portable. You still have to add the PATH to the batch file in the Command Prompt Portable folder. You can get them by going to my blog at http://tech-unit.blogspot.com I really haven't done anything to ruby I have just cleaned It up so it is better suited for use on a flash drive. I have include readmes in the files.

In packaging the installation I had some trouble with the Portableapps Installer packager with the lack of a executable in the folder directory. I wounder if adding an empty *.exe file in there would trick it. I ended up using NSIS for the packaging.

Here is the process that I used when I discovered the possibility. I would like to automate the process, in packaged form.
1. Command Prompt Portable - To execute ruby code
2. Notepad++ Portable - to write the code
3. Ruby Windows installation - the ruby language
Note... Links to helpful websites are provided.

Step One.
Download and install Command Prompt Portable and Notepad++ Portable

Step Two.
In the root directory of the drive create a folder called "UtilsDirectory"

Step Three.
Install Ruby Windows Installation inside the the UtilsDirectory Folder.

Step Four.
Delete the ruby entry from inside the start menu.

Step Five.
Go into the root directory of the drive and navigate to the portable apps folder and the to the Command Prompt Portable folder and then to the data folder. Open the Batch file with the normal windows text editor and add this line.

SET PATH=%~d0\UtilsDirectory\Ruby\bin;%PATH%

Save and close the windows.

Step Six.
Open Command Prompt Portable and type:

ruby -v
ruby 1.8.7

If this is displayed then ruby has been configured correctly
Thank you.

To follow the development of Ruby Portable you can check out my blog at http://tech-unit.blogspot.com

The last step would to compile a package in the Portable Apps Installer.

[Don't stick URLs in <a> tags unless you're going to use an href, otherwise you actually break the link - mod Chris]

gluxon
gluxon's picture
Offline
Last seen: 4 years 3 months ago
Developer
Joined: 2008-06-21 19:26
Why not just do this through

Why not just do this through NSIS?

I wanted to do this a while back for Eclipse development.

t-unit
t-unit's picture
Offline
Last seen: 14 years 10 months ago
Joined: 2010-01-01 15:44
I sorry but you might wan't to read the first post again!

I have been using NSIS to build a test package because There aren't any executable files that are needed to run the program. I have released two test packages.

SanDisk Cruzer 4G
PNY Micro Swivel Attache 4G With Portableapps 2.0 Beta 3
Robot Penquins... Genius

Log in or register to post comments