Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Commit

Permalink
Bump version and include build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aydenp committed Sep 20, 2019
1 parent 397ad34 commit f35f602
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
build.sh
deb
Archives

# macOS Stuff
Expand Down
4 changes: 2 additions & 2 deletions Serial.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.3;
PRODUCT_BUNDLE_IDENTIFIER = dev.ayden.ios.serial;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -685,7 +685,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.3;
PRODUCT_BUNDLE_IDENTIFIER = dev.ayden.ios.serial;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
66 changes: 66 additions & 0 deletions build.sh
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.
10 changes: 10 additions & 0 deletions deb/DEBIAN/control
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

0 comments on commit f35f602

Please sign in to comment.