Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add placeholder for IPA if missing and omit plutil err #85

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ if [[ ! -d module/$SUBSTRATE ]]; then
curl -#Lo substrate.deb "http://apt.saurik.com/debs/mobilesubstrate_${SUBSTRATE_VERSION}_iphoneos-arm.deb"
ar -x substrate.deb data.tar.lzma
tar --lzma --strip-components 3 -xf data.tar.lzma "$SUBSTRATE_PATH"
rm -rf substrate.deb data.tar.lzma
rm -rf substrate.deb data.tar.lzma
# remove any older copies of Substrate before moving the new one into place
rm -rf module/lib/CydiaSubstrate*.framework
mv CydiaSubstrate.framework "module/$SUBSTRATE"
echo "Successfully installed CydiaSubstrate.framework"
fi
plutil -convert binary1 "module/$SUBSTRATE/Info.plist" || true
plutil -convert binary1 "module/$SUBSTRATE/Info.plist" 2> /dev/null || true
rm -rf "module/$SUBSTRATE/Libraries" "module/$SUBSTRATE/Commands"

# Install module
Expand Down
2 changes: 1 addition & 1 deletion template/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use Cwd 'abs_path';
my @ipaPaths = glob(NIC->prompt(undef, "Path to .ipa"));
NIC->variable("IPA") = abs_path($ipaPaths[0]);
NIC->variable("IPA") = @ipaPaths ? abs_path($ipaPaths[0]) : abs_path("placeholder.ipa");
NIC->variable("PACKAGENAME") =~ s/[^a-zA-Z0-9.-]/-/g