Skip to content

Instantly share code, notes, and snippets.

@ChapelR
Forked from jsoma/README.md
Created December 3, 2019 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChapelR/42cc0f849e8be07db4a3d13e6d29d0a7 to your computer and use it in GitHub Desktop.
Save ChapelR/42cc0f849e8be07db4a3d13e6d29d0a7 to your computer and use it in GitHub Desktop.
Installing tweego and story-formats on OS X.

Installing tweego is a little more complicated than (I think) it should be, so here's a script to do it for you. If you'd like to one-line it, you can just cut and paste this in Terminal:

curl https://gist.githubusercontent.com/jsoma/5ef3045b2004a610455f371479a6f0cf/raw/bebb34dd808a1703dd37df1fc14fee04685776f2/tweego.sh | bash

Once it's installed, tweego docs are here. You'll probably want to read these twee docs, too.

# Building temporary directory
TMP=$(mktemp -d)
TARGET=$HOME
cd $TMP
# Downloading
curl -O http://www.motoslave.net/tweego/download.php/tweego-1.3.0-macos-x64.zip
curl -O http://www.motoslave.net/tweego/download.php/story-formats-20180826.zip
# Extracting
unzip -o tweego-1.3.0-macos-x64.zip
unzip -o story-formats-20180826.zip
# Setting permissions for tweego
chmod +x tweego
# Creating target directories
mkdir -p $TARGET/tweego
mkdir -p $TARGET/tweego/story-formats
# Copying files
cp -R tweego $TARGET/tweego
cp -R LICENSE $TARGET/LICENSE
cp -R story-formats/* $TARGET/tweego/story-formats
# Adding to PATH
echo "export PATH=$TARGET/tweego:\$PATH" >> ~/.bash_profile
echo "export TWEEGO_PATH=$TARGET/tweego/story-formats" >> ~/.bash_profile
# Updating current PATH
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment