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 workflow + rootless build config #21

Open
wants to merge 7 commits 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
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
push:

jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: Install Dependencies
run: |
brew install dpkg

- name: Build flexdecrypt
run: ./Scripts/build.sh

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Builds
path: ./*.deb
9 changes: 9 additions & 0 deletions Package-rootless/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: flexdecrypt
Name: flexdecrypt
Depends: firmware (>=15.0)
Author: John Coates
Maintainer: John Coates
Description: Tool for decrypting iOS apps and Mach-O binaries.
Version: 1.1
Section: Tools
Architecture: iphoneos-arm64
2 changes: 1 addition & 1 deletion Package/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: flexdecrypt
Name: flexdecrypt
Depends: firmware (>=12.2) | org.swift.libswift (>=5.0), firmware (>= 9.0)
Depends: firmware (>=12.2) | org.swift.libswift (>=5.0), firmware (>= 11.0)
Author: John Coates
Maintainer: John Coates
Description: Tool for decrypting iOS apps and Mach-O binaries.
Expand Down
17 changes: 17 additions & 0 deletions Scripts/build-iphoneos-arm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -x
set -e

scriptsDirectory=`dirname "$0"`
projectDirectory="$scriptsDirectory/../"

pushd "$projectDirectory"
sed -i '' 's/IPHONEOS_DEPLOYMENT_TARGET = 15.0;/IPHONEOS_DEPLOYMENT_TARGET = 11.0;/g' flexdecrypt.xcodeproj/project.pbxproj
xcodebuild -scheme flexdecrypt -sdk iphoneos -configuration Release -derivedDataPath ./derived
binDirectory="./Package/usr/bin"
mkdir -p "$binDirectory"
cp ./derived/Build/Products/Release-iphoneos/flexdecrypt.app/flexdecrypt "$binDirectory/"
find ./Package -name ".DS_Store" -depth -exec rm {} \;
dpkg-deb -b -Zgzip ./Package flexdecrypt.deb
popd
17 changes: 17 additions & 0 deletions Scripts/build-iphoneos-arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -x
set -e

scriptsDirectory=`dirname "$0"`
projectDirectory="$scriptsDirectory/../"

pushd "$projectDirectory"
sed -i '' 's/IPHONEOS_DEPLOYMENT_TARGET = 11.0;/IPHONEOS_DEPLOYMENT_TARGET = 15.0;/g' flexdecrypt.xcodeproj/project.pbxproj
xcodebuild -scheme flexdecrypt -sdk iphoneos -configuration Release -derivedDataPath ./derived-rootless
binDirectory="./Package-rootless/var/jb/usr/bin"
mkdir -p "$binDirectory"
cp ./derived-rootless/Build/Products/Release-iphoneos/flexdecrypt.app/flexdecrypt "$binDirectory/"
find ./Package-rootless -name ".DS_Store" -depth -exec rm {} \;
dpkg-deb -b -Zgzip ./Package-rootless flexdecrypt-rootless.deb
popd
16 changes: 3 additions & 13 deletions Scripts/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
set -x
set -e
#!/usr/bin/env sh

scriptsDirectory=`dirname "$0"`
projectDirectory="$scriptsDirectory/../"

pushd "$projectDirectory"
xcodebuild -scheme flexdecrypt -sdk iphoneos -configuration Release -derivedDataPath ./derived
binDirectory="./Package/usr/bin"
mkdir -p "$binDirectory"
cp ./derived/Build/Products/Release-iphoneos/flexdecrypt.app/flexdecrypt "$binDirectory/"
find ./Package -name ".DS_Store" -depth -exec rm {} \;
dpkg-deb -b -Zgzip ./Package flexdecrypt.deb
popd
./Scripts/build-iphoneos-arm.sh
./Scripts/build-iphoneos-arm64.sh
8 changes: 4 additions & 4 deletions flexdecrypt.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -469,7 +469,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -490,7 +490,7 @@
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "App Resources/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -519,7 +519,7 @@
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = "App Resources/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down