This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version and include build scripts
- Loading branch information
Showing
4 changed files
with
78 additions
and
4 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
build.sh | ||
deb | ||
Archives | ||
|
||
# macOS Stuff | ||
|
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
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,66 @@ | ||
#!/bin/bash | ||
export LC_CTYPE=C | ||
export LANG=C | ||
|
||
appName=Serial | ||
|
||
project=${appName}.xcodeproj | ||
schemeName=${appName} | ||
|
||
|
||
rm -rf Archives/ | ||
rm -rf deb/Applications/* | ||
mkdir Archives | ||
|
||
# Create archive | ||
xcodebuild -project ${project} -scheme ${schemeName} -sdk iphoneos \ | ||
-configuration Release build CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO build \ | ||
-archivePath 'Archives/Build.xcarchive' \ | ||
archive | ||
|
||
# Isolate application folder | ||
mkdir Archives/Payload | ||
cp -R Archives/Build.xcarchive/Products/Applications/${appName}.app Archives/Payload/ | ||
rm -rf Archives/Build.xcarchive | ||
|
||
# Clean out files | ||
cd Archives/Payload | ||
find . -name '*.DS_Store' -type f -delete | ||
find . -name '*embedded.mobileprovision' -type f -delete | ||
find . -name '*_CodeSignature' -type f -delete | ||
cd ../.. | ||
|
||
# Create IPA | ||
cd Archives | ||
zip -r -X Sideload.ipa Payload | ||
cd .. | ||
|
||
# Move application payload to deb source | ||
mv Archives/Payload/* deb/Applications/ | ||
|
||
# Remove Swift libraries from deb source (since we have libswift for that) | ||
rm -rf deb/Applications/*.app/Frameworks/libswift* | ||
|
||
# Clean up .DS_Store files in deb folder | ||
cd deb | ||
find . -name '*.DS_Store' -type f -delete | ||
cd .. | ||
|
||
# Fake-sign app | ||
ldid -S deb/Applications/*.app/${appName} | ||
ldid -S deb/Applications/*.app/Frameworks/*.framework/* | ||
ldid -S deb/Applications/*.app/${appName}/PlugIns/*.appex/* | ||
ldid -S deb/Applications/*.app/${appName}/PlugIns/*.appex/Frameworks/*.framework/* | ||
|
||
# Create deb | ||
dpkg-deb -Zgzip -b deb | ||
mv deb.deb Archives/Jailbreak.deb | ||
|
||
# Clean up | ||
rm -rf Archives/Payload | ||
rm -rf deb/Applications/* | ||
|
||
# Show in Finder | ||
open Archives/ | ||
|
||
echo Done! The files are ready for distribution. |
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,10 @@ | ||
Package: dev.ayden.ios.serial | ||
Name: Serial | ||
Depends: firmware (>= 11.0), org.swift.libswift | ||
Version: 1.0.3 | ||
Architecture: iphoneos-arm | ||
Description: Quickly find information such as the manufacture date and model of an Apple device from its serial number. | ||
Maintainer: Ayden Panhuyzen | ||
Author: Ayden Panhuyzen | ||
Section: Utilities | ||
|