adobe/brackets-shell — pull request #59 by gruehle (2012-08-08 23:28:22+00:00)
Title: Add script for packaging www contents into Brackets.app

This pull request has several different, but mostly related, changes.

Scripts are moved from the root directory into a new 'scripts' directory. All scripts **must be run from the root directory - NOT the script directory**.

Add a new `package_www_files.sh` script for the mac. It will copy the contents of the brackets www source (specified by the BRACKETS_WWW_SRC environment variable) into Brackets.app/Contents/www.

Mac - When Brackets.app launches, look for a Brackets.app/Contents/www/index.html file to load. If the file can't be found the user is prompted to locate the launch file (as before). Note - saved preferences take precedence over this file. In other words, if you pick a different index.html file, that file will be loaded in subsequent launches. To change this behavior you can launch with special keys held down:
- hold down the SHIFT key while launching to show a file dialog allowing you to select the launch file.
- hold down the OPTION key while launching to clear preferences and load Brackets.app/Contents/www/index.html (if present).

Win - When Brackets.exe launches, look for www/index.html next to Brackets.exe, and load if present. Like the Mac, if the file can't be found, the user is prompted to select a file. Also like the Mac, saved preferences take precedence. Windows uses the same special keys during launch (with Control instead of Option).

I will update the README with all of these details.

This pull request also changes the .gitignore file to be a blacklist instead of a whitelist.