-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel
committed
Jan 9, 2017
1 parent
d2a9e13
commit 993f606
Showing
28 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |