Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.

Commit bf29eda

Browse files
committed
v0.7.3
1 parent ffdbacb commit bf29eda

File tree

4 files changed

+42
-10
lines changed

4 files changed

+42
-10
lines changed

xyz.skylarmccauley.sourceutility/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: xyz.skylarmccauley.sourceutility
22
Name: sourceutility
3-
Version: 0.7.2
3+
Version: 0.7.3
44
Depends: firmware (>= 11.0), findutils, curl, grep, rsync, gawk
55
Architecture: iphoneos-arm
66
Conflicts: xyz.skylarmccauley.sourcebackup, xyz.skylarmccauley.sourceutility (<=0.6)

xyz.skylarmccauley.sourceutility/DEBIAN/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
echo =====================================
4-
echo "Thanks for installing sourceutility 0.7.2"
4+
echo "Thanks for installing sourceutility 0.7.3"
55
echo ""
66
echo "Run sourceutility in the MobileTerminal, NewTerm2, or over SSH to access the start menu"
77
echo ""

xyz.skylarmccauley.sourceutility/DEBIAN/preinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
echo =====================================
4-
echo "sourceutility 0.7.2 by TheHacker"
4+
echo "sourceutility 0.7.3 by TheHacker"
55
echo ""
66
echo "Run sourceutility in the MobileTerminal, NewTerm2, or over SSH to access the start menu"
77
echo ""

xyz.skylarmccauley.sourceutility/usr/bin/sourceutility

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
clear
4-
VER="0.7.2"
4+
VER="0.7.3"
55
echo "sourceutility v$VER"
66

77
## ----------------------------------
@@ -176,10 +176,11 @@ reinstall_cydia() {
176176

177177
REPO_U0="https://apt.bingner.com"
178178
REPO_EL="https://electrarepo64.coolstar.org"
179+
REPO_U0_DARK="https://diatr.us/apt"
179180

180181
u0() {
181182
check_connection $REPO_U0
182-
echo "Downloading Electra Packages..."
183+
echo "Downloading Elucubratus Packages..."
183184
curl -o "./$U0TMP" "$REPO_U0/Packages" && sleep 1
184185

185186
touch "./$CYDIATMP"
@@ -189,7 +190,36 @@ reinstall_cydia() {
189190
CYDIAURL_CONDENSED="$(echo -e "${CYDIAURL}" | tr -d '[:space:]')"
190191
rm -f "./$CYDIATMP"
191192

192-
echo "Downloading latest version of Sileo..."
193+
echo "Downloading latest version of Cydia..."
194+
curl --silent -o ./cydia.deb $CYDIAURL_CONDENSED
195+
196+
echo "Installing..."
197+
dpkg -i ./cydia.deb
198+
199+
echo "Running uicache"
200+
uicache
201+
echo "Cleaning up..."
202+
rm -f ./cydia.deb
203+
rm -f "./$U0TMP"
204+
rm -f "./$CYDIATMP"
205+
cd /
206+
echo "Completed installation process for Cydia. You may want to run ldrestart after this script has concluded. "
207+
pause
208+
start_menu
209+
}
210+
u0_dark() {
211+
check_connection $REPO_U0_DARK
212+
echo "Downloading Misceo Packages..."
213+
curl -o "./$U0TMP" "$REPO_U0_DARK/Packages" && sleep 1
214+
215+
touch "./$CYDIATMP"
216+
217+
awk '/^Package: cydia$/ {s=NR;next} s && NR<=s+15' "./$U0TMP" &> $CYDIATMP
218+
CYDIAURL=$REPO_U0_DARK/$(awk -F'Filename:' '{print $2}' $CYDIATMP)
219+
CYDIAURL_CONDENSED="$(echo -e "${CYDIAURL}" | tr -d '[:space:]')"
220+
rm -f "./$CYDIATMP"
221+
222+
echo "Downloading latest version of Cydia..."
193223
curl --silent -o ./cydia.deb $CYDIAURL_CONDENSED
194224

195225
echo "Installing..."
@@ -218,7 +248,7 @@ reinstall_cydia() {
218248
CYDIAURL_CONDENSED="$(echo -e "${CYDIAURL}" | tr -d '[:space:]')"
219249
rm -f "./$CYDIATMP"
220250

221-
echo "Downloading latest version of Sileo..."
251+
echo "Downloading latest version of Cydia..."
222252
curl --silent -o ./cydia.deb $CYDIAURL_CONDENSED
223253

224254
echo "Installing..."
@@ -239,8 +269,9 @@ reinstall_cydia() {
239269
which_cydia() {
240270
clear
241271
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
242-
echo -e "1. apt.bingner.com (Unc0ver & unc0ver dark)"
243-
echo -e "2. electrarepo64.coolstar.org (Electra)"
272+
echo -e "1. apt.bingner.com (Unc0ver)"
273+
echo -e "2. diatr.us/apt (Unc0ver Dark)"
274+
echo -e "3. electrarepo64.coolstar.org (Electra)"
244275
echo "0. Exit"
245276
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
246277
}
@@ -249,7 +280,8 @@ reinstall_cydia() {
249280
read -p "Where would you like to download Cydia from? [ 0 - 2 ] " choice
250281
case $choice in
251282
1) u0 ;;
252-
2) el ;;
283+
2) u0_dark ;;
284+
3) el ;;
253285
0) start_menu;;
254286
*) echo -e "${RED}Invalid Option...${STD}" && sleep 2
255287
esac

0 commit comments

Comments
 (0)