Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Jan 9, 2017
1 parent d2a9e13 commit 993f606
Show file tree
Hide file tree
Showing 28 changed files with 79 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# sifteo-gen1-redux
Sifteo's 1st gen software and apps bundled together into a single packgage (macOS only).

# Sifteo 1st gen software

This repository contains the software and apps for [Sifteo](https://en.wikipedia.org/wiki/Sifteo_cubes)'s 1st generation product.


## How to use it?

If you aren't wearing a developer hat, simply download and install the prebuild version.
The pkg file contains both the Siftrunner.app and all the apps I've found (hat tip to [Dr. Mike Reddy](http://doctormikereddy.wordpress.com) for his huge help on that)


## Acknowledgments

My special thanks goes out to the whole Sifteo's team for build such incredible and unique system.
26 changes: 26 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

NAME="sifteo-gen1"
IDENTIFIER="sifteo.redux.$NAME"

# Package version number (inherited from Siftrunner.app version)
VERSION="1.1.5-r01"

INSTALL_LOCATION="/tmp/Sifteo"

mkdir -p dist

# Remove any unwanted .DS_Store files.
find payload -name '*.DS_Store' -type f -delete

# Remove any extended attributes (ACEs).
/usr/bin/xattr -rc payload

# Build package...
pkgbuild \
--root payload/ \
--install-location "$INSTALL_LOCATION" \
--scripts scripts/ \
--identifier "$IDENTIFIER" \
--version "$VERSION" \
"dist/$NAME-$VERSION.pkg"
Binary file added payload/Preferences/com.sifteo.Siftrunner.plist
Binary file not shown.
Binary file added payload/Siftapps/3x3.siftapp
Binary file not shown.
Binary file added payload/Siftapps/LoopLoop.siftapp
Binary file not shown.
Binary file added payload/Siftapps/MiamiHeist_20120305.siftapp
Binary file not shown.
Binary file added payload/Siftapps/Peano_2012_03_20.siftapp
Binary file not shown.
Binary file added payload/Siftapps/PlanetOfTunes.siftapp
Binary file not shown.
Binary file added payload/Siftapps/alphamatic.siftapp
Binary file not shown.
Binary file added payload/Siftapps/bouncr.siftapp
Binary file not shown.
Binary file added payload/Siftapps/brainiac.siftapp
Binary file not shown.
Binary file added payload/Siftapps/calculator.siftapp
Binary file not shown.
Binary file added payload/Siftapps/chromalite_17.siftapp
Binary file not shown.
Binary file added payload/Siftapps/gems.siftapp
Binary file not shown.
Binary file added payload/Siftapps/gestut.siftapp
Binary file not shown.
Binary file added payload/Siftapps/gopherrun.siftapp
Binary file not shown.
Binary file added payload/Siftapps/match.siftapp
Binary file not shown.
Binary file added payload/Siftapps/meatRummy.siftapp
Binary file not shown.
Binary file added payload/Siftapps/monsterbuds.siftapp
Binary file not shown.
Binary file added payload/Siftapps/oogors_story.siftapp
Binary file not shown.
Binary file added payload/Siftapps/penguin.siftapp
Binary file not shown.
Binary file added payload/Siftapps/shaper.siftapp
Binary file not shown.
Binary file added payload/Siftapps/siftsays.siftapp
Binary file not shown.
Binary file added payload/Siftapps/tiles.siftapp
Binary file not shown.
Binary file added payload/Siftapps/tiny.siftapp
Binary file not shown.
Binary file added payload/Siftapps/wordplay.siftapp
Binary file not shown.
37 changes: 37 additions & 0 deletions scripts/postinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash

ACCOUNT="[email protected]"
LOGFILE="/tmp/sifte-install.log"

HOME_OWNER=`stat -f "%u:%g" $HOME`

echo "Starting installation..." > $LOGFILE 2>&1
echo -e "ENV: \n===\n`env`\n===\n" >> $LOGFILE 2>&1

# Create preferences file
PREFERENCES=com.sifteo.Siftrunner.plist
/usr/libexec/PlistBuddy $DSTROOT/Preferences/$PREFERENCES -c "Set userSession.email $ACCOUNT" >> $LOGFILE 2>&1
mv $DSTROOT/Preferences/$PREFERENCES "$HOME/Library/Preferences/" >> $LOGFILE 2>&1
chown $HOME_OWNER "$HOME/Library/Preferences/$PREFERENCES" >> $LOGFILE 2>&1

# Move sifteo apps to the correct place in the user's Library/Application Support/ folder
mkdir -p "$HOME/Library/Application Support/Sifteo/Siftrunner/Users/$ACCOUNT/Apps" >> $LOGFILE 2>&1
mv $DSTROOT/Siftapps/* "$HOME/Library/Application Support/Sifteo/Siftrunner/Users/$ACCOUNT/Apps" >> $LOGFILE 2>&1
chown -R $HOME_OWNER "$HOME/Library/Application Support/Sifteo" >> $LOGFILE 2>&1

# Unzip Siftrunner.app to Applications
rm -rf /Applications/Siftrunner.app
SIFTRUNNER_ZIP=Siftrunner-1.1.5.zip
unzip -q $DSTROOT/$SIFTRUNNER_ZIP -d /Applications >> $LOGFILE 2>&1

# Cleanup
rmdir $DSTROOT/Preferences >> $LOGFILE 2>&1
rmdir $DSTROOT/Siftapps >> $LOGFILE 2>&1
rm $DSTROOT/$SIFTRUNNER_ZIP
rmdir $DSTROOT

defaults read "$HOME/Library/Preferences/com.sifteo.Siftrunner" > /dev/null

#rm $LOGFILE

exit 0

0 comments on commit 993f606

Please sign in to comment.