Skip to content

Instantly share code, notes, and snippets.

@JoshuaGrams
Forked from jsoma/README.md
Last active September 2, 2022 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JoshuaGrams/845eb0e0cd8e8fb42668028792b37ce7 to your computer and use it in GitHub Desktop.
Save JoshuaGrams/845eb0e0cd8e8fb42668028792b37ce7 to your computer and use it in GitHub Desktop.
Installing tweego and story-formats on OS X.

To download and run this script in a single command, cut and paste this in Terminal:

curl https://gist.githubusercontent.com/JoshuaGrams/845eb0e0cd8e8fb42668028792b37ce7/raw/f7de596a50eff8734483c560560ef441a9f26c33/tweego.sh | bash
# Switch to a temporary directory, then download and extract Tweego.
TMP=$(mktemp -d)
cd $TMP
curl -O https://github.com/tmedwards/tweego/releases/download/v2.1.1/tweego-2.1.1-macos-x64.zip
unzip -o tweego-2.1.1-macos-x64.zip
# Make sure tweego is executable.
chmod +x tweego
# Create the target directory and copy the files.
TARGET=$HOME/tweego
mkdir -p $TARGET
cp -R . $TARGET
# Update .bash_profile to add our directory to the PATH.
echo "export PATH=$TARGET:\$PATH" >> ~/.bash_profile
# And run .bash_profile to update the current PATH.
source ~/.bash_profile
@vercte
Copy link

vercte commented Sep 2, 2022

Help! It's not working; it says this:

Archive:  tweego-2.1.1-macos-x64.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of tweego-2.1.1-macos-x64.zip or
        tweego-2.1.1-macos-x64.zip.zip, and cannot find tweego-2.1.1-macos-x64.zip.ZIP, period.
chmod: tweego: No such file or directory

@JoshuaGrams
Copy link
Author

Hmm. I just checked and the tweego release is still there and the file unzips OK for me...I wonder if it failed to download properly? Were there any earlier errors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment