2 Commits 6a2c155b36 ... 6432b7b5a4

Author SHA1 Message Date
  Jaywalker 6432b7b5a4 fixed execution and updated nitotv packages 6 years ago
  Jaywalker 16db5efaf3 Fixed case specific signing and modes 6 years ago
1 changed files with 17 additions and 11 deletions
  1. 17 11
      the_memo.sh

+ 17 - 11
the_memo.sh

@@ -43,6 +43,7 @@ while test $# -gt 0; do
 			;;
 		-n|--nito-tv)
 			NITOTV="true"
+			shift
 			;;
 		-c|--codesign-tool)
 			shift
@@ -3449,9 +3450,7 @@ installSubstrate() {
 	dpkg-deb -x mobilesubstrate_0.9.6301_appletvos-arm64.deb deb
 	PKG_NAME="mobilesubstrate"
 	PKG_VERSION="0.9.6301"
-	echo "here?"
 	createListFile
-	echo "here??"
 	#dpkg -b deb
 	#mv deb.deb "mobilesubstrate_0.9.6301_${PLATFORM_LOWER}-$ARCH.deb"
 	#dpkg-deb -e com.saurik.substrate.safemode_0.9.6001_iphoneos-arm.deb deb/DEBIAN
@@ -3503,14 +3502,17 @@ buildAPTAndDependencies
 
 if [ "$NITOTV" == "true" ]; then
 	installSubstrate
+	mkdir nitotv
+	cd nitotv
+	WORKING_DIR="nitotv"
 	rm -rf deb
 	mkdir -p deb/DEBIAN
-	dpkg-deb -x nitoTV_2.0-24_appletvos-arm64.deb deb
-	dpkg-deb -e nitoTV_2.0-24_appletvos-arm64.deb deb/DEBIAN
-	PKG_NAME="com.nito.nitoTV4"
-	PKG_VERSION="2.0-24"
+	dpkg-deb -x nitotv_2.0-26_appletvos-arm64.deb deb
+	dpkg-deb -e nitotv_2.0-26_appletvos-arm64.deb deb/DEBIAN
+	PKG_NAME="com.nito.nitotv4"
+	PKG_VERSION="2.0-26"
 	createListFile
-	dpkg-deb -x nitoTV_2.0-24_appletvos-arm64.deb "$SKEL_PREFIX"
+	dpkg-deb -x nitotv_2.0-26_appletvos-arm64.deb "$SKEL_PREFIX"
 
 	rm -rf deb
 	mkdir -p deb/DEBIAN
@@ -3579,16 +3581,20 @@ rm -rf "$SKEL_PREFIX/$ROOT_PREFIX/bin/ntbtls-config"
 # Still need to do this for debs, but oh well. We just won't use the yet :P
 sudo chown -R root:wheel "$SKEL_PREFIX/$ROOT_PREFIX"
 sudo chown root:admin "$SKEL_PREFIX/private"
-#sudo chown root:admin "$SKEL_PREFIX/Applications"
-#sudo chown -R root:wheel "$SKEL_PREFIX/Library"
 sudo chown -R root:wheel "$SKEL_PREFIX/private/etc"
 sudo chown -R root:wheel "$SKEL_PREFIX/private/var"
 #sudo chmod 6755 "$SKEL_PREFIX/usr/bin/nitoHelper"
 #sudo chmod 6755 "$SKEL_PREFIX/usr/bin/nitoUpdate"
 rm -rf skel.tgz
 cd "$SKEL_PREFIX"
-#sudo tar cpz -P --exclude .DS_Store -f ../skel.tgz Applications usr private Library
-sudo tar cpz -P --exclude .DS_Store -f ../skel.tgz usr private
+if [ "$NITOTV" == "true" ]; then
+	sudo chown root:admin "$SKEL_PREFIX/Applications"
+	sudo chown -R root:wheel "$SKEL_PREFIX/Library"
+	sudo chmod 6755 "$SKEL_PREFIX/usr/libexec/goNito"
+	sudo tar cpz -P --exclude .DS_Store -f ../skel.tgz Applications usr private Library
+else
+	sudo tar cpz -P --exclude .DS_Store -f ../skel.tgz usr private
+fi
 
 cd "$BUILD_ROOT"