DZone 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

Snippets has posted 5883 posts at DZone. View Full User Profile

Unpacking The Alpha Flex 2 Framework From The Windows Download For Use On Mac OS X

10.23.2005
| 2920 views |
  • submit to reddit
        Assumes you've already downloaded the Windows installer to your desktop. For more details see <a href="http://robbevan.com/blog/2005/10/23/working-with-flex-2-on-mac-os-x/">this post</a>.


#!/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