Need to install Glyphs or Glyphs Mini for many users on a machine, e.g., in a lab? Here is how to do it quickly.
Download the Latest Stable Version
There is a download link that always points to the latest stable version of Glyphs. You can
curl it right into the App folder:
curl https://updates.glyphsapp.com/latest2.php > ~/Desktop/Glyphs.app.zip unzip -o /Desktop/Glyphs.app.zip -d /Applications rm ~/Desktop/Glyphs.app.zip
And who would have guessed, there is also a link that points to the latest stable version of Glyphs Mini. Well, there you go:
curl https://updates.glyphsapp.com/latestMini2.php > ~/Desktop/Glyphs\ Mini.app.zip unzip -o ~/Desktop/Glyphs\ Mini.app.zip -d /Applications rm ~/Desktop/Glyphs\ Mini.app.zip
Unlocking the App for All Users
When you open the
.glyphs2License file on a Mac, Glyphs will be registered in the current user. But what if every (future) user is supposed to access a registered Glyphs? Here’s the trick. If you
sudo the install process, the registration will be stored in the Mac-wide Library rather than in the user’s Library. So what you do, is place your
.glyphs2License file on your Desktop, and run this command in Terminal:
sudo /Applications/Glyphs.app/Contents/MacOS/Glyphs -disableUI 1 "~/Desktop/file.glyphs2License"
Or, in the case of Glyphs Mini:
sudo /Applications/Glyphs\ Mini.app/Contents/MacOS/Glyphs\ Mini -disableUI 1 "~/Desktop/file.glyphsMini2License"
Needless to say, replace
file.glyphs2License with the name of your license file (the one you probably received via e-mail). This assumes that you have put your copy of Glyphs in the
/Applications folder and that you did not rename the app after download. And you probably guessed that the
disableUI 1 option runs Glyphs in a headless mode, without starting the user interface.
Pro Tip: You can copy the respective line until (and including)
-disableUI 1and paste it into Terminal, add a space, then drag the license file into the terminal window (this conveniently inserts the path to the license file), and press the Return key.
Oh, and if you are deploying in a school lab, please do not leave any license files on the machine. Be so kind:
Scripts and Plug-ins for All Users
Note: Scripts and Plug-ins are only relevant for Glyphs, not Glyphs Mini. If you are deploying Glyphs Mini, you can move on to the next chapter.
Actually, you can do the same for scripts and plug-ins. Just move scripts folder and your plug-ins folder into the system-wide Application Support folder of Glyphs. Just run these lines in Terminal to create the necessary folders:
sudo mkdir "/Library/Application Support/Glyphs/" sudo mkdir "/Library/Application Support/Glyphs/Scripts/" sudo mkdir "/Library/Application Support/Glyphs/Plugins/"
Now, you can easily clone your favourite GitHub script repositories, and make them available for all users on your Mac. Copy and paste these lines (yes, all at once!) into Terminal:
sudo git clone https://github.com/mekkablue/Glyphs-Scripts.git "/Library/Application Support/Glyphs/Scripts/mekkablue/" sudo git clone https://github.com/schriftgestalt/Glyphs-Scripts.git "/Library/Application Support/Glyphs/Scripts/schriftgestalt/" sudo git clone https://github.com/hagenburger/glyphs-export-and-install.git "/Library/Application Support/Glyphs/Scripts/hagenburger/" sudo git clone https://github.com/Tosche/Glyphs-Scripts.git "/Library/Application Support/Glyphs/Scripts/Tosche/" sudo git clone https://github.com/Mark2Mark/Glyphsapp-Scripts-Free.git "/Library/Application Support/Glyphs/Scripts/Mark2Mark/" sudo git clone https://github.com/huertatipografica/huertatipografica-scripts.git "/Library/Application Support/Glyphs/Scripts/huertatipografica/" sudo git clone https://github.com/weiweihuanghuang/wei-glyphs-scripts.git "/Library/Application Support/Glyphs/Scripts/weiweihuanghuang/" sudo git clone https://github.com/justanotherfoundry/freemix-glyphsapp.git "/Library/Application Support/Glyphs/Scripts/freemix/" sudo git clone https://github.com/m4rc1e/mf-glyphs-scripts.git "/Library/Application Support/Glyphs/Scripts/MarcFoley/" sudo git clone https://github.com/simoncozens/GlyphsScripts.git "/Library/Application Support/Glyphs/Scripts/SimonCozens/" sudo git clone https://github.com/harbortype/glyphs-scripts.git "/Library/Application Support/Glyphs/Scripts/harbortype/"
If you install these scripts, it is a good idea to also install a library called vanilla. It is a popular wrapper for accessing Cocoa user interface classes in Python scripts, and some of the scripts from above make use of it:
sudo git clone https://github.com/typesupply/vanilla.git "/Library/Application Support/Glyphs/Modules/vanilla/" cd "/Library/Application Support/Glyphs/Modules/vanilla/" sudo python2.7 setup.py install
And once you have installed these scripts, you can update with
git checkout, like this:
cd "/Library/Application Support/Glyphs/Scripts/mekkablue/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/schriftgestalt/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/hagenburger/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/Tosche/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/Mark2Mark/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/huertatipografica/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/weiweihuanghuang/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/freemix/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/MarcFoley/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/SimonCozens/"; sudo git checkout cd "/Library/Application Support/Glyphs/Scripts/harbortype/"; sudo git checkout
Just paste these lines into Terminal, and a minute later, it should all be done.
Write Access for the Adobe Fonts Folder
While you're at it, you should change the read and write permissions for the Adobe Fonts folder. Just copy and paste this line into your Terminal:
sudo chmod o+rw /Library/Application\ Support/Adobe/Fonts/
Then all users can test their fonts in Adobe apps, cool!
Local User (no sudo)
In case you are installing for the local user only, you can leave out the
sudo, and install the scripts in the user library. Here is the set of terminal commands for your copy-and-paste pleasure:
git clone https://github.com/mekkablue/Glyphs-Scripts.git ~/Library/Application\ Support/Glyphs/Scripts/mekkablue/ git clone https://github.com/schriftgestalt/Glyphs-Scripts.git ~/Library/Application\ Support/Glyphs/Scripts/schriftgestalt/ git clone https://github.com/hagenburger/glyphs-export-and-install.git ~/Library/Application\ Support/Glyphs/Scripts/hagenburger/ git clone https://github.com/Tosche/Glyphs-Scripts.git ~/Library/Application\ Support/Glyphs/Scripts/Tosche/ git clone https://github.com/Mark2Mark/Glyphsapp-Scripts-Free.git ~/Library/Application\ Support/Glyphs/Scripts/Mark2Mark/ git clone https://github.com/huertatipografica/huertatipografica-scripts.git ~/Library/Application\ Support/Glyphs/Scripts/huertatipografica/ git clone https://github.com/weiweihuanghuang/wei-glyphs-scripts.git ~/Library/Application\ Support/Glyphs/Scripts/weiweihuanghuang/ git clone https://github.com/justanotherfoundry/freemix-glyphsapp.git ~/Library/Application\ Support/Glyphs/Scripts/freemix/ git clone https://github.com/m4rc1e/mf-glyphs-scripts.git ~/Library/Application\ Support/Glyphs/Scripts/MarcFoley/ git clone https://github.com/simoncozens/GlyphsScripts.git ~/Library/Application\ Support/Glyphs/Scripts/SimonCozens/ git clone https://github.com/harbortype/glyphs-scripts.git ~/Library/Application\ Support/Glyphs/Scripts/harbortype/
And to have vanilla installed locally, you can just as well go to Glyphs > Preferences > Addons > Modules and click the Install Modules button. When a green check mark appears next to the button, the modules are installed, and all scripts are ready to use in the Scripts menu. You may need to either restart the app, or hold down the Opt key and choose Script > Reload Scripts (Cmd-Opt-Shift-Y). Then all scripts ought to appear in the user’s Script menu.
Once you installed the scripts that way, you can update them to their latest versions (yes, they change a lot) with these:
cd ~/Library/Application\ Support/Glyphs/Scripts/mekkablue/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/schriftgestalt/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/hagenburger/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/Tosche/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/Mark2Mark/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/huertatipografica/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/weiweihuanghuang/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/freemix/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/MarcFoley/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/SimonCozens/; git checkout cd ~/Library/Application\ Support/Glyphs/Scripts/harbortype/; git checkout
Again, just paste these lines into Terminal, give it a minute or two, and you’re all set!
Update 2016-09-25: Fixed link for Mark2Mark repo, added JAF, SimonCozens and Marc Foley repos.
Update 2017-10-28: Updated vanilla install instructions, fixed a few typos. Updated Terminal formatting.
Update 2019-06-18: Fixed local path:
~/Desktop instead of
/Desktop. Updated Mark2Mark link, added hagenburger and harbortype scripts, added local installation guide.
Update 2019-09-01: Added git checkout commands for easily updating scripts to their latest versions.
Update 2019-09-10: Added .git suffix to git links.
Update 2019-10-22: Corrected a typo.