Browse Source

Hopefully the last fix required for v1

Jaywalker 6 years ago
parent
commit
3a2e555318
1 changed files with 13 additions and 5 deletions
  1. 13 5
      the_memo.sh

+ 13 - 5
the_memo.sh

@@ -3446,6 +3446,11 @@ installSubstrate() {
 		curl -LO http://nitosoft.com/repo/deb/mobilesubstrate_0.9.6301_appletvos-arm64.deb
 	fi
 
+	rm -rf mobilesubstrate
+	mkdir mobilesubstrate
+	cd mobilesubstrate
+	WORKING_DIR="mobilesubstrate"
+
 	initDebStructure
 	#dpkg-deb -e mobilesubstrate_0.9.6301_iphoneos-arm.deb deb/DEBIAN
 	#dpkg-deb -x mobilesubstrate_0.9.6301_iphoneos-arm.deb deb
@@ -3472,6 +3477,7 @@ installSubstrate() {
 	dpkg-deb -x "com.saurik.substrate.safemode_0.9.6001_${PLATFORM_LOWER}-$ARCH.deb" "$SKEL_PREFIX/"
 	dpkg-deb -x "mobilesubstrate_0.9.6301_${PLATFORM_LOWER}-$ARCH.deb" "$SKEL_PREFIX/"
 	#dpkg-deb -x com.saurik.substrate.safemode_0.9.6001_iphoneos-arm.deb
+	cd "$BUILD_ROOT"
 }
 
 
@@ -3506,17 +3512,19 @@ buildAPTAndDependencies
 
 if [ "$NITOTV" == "true" ]; then
 	installSubstrate
-	mkdir nitotv
+	rm -rf nitotv
+	mkdir -p nitotv
+	cp nitotv_2.0-27_appletvos-arm64.deb com.nito.tssagent_1.0-appletvos-arm64.deb com.nito.uicache_0.0.1-245_appletvos-arm64.deb nitotv/
 	cd nitotv
 	WORKING_DIR="nitotv"
 	rm -rf deb
 	mkdir -p deb/DEBIAN
-	dpkg-deb -x nitotv_2.0-26_appletvos-arm64.deb deb
-	dpkg-deb -e nitotv_2.0-26_appletvos-arm64.deb deb/DEBIAN
+	dpkg-deb -x nitotv_2.0-27_appletvos-arm64.deb deb
+	dpkg-deb -e nitotv_2.0-27_appletvos-arm64.deb deb/DEBIAN
 	PKG_NAME="com.nito.nitotv4"
-	PKG_VERSION="2.0-26"
+	PKG_VERSION="2.0-27"
 	createListFile
-	dpkg-deb -x nitotv_2.0-26_appletvos-arm64.deb "$SKEL_PREFIX"
+	dpkg-deb -x nitotv_2.0-27_appletvos-arm64.deb "$SKEL_PREFIX"
 
 	rm -rf deb
 	mkdir -p deb/DEBIAN