From f35f6023936d77f049e7c534017c61207a037446 Mon Sep 17 00:00:00 2001 From: Ayden Date: Thu, 19 Sep 2019 23:01:33 -0400 Subject: [PATCH] Bump version and include build scripts --- .gitignore | 2 - Serial.xcodeproj/project.pbxproj | 4 +- build.sh | 66 ++++++++++++++++++++++++++++++++ deb/DEBIAN/control | 10 +++++ 4 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 build.sh create mode 100644 deb/DEBIAN/control diff --git a/.gitignore b/.gitignore index fd2b682..d0b2e41 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -build.sh -deb Archives # macOS Stuff diff --git a/Serial.xcodeproj/project.pbxproj b/Serial.xcodeproj/project.pbxproj index a80e568..6e95311 100644 --- a/Serial.xcodeproj/project.pbxproj +++ b/Serial.xcodeproj/project.pbxproj @@ -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; @@ -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; diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..fc2fb54 --- /dev/null +++ b/build.sh @@ -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. diff --git a/deb/DEBIAN/control b/deb/DEBIAN/control new file mode 100644 index 0000000..04cc3cc --- /dev/null +++ b/deb/DEBIAN/control @@ -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 +