Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Rob Bevan robbevan.com/blog

« Newer Snippets
Older Snippets »
Showing 1-5 of 5 total  RSS 

Unpacking the Flex 2 beta framework from the Windows installer for use on Mac OS X

Assumes you've already downloaded the Windows installer to your desktop. For more details see this post.


#!/bin/sh

mkdir /Library/flex2
cd /Library/flex2
unzip ~/Desktop/FlexBuilder2_Beta1_Install.exe InstallerData/Disk1/InstData/Resource1.zip -d tmp
unzip tmp/InstallerData/Disk1/InstData/Resource1.zip D_/builds/StagedZornSingleInstaller/subinstallers/WindowsCommon/mergemodules_zg_ia_sf.jar -d tmp
unzip tmp/D_/builds/StagedZornSingleInstaller/subinstallers/WindowsCommon/mergemodules_zg_ia_sf.jar FlexFrameworkMergeModule.iam.zip -d tmp
unzip tmp/FlexFrameworkMergeModule.iam.zip \$IA_MERGE_RESOURCES\$/FlexFrameworkMergeModule_1138525373520/0bd81c0146bf21a847b3f37b3b4a0a53_zg_ia_sf.jar -d tmp
unzip tmp/FlexFrameworkMergeModule.iam.zip \$IA_MERGE_RESOURCES\$/FlexFrameworkMergeModule_1138525373520/4c8bc042b3ca7b0232260983170d7827_zg_ia_sf.jar -d tmp
unzip tmp/FlexFrameworkMergeModule.iam.zip \$IA_MERGE_RESOURCES\$/FlexFrameworkMergeModule_1138525373520/b132434261e44543bd04561ab89768a5_zg_ia_sf.jar -d tmp
unzip tmp/\$IA_MERGE_RESOURCES\$/FlexFrameworkMergeModule_1138525373520/0bd81c0146bf21a847b3f37b3b4a0a53_zg_ia_sf.jar -d samples
unzip tmp/\$IA_MERGE_RESOURCES\$/FlexFrameworkMergeModule_1138525373520/4c8bc042b3ca7b0232260983170d7827_zg_ia_sf.jar -d lib
unzip tmp/\$IA_MERGE_RESOURCES\$/FlexFrameworkMergeModule_1138525373520/b132434261e44543bd04561ab89768a5_zg_ia_sf.jar -d frameworks
rm -R tmp



Unpacking the alpha Flex 2 framework from the Windows download for use on Mac OS X

Assumes you've already downloaded the Windows installer to your desktop. For more details see this post.


#!/bin/sh

mkdir /Library/flex2
cd /Library/flex2
unzip ~/Desktop/flexbuilder2_a1_standalone_10-14.exe InstallerData/Disk1/InstData/Resource1.zip -d tmp
unzip tmp/InstallerData/Disk1/InstData/Resource1.zip D_/builds/flex2/frameworks_zg_ia_sf.jar -d tmp
unzip tmp/D_/builds/flex2/frameworks_zg_ia_sf.jar -d frameworks
unzip tmp/InstallerData/Disk1/InstData/Resource1.zip D_/builds/flex2/lib_zg_ia_sf.jar -d tmp
unzip tmp/D_/builds/flex2/lib_zg_ia_sf.jar -d lib
unzip tmp/InstallerData/Disk1/InstData/Resource1.zip D_/builds/flex2/player/Version\ 8.5\ alpha\ 1/Debug/Install\ Flash\ Player\ 8.5\ OSX.dmg -d tmp
mv tmp/D_/builds/flex2/player/Version\ 8.5\ alpha\ 1/Debug/Install\ Flash\ Player\ 8.5\ OSX.dmg ~/Desktop/
rm -R tmp



Install fcgi gem after installing FastCGI with darwinports

sudo gem install fcgi -- --with-fcgi-dir=/opt/local

Install Ruby, Gems and Rails with darwinports

sudo port install ruby
sudo port install rb-rubygems
sudo gem install rails --include-dependencies
sudo ln /opt/local/bin/ruby /usr/local/bin/ruby


Originally from http://labs.broqn.com/blog/2005/03/ruby-on-rails-with-darwinports/ (added --include-dependencies)

Update darwinports

cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login
cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od update -P darwinports


or, if you didn't get the source from CVS:

sudo port -d selfupdate
« Newer Snippets
Older Snippets »
Showing 1-5 of 5 total  RSS