mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 19:53:25 +01:00
Merge branch 'fabianthdev/feature/SwiftUI' into naturecodevoid/swiftui-improvements
This commit is contained in:
123
.github/workflows/beta.yml
vendored
123
.github/workflows/beta.yml
vendored
@@ -1,16 +1,12 @@
|
|||||||
name: Beta SideStore build
|
name: Beta SideStore build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- develop
|
- '[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+' # example: 1.0.0-beta.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and upload SideStore Beta
|
name: Build and upload SideStore Beta
|
||||||
if: startsWith(github.event.head_commit.message, '[beta]')
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -25,66 +21,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
# - name: Cache rust cargo
|
|
||||||
# id: cache-rust-cargo
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-cargo
|
|
||||||
# with:
|
|
||||||
# path: ~/.cargo
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
# - name: Cache rust minimuxer
|
|
||||||
# id: cache-rust-minimuxer
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-minimuxer
|
|
||||||
# with:
|
|
||||||
# path: ./Dependencies/minimuxer/target
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
# - name: Cache rust em_proxy
|
|
||||||
# id: cache-rust-em_proxy
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-em_proxy
|
|
||||||
# with:
|
|
||||||
# path: ./Dependencies/em_proxy/target
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: brew install ldid
|
run: brew install ldid
|
||||||
|
|
||||||
- name: Install rustup
|
- name: Change version to tag
|
||||||
uses: actions-rs/toolchain@v1
|
run: sed -e '/MARKETING_VERSION = .*/s/= .*/= ${{ github.ref_name }}/' -i '' Build.xcconfig
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
target: aarch64-apple-ios
|
|
||||||
|
|
||||||
# - name: Create emotional damage
|
|
||||||
# run: cd Dependencies/em_proxy && cargo build --release --target aarch64-apple-ios
|
|
||||||
|
|
||||||
# - name: Build minimuxer
|
|
||||||
# run: cd Dependencies/minimuxer && cargo build --release --target aarch64-apple-ios
|
|
||||||
|
|
||||||
- name: Change default icon to beta icon
|
- name: Change default icon to beta icon
|
||||||
run: sed -e 's/= Neon/= Starburst/' -i '' ./AltStore.xcodeproj/project.pbxproj
|
run: sed -e 's/= Neon/= Starburst/' -i '' ./AltStore.xcodeproj/project.pbxproj
|
||||||
|
|
||||||
- name: Add beta suffix to version
|
- name: Get version
|
||||||
run: sed -e '/MARKETING_VERSION = .*/s/$/-beta.${{ github.run_number }}/' -i '' Build.xcconfig
|
id: version
|
||||||
|
run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Echo version
|
||||||
|
run: echo "${{ steps.version.outputs.version }}"
|
||||||
|
|
||||||
- name: Setup Xcode
|
- name: Setup Xcode
|
||||||
uses: maxim-lobanov/setup-xcode@v1.4.1
|
uses: maxim-lobanov/setup-xcode@v1.4.1
|
||||||
@@ -92,39 +43,25 @@ jobs:
|
|||||||
xcode-version: ${{ matrix.version }}
|
xcode-version: ${{ matrix.version }}
|
||||||
|
|
||||||
- name: Build SideStore
|
- name: Build SideStore
|
||||||
run: |
|
run: make build | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
xcodebuild -project AltStore.xcodeproj \
|
|
||||||
-scheme AltStore \
|
|
||||||
-sdk iphoneos \
|
|
||||||
archive -archivePath ./archive \
|
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
|
||||||
AD_HOC_CODE_SIGNING_ALLOWED=YES \
|
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
|
||||||
DEVELOPMENT_TEAM=XYZ0123456 \
|
|
||||||
ORG_IDENTIFIER=com.SideStore \
|
|
||||||
| xcpretty && exit ${PIPESTATUS[0]}
|
|
||||||
|
|
||||||
- name: Fakesign app
|
- name: Fakesign app
|
||||||
run: |
|
run: make fakesign
|
||||||
rm -rf archive.xcarchive/Products/Applications/SideStore.app/Frameworks/AltStoreCore.framework/Frameworks/
|
|
||||||
ldid -SAltStore/Resources/tempEnt.plist archive.xcarchive/Products/Applications/SideStore.app/SideStore
|
|
||||||
|
|
||||||
- name: Convert to IPA
|
- name: Convert to IPA
|
||||||
run: |
|
run: make ipa
|
||||||
mkdir Payload
|
|
||||||
mkdir Payload/SideStore.app
|
|
||||||
cp -R archive.xcarchive/Products/Applications/SideStore.app/ Payload/SideStore.app/
|
|
||||||
zip -r SideStore.ipa Payload
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload SideStore.ipa Artifact
|
||||||
uses: actions/upload-artifact@v3.1.0
|
uses: actions/upload-artifact@v3.1.0
|
||||||
with:
|
with:
|
||||||
name: SideStore.ipa
|
name: SideStore-${{ steps.version.outputs.version }}.ipa
|
||||||
path: SideStore.ipa
|
path: SideStore.ipa
|
||||||
|
|
||||||
- name: Get version
|
- name: Upload *.dSYM Artifact
|
||||||
id: version
|
uses: actions/upload-artifact@v3.1.0
|
||||||
run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT
|
with:
|
||||||
|
name: SideStore-dSYM
|
||||||
|
path: ./*.dSYM/
|
||||||
|
|
||||||
- name: Get current date
|
- name: Get current date
|
||||||
id: date
|
id: date
|
||||||
@@ -134,22 +71,22 @@ jobs:
|
|||||||
id: date_altstore
|
id: date_altstore
|
||||||
run: echo "date=$(date -u +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
run: echo "date=$(date -u +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload to beta release
|
- name: Upload to new beta release
|
||||||
uses: IsaacShelton/update-existing-release@v1.3.1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
release: "Beta"
|
name: ${{ steps.version.outputs.version }}
|
||||||
tag: "beta"
|
tag_name: ${{ github.ref_name }}
|
||||||
|
draft: true
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: SideStore.ipa
|
files: SideStore.ipa
|
||||||
body: |
|
body: |
|
||||||
This is an ⚠️ **EXPERIMENTAL** ⚠️ beta build for commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}).
|
<!-- NOTE: to reset SideSource cache, go to `https://apps.sidestore.io/reset-cache/nightly/<sidesource key>`. This is not included in the GitHub Action since it makes draft releases so they can be edited and have a changelog. -->
|
||||||
|
Beta builds are hand-picked builds from development commits that will allow you to try out new features earlier than normal. However, **they might contain bugs and other issues. Use at your own risk!**
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
Beta builds are hand-picked builds from development commits that will allow you to try out new features earlier than normal, but with a lower chance of bugs than if you used nightly builds. However, since these changes are newer and less tested, they still have a good chance of bugs, so **use at your own risk**.
|
- TODO
|
||||||
|
|
||||||
If you want to be on the bleeding edge and use the latest development builds, you can look at [SideStore Nightly](https://github.com/${{ github.repository }}/releases/tag/nightly). **Please be aware that these builds have a much higher chance of bugs than beta or stable**.
|
|
||||||
|
|
||||||
If you use the `SideStore (Beta)` app, it will use the latest beta build (make sure to update it in "My Apps").
|
|
||||||
|
|
||||||
## Build Info
|
## Build Info
|
||||||
|
|
||||||
|
|||||||
28
.github/workflows/increase-nightly-build-num.sh
vendored
Normal file
28
.github/workflows/increase-nightly-build-num.sh
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Ensure we are in root directory
|
||||||
|
cd "$(dirname "$0")/../.."
|
||||||
|
|
||||||
|
DATE=`date -u +'%Y.%m.%d'`
|
||||||
|
BUILD_NUM=1
|
||||||
|
|
||||||
|
write() {
|
||||||
|
sed -e "/MARKETING_VERSION = .*/s/$/-nightly.$DATE.$BUILD_NUM+$(git rev-parse --short HEAD)/" -i '' Build.xcconfig
|
||||||
|
echo "$DATE,$BUILD_NUM" > .nightly-build-num
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ ! -f ".nightly-build-num" ]; then
|
||||||
|
write
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
LAST_DATE=`cat .nightly-build-num | perl -n -e '/([^,]*),([^ ]*)$/ && print $1'`
|
||||||
|
LAST_BUILD_NUM=`cat .nightly-build-num | perl -n -e '/([^,]*),([^ ]*)$/ && print $2'`
|
||||||
|
|
||||||
|
if [[ "$DATE" != "$LAST_DATE" ]]; then
|
||||||
|
write
|
||||||
|
else
|
||||||
|
BUILD_NUM=`expr $LAST_BUILD_NUM + 1`
|
||||||
|
write
|
||||||
|
fi
|
||||||
|
|
||||||
106
.github/workflows/nightly.yml
vendored
106
.github/workflows/nightly.yml
vendored
@@ -24,66 +24,27 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
# - name: Cache rust cargo
|
|
||||||
# id: cache-rust-cargo
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-cargo
|
|
||||||
# with:
|
|
||||||
# path: ~/.cargo
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
# - name: Cache rust minimuxer
|
|
||||||
# id: cache-rust-minimuxer
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-minimuxer
|
|
||||||
# with:
|
|
||||||
# path: ./Dependencies/minimuxer/target
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
# - name: Cache rust em_proxy
|
|
||||||
# id: cache-rust-em_proxy
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-em_proxy
|
|
||||||
# with:
|
|
||||||
# path: ./Dependencies/em_proxy/target
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: brew install ldid
|
run: brew install ldid
|
||||||
|
|
||||||
- name: Install rustup
|
- name: Cache .nightly-build-num
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
path: .nightly-build-num
|
||||||
override: true
|
key: nightly-build-num
|
||||||
target: aarch64-apple-ios
|
|
||||||
|
|
||||||
# - name: Create emotional damage
|
- name: Increase nightly build number and set as version
|
||||||
# run: cd Dependencies/em_proxy && cargo build --release --target aarch64-apple-ios
|
run: bash .github/workflows/increase-nightly-build-num.sh
|
||||||
|
|
||||||
# - name: Build minimuxer
|
|
||||||
# run: cd Dependencies/minimuxer && cargo build --release --target aarch64-apple-ios
|
|
||||||
|
|
||||||
- name: Change default icon to nightly icon
|
- name: Change default icon to nightly icon
|
||||||
run: sed -e 's/= Neon/= Steel/' -i '' ./AltStore.xcodeproj/project.pbxproj
|
run: sed -e 's/= Neon/= Steel/' -i '' ./AltStore.xcodeproj/project.pbxproj
|
||||||
|
|
||||||
- name: Add nightly suffix to version
|
- name: Get version
|
||||||
run: sed -e '/MARKETING_VERSION = .*/s/$/-nightly.${{ github.run_number }}/' -i '' Build.xcconfig
|
id: version
|
||||||
|
run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Echo version
|
||||||
|
run: echo "${{ steps.version.outputs.version }}"
|
||||||
|
|
||||||
- name: Setup Xcode
|
- name: Setup Xcode
|
||||||
uses: maxim-lobanov/setup-xcode@v1.4.1
|
uses: maxim-lobanov/setup-xcode@v1.4.1
|
||||||
@@ -91,39 +52,25 @@ jobs:
|
|||||||
xcode-version: ${{ matrix.version }}
|
xcode-version: ${{ matrix.version }}
|
||||||
|
|
||||||
- name: Build SideStore
|
- name: Build SideStore
|
||||||
run: |
|
run: make build | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
xcodebuild -project AltStore.xcodeproj \
|
|
||||||
-scheme AltStore \
|
|
||||||
-sdk iphoneos \
|
|
||||||
archive -archivePath ./archive \
|
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
|
||||||
AD_HOC_CODE_SIGNING_ALLOWED=YES \
|
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
|
||||||
DEVELOPMENT_TEAM=XYZ0123456 \
|
|
||||||
ORG_IDENTIFIER=com.SideStore \
|
|
||||||
| xcpretty && exit ${PIPESTATUS[0]}
|
|
||||||
|
|
||||||
- name: Fakesign app
|
- name: Fakesign app
|
||||||
run: |
|
run: make fakesign
|
||||||
rm -rf archive.xcarchive/Products/Applications/SideStore.app/Frameworks/AltStoreCore.framework/Frameworks/
|
|
||||||
ldid -SAltStore/Resources/tempEnt.plist archive.xcarchive/Products/Applications/SideStore.app/SideStore
|
|
||||||
|
|
||||||
- name: Convert to IPA
|
- name: Convert to IPA
|
||||||
run: |
|
run: make ipa
|
||||||
mkdir Payload
|
|
||||||
mkdir Payload/SideStore.app
|
|
||||||
cp -R archive.xcarchive/Products/Applications/SideStore.app/ Payload/SideStore.app/
|
|
||||||
zip -r SideStore.ipa Payload
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload SideStore.ipa Artifact
|
||||||
uses: actions/upload-artifact@v3.1.0
|
uses: actions/upload-artifact@v3.1.0
|
||||||
with:
|
with:
|
||||||
name: SideStore.ipa
|
name: SideStore-${{ steps.version.outputs.version }}.ipa
|
||||||
path: SideStore.ipa
|
path: SideStore.ipa
|
||||||
|
|
||||||
- name: Get version
|
- name: Upload *.dSYM Artifact
|
||||||
id: version
|
uses: actions/upload-artifact@v3.1.0
|
||||||
run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT
|
with:
|
||||||
|
name: SideStore-dSYM
|
||||||
|
path: ./*.dSYM/
|
||||||
|
|
||||||
- name: Get current date
|
- name: Get current date
|
||||||
id: date
|
id: date
|
||||||
@@ -144,11 +91,9 @@ jobs:
|
|||||||
body: |
|
body: |
|
||||||
This is an ⚠️ **EXPERIMENTAL** ⚠️ nightly build for commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}).
|
This is an ⚠️ **EXPERIMENTAL** ⚠️ nightly build for commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}).
|
||||||
|
|
||||||
Nightly builds are built from the most recent commit which means you'll be able to try out new features very early. However, since these changes are much newer and less tested, they have a much higher chance of bugs, so **use at your own risk**.
|
Nightly builds are **extremely experimental builds only meant to be used by developers and alpha testers. They often contain bugs and experimental features. Use at your own risk!**
|
||||||
|
|
||||||
If you want to try out new features early but want a lower chance of bugs, you can look at [SideStore Beta](https://github.com/${{ github.repository }}/releases/tag/beta).
|
If you want to try out new features early but want a lower chance of bugs, you can look at [SideStore Beta](https://github.com/${{ github.repository }}/releases?q=beta).
|
||||||
|
|
||||||
If you use the `SideStore (Nightly)` app, it will use the latest nightly build (make sure to update it in "My Apps").
|
|
||||||
|
|
||||||
## Build Info
|
## Build Info
|
||||||
|
|
||||||
@@ -156,3 +101,6 @@ jobs:
|
|||||||
Built at (UTC date): `${{ steps.date_altstore.outputs.date }}`
|
Built at (UTC date): `${{ steps.date_altstore.outputs.date }}`
|
||||||
Commit SHA: `${{ github.sha }}`
|
Commit SHA: `${{ github.sha }}`
|
||||||
Version: `${{ steps.version.outputs.version }}`
|
Version: `${{ steps.version.outputs.version }}`
|
||||||
|
|
||||||
|
- name: Reset cache for apps.sidestore.io/nightly
|
||||||
|
run: sleep 10 && curl https://apps.sidestore.io/reset-cache/nightly/${{ secrets.SIDESOURCE_KEY }}
|
||||||
|
|||||||
95
.github/workflows/pr.yml
vendored
95
.github/workflows/pr.yml
vendored
@@ -19,63 +19,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
# - name: Cache rust cargo
|
|
||||||
# id: cache-rust-cargo
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-cargo
|
|
||||||
# with:
|
|
||||||
# path: ~/.cargo
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
# - name: Cache rust minimuxer
|
|
||||||
# id: cache-rust-minimuxer
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-minimuxer
|
|
||||||
# with:
|
|
||||||
# path: ./Dependencies/minimuxer/target
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
# - name: Cache rust em_proxy
|
|
||||||
# id: cache-rust-em_proxy
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-em_proxy
|
|
||||||
# with:
|
|
||||||
# path: ./Dependencies/em_proxy/target
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: brew install ldid
|
run: brew install ldid
|
||||||
|
|
||||||
- name: Install rustup
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
target: aarch64-apple-ios
|
|
||||||
|
|
||||||
# - name: Create emotional damage
|
|
||||||
# run: cd Dependencies/em_proxy && cargo build --release --target aarch64-apple-ios
|
|
||||||
|
|
||||||
# - name: Build minimuxer
|
|
||||||
# run: cd Dependencies/minimuxer && cargo build --release --target aarch64-apple-ios
|
|
||||||
|
|
||||||
- name: Add PR suffix to version
|
- name: Add PR suffix to version
|
||||||
run: sed -e '/MARKETING_VERSION = .*/s/$/-pr.${{ github.event.pull_request.number }}/' -i '' Build.xcconfig
|
run: sed -e "/MARKETING_VERSION = .*/s/\$/-pr.${{ github.event.pull_request.number }}+$(git rev-parse --short ${COMMIT:-HEAD})/" -i '' Build.xcconfig
|
||||||
|
env:
|
||||||
|
COMMIT: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
- name: Get version
|
||||||
|
id: version
|
||||||
|
run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Echo version
|
||||||
|
run: echo "${{ steps.version.outputs.version }}"
|
||||||
|
|
||||||
- name: Setup Xcode
|
- name: Setup Xcode
|
||||||
uses: maxim-lobanov/setup-xcode@v1.4.1
|
uses: maxim-lobanov/setup-xcode@v1.4.1
|
||||||
@@ -83,32 +40,22 @@ jobs:
|
|||||||
xcode-version: ${{ matrix.version }}
|
xcode-version: ${{ matrix.version }}
|
||||||
|
|
||||||
- name: Build SideStore
|
- name: Build SideStore
|
||||||
run: |
|
run: make build | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
xcodebuild -project AltStore.xcodeproj \
|
|
||||||
-scheme AltStore \
|
|
||||||
-sdk iphoneos \
|
|
||||||
archive -archivePath ./archive \
|
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
|
||||||
AD_HOC_CODE_SIGNING_ALLOWED=YES \
|
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
|
||||||
DEVELOPMENT_TEAM=XYZ0123456 \
|
|
||||||
ORG_IDENTIFIER=com.SideStore \
|
|
||||||
| xcpretty && exit ${PIPESTATUS[0]}
|
|
||||||
|
|
||||||
- name: Fakesign app
|
- name: Fakesign app
|
||||||
run: |
|
run: make fakesign
|
||||||
rm -rf archive.xcarchive/Products/Applications/SideStore.app/Frameworks/AltStoreCore.framework/Frameworks/
|
|
||||||
ldid -SAltStore/Resources/tempEnt.plist archive.xcarchive/Products/Applications/SideStore.app/SideStore
|
|
||||||
|
|
||||||
- name: Convert to IPA
|
- name: Convert to IPA
|
||||||
run: |
|
run: make ipa
|
||||||
mkdir Payload
|
|
||||||
mkdir Payload/SideStore.app
|
|
||||||
cp -R archive.xcarchive/Products/Applications/SideStore.app/ Payload/SideStore.app/
|
|
||||||
zip -r SideStore.ipa Payload
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload SideStore.ipa Artifact
|
||||||
uses: actions/upload-artifact@v3.1.0
|
uses: actions/upload-artifact@v3.1.0
|
||||||
with:
|
with:
|
||||||
name: SideStore.ipa
|
name: SideStore-${{ steps.version.outputs.version }}.ipa
|
||||||
path: SideStore.ipa
|
path: SideStore.ipa
|
||||||
|
|
||||||
|
- name: Upload *.dSYM Artifact
|
||||||
|
uses: actions/upload-artifact@v3.1.0
|
||||||
|
with:
|
||||||
|
name: SideStore-dSYM
|
||||||
|
path: ./*.dSYM/
|
||||||
|
|||||||
95
.github/workflows/stable.yml
vendored
95
.github/workflows/stable.yml
vendored
@@ -2,7 +2,7 @@ name: Stable SideStore build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '[0-9]+.[0-9]+.[0-9]+*'
|
- '[0-9]+.[0-9]+.[0-9]+' # example: 1.0.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -21,60 +21,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
# - name: Cache rust cargo
|
|
||||||
# id: cache-rust-cargo
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-cargo
|
|
||||||
# with:
|
|
||||||
# path: ~/.cargo
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
# - name: Cache rust minimuxer
|
|
||||||
# id: cache-rust-minimuxer
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-minimuxer
|
|
||||||
# with:
|
|
||||||
# path: ./Dependencies/minimuxer/target
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
# - name: Cache rust em_proxy
|
|
||||||
# id: cache-rust-em_proxy
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# env:
|
|
||||||
# cache-name: cache-rust-em_proxy
|
|
||||||
# with:
|
|
||||||
# path: ./Dependencies/em_proxy/target
|
|
||||||
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
# ${{ runner.os }}-build-
|
|
||||||
# ${{ runner.os }}-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: brew install ldid
|
run: brew install ldid
|
||||||
|
|
||||||
- name: Install rustup
|
- name: Change version to tag
|
||||||
uses: actions-rs/toolchain@v1
|
run: sed -e '/MARKETING_VERSION = .*/s/= .*/= ${{ github.ref_name }}/' -i '' Build.xcconfig
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
override: true
|
|
||||||
target: aarch64-apple-ios
|
|
||||||
|
|
||||||
# - name: Create emotional damage
|
- name: Get version
|
||||||
# run: cd Dependencies/em_proxy && cargo build --release --target aarch64-apple-ios
|
id: version
|
||||||
|
run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# - name: Build minimuxer
|
- name: Echo version
|
||||||
# run: cd Dependencies/minimuxer && cargo build --release --target aarch64-apple-ios
|
run: echo "${{ steps.version.outputs.version }}"
|
||||||
|
|
||||||
- name: Setup Xcode
|
- name: Setup Xcode
|
||||||
uses: maxim-lobanov/setup-xcode@v1.4.1
|
uses: maxim-lobanov/setup-xcode@v1.4.1
|
||||||
@@ -82,39 +40,25 @@ jobs:
|
|||||||
xcode-version: ${{ matrix.version }}
|
xcode-version: ${{ matrix.version }}
|
||||||
|
|
||||||
- name: Build SideStore
|
- name: Build SideStore
|
||||||
run: |
|
run: make build | xcpretty && exit ${PIPESTATUS[0]}
|
||||||
xcodebuild -project AltStore.xcodeproj \
|
|
||||||
-scheme AltStore \
|
|
||||||
-sdk iphoneos \
|
|
||||||
archive -archivePath ./archive \
|
|
||||||
CODE_SIGNING_REQUIRED=NO \
|
|
||||||
AD_HOC_CODE_SIGNING_ALLOWED=YES \
|
|
||||||
CODE_SIGNING_ALLOWED=NO \
|
|
||||||
DEVELOPMENT_TEAM=XYZ0123456 \
|
|
||||||
ORG_IDENTIFIER=com.SideStore \
|
|
||||||
| xcpretty && exit ${PIPESTATUS[0]}
|
|
||||||
|
|
||||||
- name: Fakesign app
|
- name: Fakesign app
|
||||||
run: |
|
run: make fakesign
|
||||||
rm -rf archive.xcarchive/Products/Applications/SideStore.app/Frameworks/AltStoreCore.framework/Frameworks/
|
|
||||||
ldid -SAltStore/Resources/tempEnt.plist archive.xcarchive/Products/Applications/SideStore.app/SideStore
|
|
||||||
|
|
||||||
- name: Convert to IPA
|
- name: Convert to IPA
|
||||||
run: |
|
run: make ipa
|
||||||
mkdir Payload
|
|
||||||
mkdir Payload/SideStore.app
|
|
||||||
cp -R archive.xcarchive/Products/Applications/SideStore.app/ Payload/SideStore.app/
|
|
||||||
zip -r SideStore.ipa Payload
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload SideStore.ipa Artifact
|
||||||
uses: actions/upload-artifact@v3.1.0
|
uses: actions/upload-artifact@v3.1.0
|
||||||
with:
|
with:
|
||||||
name: SideStore.ipa
|
name: SideStore-${{ steps.version.outputs.version }}.ipa
|
||||||
path: SideStore.ipa
|
path: SideStore.ipa
|
||||||
|
|
||||||
- name: Get version
|
- name: Upload *.dSYM Artifact
|
||||||
id: version
|
uses: actions/upload-artifact@v3.1.0
|
||||||
run: echo "version=$(grep MARKETING_VERSION Build.xcconfig | sed -e "s/MARKETING_VERSION = //g")" >> $GITHUB_OUTPUT
|
with:
|
||||||
|
name: SideStore-dSYM
|
||||||
|
path: ./*.dSYM/
|
||||||
|
|
||||||
- name: Get current date
|
- name: Get current date
|
||||||
id: date
|
id: date
|
||||||
@@ -129,10 +73,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
name: ${{ steps.version.outputs.version }}
|
name: ${{ steps.version.outputs.version }}
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref_name }}
|
||||||
draft: true
|
draft: true
|
||||||
files: SideStore.ipa
|
files: SideStore.ipa
|
||||||
body: |
|
body: |
|
||||||
|
<!-- NOTE: to reset SideSource cache, go to `https://apps.sidestore.io/reset-cache/nightly/<sidesource key>`. This is not included in the GitHub Action since it makes draft releases so they can be edited and have a changelog. -->
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
- TODO
|
- TODO
|
||||||
|
|||||||
12
.gitignore
vendored
12
.gitignore
vendored
@@ -33,4 +33,14 @@ xcuserdata
|
|||||||
/.vscode
|
/.vscode
|
||||||
|
|
||||||
## AppCode specific
|
## AppCode specific
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
Payload/
|
||||||
|
SideStore.ipa
|
||||||
|
*.dSYM
|
||||||
|
|
||||||
|
Dependencies/.*-prebuilt-fetch-*
|
||||||
|
Dependencies/minimuxer/*
|
||||||
|
Dependencies/em_proxy/*
|
||||||
|
!Dependencies/**/.gitkeep
|
||||||
|
.nightly-build-num
|
||||||
|
|||||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -13,15 +13,9 @@
|
|||||||
[submodule "Dependencies/MarkdownAttributedString"]
|
[submodule "Dependencies/MarkdownAttributedString"]
|
||||||
path = Dependencies/MarkdownAttributedString
|
path = Dependencies/MarkdownAttributedString
|
||||||
url = https://github.com/chockenberry/MarkdownAttributedString.git
|
url = https://github.com/chockenberry/MarkdownAttributedString.git
|
||||||
[submodule "Dependencies/em_proxy"]
|
|
||||||
path = Dependencies/em_proxy
|
|
||||||
url = https://github.com/jkcoxson/em_proxy
|
|
||||||
[submodule "Dependencies/libimobiledevice-glue"]
|
[submodule "Dependencies/libimobiledevice-glue"]
|
||||||
path = Dependencies/libimobiledevice-glue
|
path = Dependencies/libimobiledevice-glue
|
||||||
url = https://github.com/libimobiledevice/libimobiledevice-glue
|
url = https://github.com/libimobiledevice/libimobiledevice-glue
|
||||||
[submodule "Dependencies/minimuxer"]
|
|
||||||
path = Dependencies/minimuxer
|
|
||||||
url = https://github.com/SideStore/minimuxer
|
|
||||||
[submodule "Dependencies/libfragmentzip"]
|
[submodule "Dependencies/libfragmentzip"]
|
||||||
path = Dependencies/libfragmentzip
|
path = Dependencies/libfragmentzip
|
||||||
url = https://github.com/SideStore/libfragmentzip.git
|
url = https://github.com/SideStore/libfragmentzip.git
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#include "Build.xcconfig"
|
#include "Build.xcconfig"
|
||||||
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = $(ORG_PREFIX).$(PRODUCT_NAME)
|
PRODUCT_BUNDLE_IDENTIFIER = $(PRODUCT_BUNDLE_IDENTIFIER)
|
||||||
|
|||||||
@@ -11,12 +11,10 @@
|
|||||||
19104D952909BAEA00C49C7B /* libimobiledevice.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BF45872B2298D31600BD7491 /* libimobiledevice.a */; };
|
19104D952909BAEA00C49C7B /* libimobiledevice.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BF45872B2298D31600BD7491 /* libimobiledevice.a */; };
|
||||||
19104DB52909C06D00C49C7B /* EmotionalDamage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19104DB42909C06D00C49C7B /* EmotionalDamage.swift */; };
|
19104DB52909C06D00C49C7B /* EmotionalDamage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19104DB42909C06D00C49C7B /* EmotionalDamage.swift */; };
|
||||||
19104DBC2909C4E500C49C7B /* libEmotionalDamage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19104DB22909C06C00C49C7B /* libEmotionalDamage.a */; };
|
19104DBC2909C4E500C49C7B /* libEmotionalDamage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19104DB22909C06C00C49C7B /* libEmotionalDamage.a */; };
|
||||||
191E5FAE290A5D92001A3B7C /* minimuxer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 191E5FAD290A5D92001A3B7C /* minimuxer.swift */; };
|
|
||||||
191E5FB4290A5DA0001A3B7C /* libminimuxer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 191E5FAB290A5D92001A3B7C /* libminimuxer.a */; };
|
191E5FB4290A5DA0001A3B7C /* libminimuxer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 191E5FAB290A5D92001A3B7C /* libminimuxer.a */; };
|
||||||
191E5FDC290AFA5C001A3B7C /* OpenSSL in Frameworks */ = {isa = PBXBuildFile; productRef = 191E5FDB290AFA5C001A3B7C /* OpenSSL */; };
|
191E5FDC290AFA5C001A3B7C /* OpenSSL in Frameworks */ = {isa = PBXBuildFile; productRef = 191E5FDB290AFA5C001A3B7C /* OpenSSL */; };
|
||||||
191E607D290B2EA5001A3B7C /* jsmn.c in Sources */ = {isa = PBXBuildFile; fileRef = 191E5FD0290A651D001A3B7C /* jsmn.c */; };
|
191E607D290B2EA5001A3B7C /* jsmn.c in Sources */ = {isa = PBXBuildFile; fileRef = 191E5FD0290A651D001A3B7C /* jsmn.c */; };
|
||||||
191E607E290B2EA7001A3B7C /* jplist.c in Sources */ = {isa = PBXBuildFile; fileRef = 191E5FCF290A651D001A3B7C /* jplist.c */; };
|
191E607E290B2EA7001A3B7C /* jplist.c in Sources */ = {isa = PBXBuildFile; fileRef = 191E5FCF290A651D001A3B7C /* jplist.c */; };
|
||||||
191E6087290C7B50001A3B7C /* libminimuxer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 191E5FB5290A5E1F001A3B7C /* libminimuxer.a */; };
|
|
||||||
1920B04F2924AC8300744F60 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 1920B04E2924AC8300744F60 /* Settings.bundle */; };
|
1920B04F2924AC8300744F60 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 1920B04E2924AC8300744F60 /* Settings.bundle */; };
|
||||||
19B9B7452845E6DF0076EF69 /* SelectTeamViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19B9B7442845E6DF0076EF69 /* SelectTeamViewController.swift */; };
|
19B9B7452845E6DF0076EF69 /* SelectTeamViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 19B9B7442845E6DF0076EF69 /* SelectTeamViewController.swift */; };
|
||||||
1F07F550295455A300F7BE95 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1F07F552295455A300F7BE95 /* Localizable.strings */; };
|
1F07F550295455A300F7BE95 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 1F07F552295455A300F7BE95 /* Localizable.strings */; };
|
||||||
@@ -92,6 +90,9 @@
|
|||||||
99DE640329A1624500B920BF /* View+Hidden.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99DE640229A1624500B920BF /* View+Hidden.swift */; };
|
99DE640329A1624500B920BF /* View+Hidden.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99DE640229A1624500B920BF /* View+Hidden.swift */; };
|
||||||
99DE640629A1753800B920BF /* ZIPFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = 99DE640529A1753800B920BF /* ZIPFoundation */; };
|
99DE640629A1753800B920BF /* ZIPFoundation in Frameworks */ = {isa = PBXBuildFile; productRef = 99DE640529A1753800B920BF /* ZIPFoundation */; };
|
||||||
99E59E1D299BFE5D00FAF33D /* AppIconsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99E59E1C299BFE5D00FAF33D /* AppIconsView.swift */; };
|
99E59E1D299BFE5D00FAF33D /* AppIconsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99E59E1C299BFE5D00FAF33D /* AppIconsView.swift */; };
|
||||||
|
99F87D0529D8B4E200B40039 /* minimuxer-helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9961EC2D29BE9F2E00AF2C6F /* minimuxer-helpers.swift */; };
|
||||||
|
99F87D1829D8E4C900B40039 /* SwiftBridgeCore.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99F87D1629D8E4C900B40039 /* SwiftBridgeCore.swift */; };
|
||||||
|
99F87D1929D8E4C900B40039 /* minimuxer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 99F87D1729D8E4C900B40039 /* minimuxer.swift */; };
|
||||||
B3146ED2284F581E00BBC3FD /* Roxas.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3146ECD284F580500BBC3FD /* Roxas.framework */; };
|
B3146ED2284F581E00BBC3FD /* Roxas.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B3146ECD284F580500BBC3FD /* Roxas.framework */; };
|
||||||
B3146ED3284F581E00BBC3FD /* Roxas.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = B3146ECD284F580500BBC3FD /* Roxas.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
B3146ED3284F581E00BBC3FD /* Roxas.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = B3146ECD284F580500BBC3FD /* Roxas.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||||
B33FFBA8295F8E98002259E6 /* libfragmentzip.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B343F894295F7F9B002B1159 /* libfragmentzip.a */; };
|
B33FFBA8295F8E98002259E6 /* libfragmentzip.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B343F894295F7F9B002B1159 /* libfragmentzip.a */; };
|
||||||
@@ -571,16 +572,12 @@
|
|||||||
/* End PBXCopyFilesBuildPhase section */
|
/* End PBXCopyFilesBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
19104DA92909BC7100C49C7B /* em_proxy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = em_proxy.h; sourceTree = "<group>"; };
|
|
||||||
19104DB22909C06C00C49C7B /* libEmotionalDamage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libEmotionalDamage.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
19104DB22909C06C00C49C7B /* libEmotionalDamage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libEmotionalDamage.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
19104DB42909C06D00C49C7B /* EmotionalDamage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmotionalDamage.swift; sourceTree = "<group>"; };
|
19104DB42909C06D00C49C7B /* EmotionalDamage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmotionalDamage.swift; sourceTree = "<group>"; };
|
||||||
191E5FAB290A5D92001A3B7C /* libminimuxer.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libminimuxer.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
191E5FAB290A5D92001A3B7C /* libminimuxer.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libminimuxer.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
191E5FAD290A5D92001A3B7C /* minimuxer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = minimuxer.swift; sourceTree = "<group>"; };
|
|
||||||
191E5FB5290A5E1F001A3B7C /* libminimuxer.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libminimuxer.a; path = "Dependencies/minimuxer/target/aarch64-apple-ios/debug/libminimuxer.a"; sourceTree = "<group>"; };
|
|
||||||
191E5FCF290A651D001A3B7C /* jplist.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = jplist.c; path = Dependencies/libplist/src/jplist.c; sourceTree = SOURCE_ROOT; };
|
191E5FCF290A651D001A3B7C /* jplist.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = jplist.c; path = Dependencies/libplist/src/jplist.c; sourceTree = SOURCE_ROOT; };
|
||||||
191E5FD0290A651D001A3B7C /* jsmn.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = jsmn.c; path = Dependencies/libplist/src/jsmn.c; sourceTree = SOURCE_ROOT; };
|
191E5FD0290A651D001A3B7C /* jsmn.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; name = jsmn.c; path = Dependencies/libplist/src/jsmn.c; sourceTree = SOURCE_ROOT; };
|
||||||
191E5FD1290A651D001A3B7C /* jsmn.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = jsmn.h; path = Dependencies/libplist/src/jsmn.h; sourceTree = SOURCE_ROOT; };
|
191E5FD1290A651D001A3B7C /* jsmn.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = jsmn.h; path = Dependencies/libplist/src/jsmn.h; sourceTree = SOURCE_ROOT; };
|
||||||
191E5FD7290A6EFB001A3B7C /* minimuxer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = minimuxer.h; path = ../Dependencies/minimuxer/minimuxer.h; sourceTree = "<group>"; };
|
|
||||||
1920B04E2924AC8300744F60 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = "<group>"; };
|
1920B04E2924AC8300744F60 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = "<group>"; };
|
||||||
19B9B7442845E6DF0076EF69 /* SelectTeamViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectTeamViewController.swift; sourceTree = "<group>"; };
|
19B9B7442845E6DF0076EF69 /* SelectTeamViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SelectTeamViewController.swift; sourceTree = "<group>"; };
|
||||||
1F07F551295455A300F7BE95 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
|
1F07F551295455A300F7BE95 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
|
||||||
@@ -647,6 +644,9 @@
|
|||||||
99DE640029A1271100B920BF /* AsyncFallibleButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AsyncFallibleButton.swift; sourceTree = "<group>"; };
|
99DE640029A1271100B920BF /* AsyncFallibleButton.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AsyncFallibleButton.swift; sourceTree = "<group>"; };
|
||||||
99DE640229A1624500B920BF /* View+Hidden.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "View+Hidden.swift"; sourceTree = "<group>"; };
|
99DE640229A1624500B920BF /* View+Hidden.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "View+Hidden.swift"; sourceTree = "<group>"; };
|
||||||
99E59E1C299BFE5D00FAF33D /* AppIconsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppIconsView.swift; sourceTree = "<group>"; };
|
99E59E1C299BFE5D00FAF33D /* AppIconsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppIconsView.swift; sourceTree = "<group>"; };
|
||||||
|
9961EC2D29BE9F2E00AF2C6F /* minimuxer-helpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "minimuxer-helpers.swift"; path = "Dependencies/minimuxer/minimuxer-helpers.swift"; sourceTree = SOURCE_ROOT; };
|
||||||
|
99F87D1629D8E4C900B40039 /* SwiftBridgeCore.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SwiftBridgeCore.swift; path = Dependencies/minimuxer/SwiftBridgeCore.swift; sourceTree = SOURCE_ROOT; };
|
||||||
|
99F87D1729D8E4C900B40039 /* minimuxer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = minimuxer.swift; path = Dependencies/minimuxer/minimuxer.swift; sourceTree = SOURCE_ROOT; };
|
||||||
B3146EC6284F580500BBC3FD /* Roxas.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Roxas.xcodeproj; path = Dependencies/Roxas/Roxas.xcodeproj; sourceTree = "<group>"; };
|
B3146EC6284F580500BBC3FD /* Roxas.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Roxas.xcodeproj; path = Dependencies/Roxas/Roxas.xcodeproj; sourceTree = "<group>"; };
|
||||||
B33FFBA9295F8F78002259E6 /* preboard.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = preboard.c; path = src/preboard.c; sourceTree = "<group>"; };
|
B33FFBA9295F8F78002259E6 /* preboard.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = preboard.c; path = src/preboard.c; sourceTree = "<group>"; };
|
||||||
B33FFBAB295F8F98002259E6 /* companion_proxy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = companion_proxy.c; path = src/companion_proxy.c; sourceTree = "<group>"; };
|
B33FFBAB295F8F98002259E6 /* companion_proxy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = companion_proxy.c; path = src/companion_proxy.c; sourceTree = "<group>"; };
|
||||||
@@ -1052,7 +1052,6 @@
|
|||||||
files = (
|
files = (
|
||||||
99D87A6529A04D5E00ED09A9 /* Inject in Frameworks */,
|
99D87A6529A04D5E00ED09A9 /* Inject in Frameworks */,
|
||||||
B33FFBA8295F8E98002259E6 /* libfragmentzip.a in Frameworks */,
|
B33FFBA8295F8E98002259E6 /* libfragmentzip.a in Frameworks */,
|
||||||
191E6087290C7B50001A3B7C /* libminimuxer.a in Frameworks */,
|
|
||||||
191E5FB4290A5DA0001A3B7C /* libminimuxer.a in Frameworks */,
|
191E5FB4290A5DA0001A3B7C /* libminimuxer.a in Frameworks */,
|
||||||
19104DBC2909C4E500C49C7B /* libEmotionalDamage.a in Frameworks */,
|
19104DBC2909C4E500C49C7B /* libEmotionalDamage.a in Frameworks */,
|
||||||
1F1295812989B51F0048FCB9 /* ExpandableText in Frameworks */,
|
1F1295812989B51F0048FCB9 /* ExpandableText in Frameworks */,
|
||||||
@@ -1080,7 +1079,6 @@
|
|||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
B343F84D295F6323002B1159 /* em_proxy.xcodeproj */,
|
B343F84D295F6323002B1159 /* em_proxy.xcodeproj */,
|
||||||
19104DA92909BC7100C49C7B /* em_proxy.h */,
|
|
||||||
19104DB42909C06D00C49C7B /* EmotionalDamage.swift */,
|
19104DB42909C06D00C49C7B /* EmotionalDamage.swift */,
|
||||||
);
|
);
|
||||||
path = EmotionalDamage;
|
path = EmotionalDamage;
|
||||||
@@ -1089,9 +1087,9 @@
|
|||||||
191E5FAC290A5D92001A3B7C /* minimuxer */ = {
|
191E5FAC290A5D92001A3B7C /* minimuxer */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
|
9961EC2D29BE9F2E00AF2C6F /* minimuxer-helpers.swift */,
|
||||||
|
99F87D1429D8E3F100B40039 /* Generated */,
|
||||||
B343F847295F6321002B1159 /* minimuxer.xcodeproj */,
|
B343F847295F6321002B1159 /* minimuxer.xcodeproj */,
|
||||||
191E5FD7290A6EFB001A3B7C /* minimuxer.h */,
|
|
||||||
191E5FAD290A5D92001A3B7C /* minimuxer.swift */,
|
|
||||||
);
|
);
|
||||||
path = minimuxer;
|
path = minimuxer;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
@@ -1290,6 +1288,13 @@
|
|||||||
1F0DD8442936B3FE007608A4 /* FilledButtonStyle.swift */,
|
1F0DD8442936B3FE007608A4 /* FilledButtonStyle.swift */,
|
||||||
);
|
);
|
||||||
path = Styles;
|
path = Styles;
|
||||||
|
99F87D1429D8E3F100B40039 /* Generated */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
|
99F87D1629D8E4C900B40039 /* SwiftBridgeCore.swift */,
|
||||||
|
99F87D1729D8E4C900B40039 /* minimuxer.swift */,
|
||||||
|
);
|
||||||
|
name = Generated;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
B3146EC7284F580500BBC3FD /* Products */ = {
|
B3146EC7284F580500BBC3FD /* Products */ = {
|
||||||
@@ -1899,7 +1904,6 @@
|
|||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
B343F86C295F759E002B1159 /* libresolv.tbd */,
|
B343F86C295F759E002B1159 /* libresolv.tbd */,
|
||||||
191E5FB5290A5E1F001A3B7C /* libminimuxer.a */,
|
|
||||||
B39575F4284F29E20080B4FF /* Roxas.framework */,
|
B39575F4284F29E20080B4FF /* Roxas.framework */,
|
||||||
D533E8B62727841800A9B5DD /* libAppleArchive.tbd */,
|
D533E8B62727841800A9B5DD /* libAppleArchive.tbd */,
|
||||||
BF580497246A3D19008AE704 /* UIKit.framework */,
|
BF580497246A3D19008AE704 /* UIKit.framework */,
|
||||||
@@ -2102,13 +2106,6 @@
|
|||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXHeadersBuildPhase section */
|
/* Begin PBXHeadersBuildPhase section */
|
||||||
191E5FD4290A6EE0001A3B7C /* Headers */ = {
|
|
||||||
isa = PBXHeadersBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
BF4587272298D31600BD7491 /* Headers */ = {
|
BF4587272298D31600BD7491 /* Headers */ = {
|
||||||
isa = PBXHeadersBuildPhase;
|
isa = PBXHeadersBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
@@ -2189,7 +2186,6 @@
|
|||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = 191E5FAF290A5D92001A3B7C /* Build configuration list for PBXNativeTarget "minimuxer" */;
|
buildConfigurationList = 191E5FAF290A5D92001A3B7C /* Build configuration list for PBXNativeTarget "minimuxer" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
191E5FD4290A6EE0001A3B7C /* Headers */,
|
|
||||||
191E5FA7290A5D92001A3B7C /* Sources */,
|
191E5FA7290A5D92001A3B7C /* Sources */,
|
||||||
191E5FA8290A5D92001A3B7C /* Frameworks */,
|
191E5FA8290A5D92001A3B7C /* Frameworks */,
|
||||||
);
|
);
|
||||||
@@ -2306,6 +2302,7 @@
|
|||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = BFD2477E2284B9A700981D42 /* Build configuration list for PBXNativeTarget "SideStore" */;
|
buildConfigurationList = BFD2477E2284B9A700981D42 /* Build configuration list for PBXNativeTarget "SideStore" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
|
99F87D0629D8B51400B40039 /* ShellScript */,
|
||||||
BFD247662284B9A500981D42 /* Sources */,
|
BFD247662284B9A500981D42 /* Sources */,
|
||||||
BFD247672284B9A500981D42 /* Frameworks */,
|
BFD247672284B9A500981D42 /* Frameworks */,
|
||||||
BFD247682284B9A500981D42 /* Resources */,
|
BFD247682284B9A500981D42 /* Resources */,
|
||||||
@@ -2571,6 +2568,27 @@
|
|||||||
};
|
};
|
||||||
/* End PBXResourcesBuildPhase section */
|
/* End PBXResourcesBuildPhase section */
|
||||||
|
|
||||||
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
|
99F87D0629D8B51400B40039 /* ShellScript */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
);
|
||||||
|
outputFileListPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
"./Dependencies/minimuxer/minimuxer-helpers.swift",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "bash ./Dependencies/fetch-prebuilt.sh minimuxer\n";
|
||||||
|
};
|
||||||
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
/* Begin PBXSourcesBuildPhase section */
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
19104DAE2909C06C00C49C7B /* Sources */ = {
|
19104DAE2909C06C00C49C7B /* Sources */ = {
|
||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
@@ -2584,7 +2602,8 @@
|
|||||||
isa = PBXSourcesBuildPhase;
|
isa = PBXSourcesBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
191E5FAE290A5D92001A3B7C /* minimuxer.swift in Sources */,
|
99F87D1929D8E4C900B40039 /* minimuxer.swift in Sources */,
|
||||||
|
99F87D1829D8E4C900B40039 /* SwiftBridgeCore.swift in Sources */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
@@ -2873,6 +2892,7 @@
|
|||||||
BFB39B5C252BC10E00D1BE50 /* Managed.swift in Sources */,
|
BFB39B5C252BC10E00D1BE50 /* Managed.swift in Sources */,
|
||||||
BF770E5822BC3D0F002A40FE /* RefreshGroup.swift in Sources */,
|
BF770E5822BC3D0F002A40FE /* RefreshGroup.swift in Sources */,
|
||||||
19B9B7452845E6DF0076EF69 /* SelectTeamViewController.swift in Sources */,
|
19B9B7452845E6DF0076EF69 /* SelectTeamViewController.swift in Sources */,
|
||||||
|
99F87D0529D8B4E200B40039 /* minimuxer-helpers.swift in Sources */,
|
||||||
BF18B0F122E25DF9005C4CF5 /* ToastView.swift in Sources */,
|
BF18B0F122E25DF9005C4CF5 /* ToastView.swift in Sources */,
|
||||||
BF3D649F22E7B24C00E9056B /* CollapsingTextView.swift in Sources */,
|
BF3D649F22E7B24C00E9056B /* CollapsingTextView.swift in Sources */,
|
||||||
BF02419622F2199300129732 /* RefreshAttemptsViewController.swift in Sources */,
|
BF02419622F2199300129732 /* RefreshAttemptsViewController.swift in Sources */,
|
||||||
@@ -3037,15 +3057,14 @@
|
|||||||
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||||
LIBRARY_SEARCH_PATHS = (
|
LIBRARY_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Dependencies/em_proxy/target/aarch64-apple-ios/release",
|
"$(PROJECT_DIR)/Dependencies/em_proxy",
|
||||||
"$(PROJECT_DIR)/Dependencies/em_proxy/target/aarch64-apple-ios/debug",
|
|
||||||
);
|
);
|
||||||
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
|
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
OTHER_LDFLAGS = "-ObjC";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = EmotionalDamage/em_proxy.h;
|
SWIFT_OBJC_BRIDGING_HEADER = Dependencies/em_proxy/em_proxy.h;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
TVOS_DEPLOYMENT_TARGET = 14.0;
|
TVOS_DEPLOYMENT_TARGET = 14.0;
|
||||||
@@ -3064,14 +3083,13 @@
|
|||||||
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||||
LIBRARY_SEARCH_PATHS = (
|
LIBRARY_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Dependencies/em_proxy/target/aarch64-apple-ios/release",
|
"$(PROJECT_DIR)/Dependencies/em_proxy",
|
||||||
"$(PROJECT_DIR)/Dependencies/em_proxy/target/aarch64-apple-ios/debug",
|
|
||||||
);
|
);
|
||||||
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
|
MACOSX_DEPLOYMENT_TARGET = "$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET)";
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
OTHER_LDFLAGS = "-ObjC";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = EmotionalDamage/em_proxy.h;
|
SWIFT_OBJC_BRIDGING_HEADER = Dependencies/em_proxy/em_proxy.h;
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
TVOS_DEPLOYMENT_TARGET = 14.0;
|
TVOS_DEPLOYMENT_TARGET = 14.0;
|
||||||
@@ -3091,14 +3109,13 @@
|
|||||||
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||||
LIBRARY_SEARCH_PATHS = (
|
LIBRARY_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Dependencies/minimuxer/target/aarch64-apple-ios/release",
|
"$(PROJECT_DIR)/Dependencies/minimuxer",
|
||||||
"$(PROJECT_DIR)/Dependencies/minimuxer/target/aarch64-apple-ios/debug",
|
|
||||||
);
|
);
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
OTHER_LDFLAGS = "-ObjC";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = minimuxer/minimuxer.h;
|
SWIFT_OBJC_BRIDGING_HEADER = "Dependencies/minimuxer/minimuxer-Bridging-Header.h";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
};
|
};
|
||||||
@@ -3115,13 +3132,12 @@
|
|||||||
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
||||||
LIBRARY_SEARCH_PATHS = (
|
LIBRARY_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Dependencies/minimuxer/target/aarch64-apple-ios/release",
|
"$(PROJECT_DIR)/Dependencies/minimuxer",
|
||||||
"$(PROJECT_DIR)/Dependencies/minimuxer/target/aarch64-apple-ios/debug",
|
|
||||||
);
|
);
|
||||||
OTHER_LDFLAGS = "-ObjC";
|
OTHER_LDFLAGS = "-ObjC";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SKIP_INSTALL = YES;
|
SKIP_INSTALL = YES;
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = minimuxer/minimuxer.h;
|
SWIFT_OBJC_BRIDGING_HEADER = "Dependencies/minimuxer/minimuxer-Bridging-Header.h";
|
||||||
SWIFT_VERSION = 5.0;
|
SWIFT_VERSION = 5.0;
|
||||||
TARGETED_DEVICE_FAMILY = "1,2";
|
TARGETED_DEVICE_FAMILY = "1,2";
|
||||||
};
|
};
|
||||||
@@ -3626,8 +3642,6 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Dependencies/fragmentzip",
|
"$(PROJECT_DIR)/Dependencies/fragmentzip",
|
||||||
"$(PROJECT_DIR)/Dependencies/libcurl",
|
"$(PROJECT_DIR)/Dependencies/libcurl",
|
||||||
"$(PROJECT_DIR)/Dependencies/minimuxer/target/aarch64-apple-ios/debug",
|
|
||||||
"$(PROJECT_DIR)/Dependencies/minimuxer/target/aarch64-apple-ios/release",
|
|
||||||
);
|
);
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER)";
|
PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER)";
|
||||||
OTHER_LDFLAGS = (
|
OTHER_LDFLAGS = (
|
||||||
@@ -3670,8 +3684,6 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"$(PROJECT_DIR)/Dependencies/fragmentzip",
|
"$(PROJECT_DIR)/Dependencies/fragmentzip",
|
||||||
"$(PROJECT_DIR)/Dependencies/libcurl",
|
"$(PROJECT_DIR)/Dependencies/libcurl",
|
||||||
"$(PROJECT_DIR)/Dependencies/minimuxer/target/aarch64-apple-ios/debug",
|
|
||||||
"$(PROJECT_DIR)/Dependencies/minimuxer/target/aarch64-apple-ios/release",
|
|
||||||
);
|
);
|
||||||
OTHER_LDFLAGS = "";
|
OTHER_LDFLAGS = "";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER)";
|
PRODUCT_BUNDLE_IDENTIFIER = "$(PRODUCT_BUNDLE_IDENTIFIER)";
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<key>ALTPairingFile</key>
|
<key>ALTPairingFile</key>
|
||||||
<string><insert pairing file here></string>
|
<string><insert pairing file here></string>
|
||||||
<key>ALTAnisetteURL</key>
|
<key>ALTAnisetteURL</key>
|
||||||
<string>https://sideloadly.io/anisette/irGb3Quww8zrhgqnzmrx</string>
|
<string>https://ani.sidestore.io</string>
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleDocumentTypes</key>
|
<key>CFBundleDocumentTypes</key>
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ import minimuxer
|
|||||||
import AltStoreCore
|
import AltStoreCore
|
||||||
import UniformTypeIdentifiers
|
import UniformTypeIdentifiers
|
||||||
|
|
||||||
|
let pairingFileName = "ALTPairingFile.mobiledevicepairing"
|
||||||
|
|
||||||
final class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDelegate
|
final class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDelegate
|
||||||
{
|
{
|
||||||
private var didFinishLaunching = false
|
private var didFinishLaunching = false
|
||||||
@@ -83,7 +85,7 @@ final class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDeleg
|
|||||||
} else {
|
} else {
|
||||||
// Show an alert explaining the pairing file
|
// Show an alert explaining the pairing file
|
||||||
// Create new Alert
|
// Create new Alert
|
||||||
let dialogMessage = UIAlertController(title: "Pairing File", message: "Select the pairing file for your device. For more information, go to https://youtu.be/dQw4w9WgXcQ", preferredStyle: .alert)
|
let dialogMessage = UIAlertController(title: "Pairing File", message: "Select the pairing file for your device. For more information, go to https://wiki.sidestore.io/guides/install#pairing-process", preferredStyle: .alert)
|
||||||
|
|
||||||
// Create OK button with action handler
|
// Create OK button with action handler
|
||||||
let ok = UIAlertAction(title: "OK", style: .default, handler: { (action) -> Void in
|
let ok = UIAlertAction(title: "OK", style: .default, handler: { (action) -> Void in
|
||||||
@@ -129,14 +131,11 @@ final class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDeleg
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Save to a file for next launch
|
// Save to a file for next launch
|
||||||
let filename = "ALTPairingFile.mobiledevicepairing"
|
let pairingFile = FileManager.default.documentsDirectory.appendingPathComponent("\(pairingFileName)")
|
||||||
let fm = FileManager.default
|
try pairing_string?.write(to: pairingFile, atomically: true, encoding: String.Encoding.utf8)
|
||||||
let documentsPath = fm.documentsDirectory.appendingPathComponent("/\(filename)")
|
|
||||||
try pairing_string?.write(to: documentsPath, atomically: true, encoding: String.Encoding.utf8)
|
|
||||||
|
|
||||||
// Start minimuxer now that we have a file
|
// Start minimuxer now that we have a file
|
||||||
start_minimuxer_threads(pairing_string!)
|
start_minimuxer_threads(pairing_string!)
|
||||||
|
|
||||||
} catch {
|
} catch {
|
||||||
displayError("Unable to read pairing file")
|
displayError("Unable to read pairing file")
|
||||||
}
|
}
|
||||||
@@ -152,22 +151,15 @@ final class LaunchViewController: RSTLaunchViewController, UIDocumentPickerDeleg
|
|||||||
}
|
}
|
||||||
|
|
||||||
func start_minimuxer_threads(_ pairing_file: String) {
|
func start_minimuxer_threads(_ pairing_file: String) {
|
||||||
set_usbmuxd_socket()
|
target_minimuxer_address()
|
||||||
#if false // Retries
|
let documentsDirectory = FileManager.default.documentsDirectory.absoluteString
|
||||||
var res = start_minimuxer(pairing_file: pairing_file)
|
do {
|
||||||
var attempts = 10
|
try start(pairing_file, documentsDirectory)
|
||||||
while (attempts != 0 && res != 0) {
|
} catch {
|
||||||
print("start_minimuxer `res` != 0, retry #\(attempts)")
|
try! FileManager.default.removeItem(at: FileManager.default.documentsDirectory.appendingPathComponent("\(pairingFileName)"))
|
||||||
res = start_minimuxer(pairing_file: pairing_file)
|
displayError("minimuxer failed to start, please restart SideStore. \(minimuxerToOperationError(error).failureReason ?? "UNKNOWN ERROR!!!!!! REPORT TO GITHUB ISSUES!")")
|
||||||
attempts -= 1
|
|
||||||
}
|
}
|
||||||
#else
|
start_auto_mounter(documentsDirectory)
|
||||||
let res = start_minimuxer(pairing_file: pairing_file)
|
|
||||||
#endif
|
|
||||||
if res != 0 {
|
|
||||||
displayError("minimuxer failed to start. Incorrect arguments were passed.")
|
|
||||||
}
|
|
||||||
auto_mount_dev_image()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -392,7 +392,8 @@ extension AppManager
|
|||||||
func fetchAppIDs(completionHandler: @escaping (Result<([AppID], NSManagedObjectContext), Error>) -> Void)
|
func fetchAppIDs(completionHandler: @escaping (Result<([AppID], NSManagedObjectContext), Error>) -> Void)
|
||||||
{
|
{
|
||||||
let authenticationOperation = self.authenticate(presentingViewController: nil) { (result) in
|
let authenticationOperation = self.authenticate(presentingViewController: nil) { (result) in
|
||||||
print("Authenticated for fetching App IDs with result:", result)
|
// result contains name, email, auth token, OTP and other possibly personal/account specific info. we don't want this logged
|
||||||
|
//print("Authenticated for fetching App IDs with result:", result)
|
||||||
}
|
}
|
||||||
|
|
||||||
let fetchAppIDsOperation = FetchAppIDsOperation(context: authenticationOperation.context)
|
let fetchAppIDsOperation = FetchAppIDsOperation(context: authenticationOperation.context)
|
||||||
@@ -873,7 +874,11 @@ private extension AppManager
|
|||||||
// Check if backup app is installed in place of real app.
|
// Check if backup app is installed in place of real app.
|
||||||
let uti = UTTypeCopyDeclaration(app.installedBackupAppUTI as CFString)?.takeRetainedValue() as NSDictionary?
|
let uti = UTTypeCopyDeclaration(app.installedBackupAppUTI as CFString)?.takeRetainedValue() as NSDictionary?
|
||||||
|
|
||||||
if app.certificateSerialNumber != group.context.certificate?.serialNumber ||
|
// for some reason, `app.certificateSerialNumber != group.context.certificate?.serialNumber` is true on first SideStore refresh
|
||||||
|
// in most cases, the first refresh gets stuck since it is a full reinstall, and to fix it you must exit to home screen
|
||||||
|
// which finishes it but removes all app data
|
||||||
|
// so we want to ensure we don't reinstall for SideStore if it's true (it will still reinstall if needsResign is true)
|
||||||
|
if (app.certificateSerialNumber != group.context.certificate?.serialNumber && app.bundleIdentifier != StoreApp.altstoreAppID) ||
|
||||||
uti != nil ||
|
uti != nil ||
|
||||||
app.needsResign
|
app.needsResign
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -44,14 +44,9 @@ final class DeactivateAppOperation: ResultOperation<InstalledApp>
|
|||||||
|
|
||||||
for profile in allIdentifiers {
|
for profile in allIdentifiers {
|
||||||
do {
|
do {
|
||||||
let res = try remove_provisioning_profile(id: profile)
|
try remove_provisioning_profile(profile)
|
||||||
if case Uhoh.Bad(let code) = res {
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: code)))
|
|
||||||
}
|
|
||||||
} catch Uhoh.Bad(let code) {
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: code)))
|
|
||||||
} catch {
|
} catch {
|
||||||
self.finish(.failure(ALTServerError(.unknownResponse)))
|
return self.finish(.failure(minimuxerToOperationError(error)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,23 +45,13 @@ final class EnableJITOperation<Context: EnableJITContext>: ResultOperation<Void>
|
|||||||
guard let installedApp = self.context.installedApp else { return self.finish(.failure(OperationError.invalidParameters)) }
|
guard let installedApp = self.context.installedApp else { return self.finish(.failure(OperationError.invalidParameters)) }
|
||||||
|
|
||||||
installedApp.managedObjectContext?.perform {
|
installedApp.managedObjectContext?.perform {
|
||||||
let v = minimuxer_to_operation(code: 1)
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
var x = try debug_app(app_id: installedApp.resignedBundleIdentifier)
|
try debug_app(installedApp.resignedBundleIdentifier)
|
||||||
switch x {
|
|
||||||
case .Good:
|
|
||||||
self.finish(.success(()))
|
|
||||||
case .Bad(let code):
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: code)))
|
|
||||||
}
|
|
||||||
} catch Uhoh.Bad(let code) {
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: code)))
|
|
||||||
} catch {
|
} catch {
|
||||||
self.finish(.failure(OperationError.unknown))
|
return self.finish(.failure(minimuxerToOperationError(error)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.finish(.success(()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -384,6 +384,16 @@ extension FetchProvisioningProfilesOperation
|
|||||||
|
|
||||||
if app.isAltStoreApp
|
if app.isAltStoreApp
|
||||||
{
|
{
|
||||||
|
print("Application groups before modifying for SideStore: \(applicationGroups)")
|
||||||
|
|
||||||
|
// Remove app groups that contain AltStore since they can be problematic (cause SideStore to expire early)
|
||||||
|
for (index, group) in applicationGroups.enumerated() {
|
||||||
|
if group.contains("AltStore") {
|
||||||
|
print("Removing application group: \(group)")
|
||||||
|
applicationGroups.remove(at: index)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Potentially updating app groups for this specific AltStore.
|
// Potentially updating app groups for this specific AltStore.
|
||||||
// Find the (unique) AltStore app group, then replace it
|
// Find the (unique) AltStore app group, then replace it
|
||||||
// with the correct "base" app group ID.
|
// with the correct "base" app group ID.
|
||||||
@@ -397,6 +407,7 @@ extension FetchProvisioningProfilesOperation
|
|||||||
applicationGroups.append(Bundle.baseAltStoreAppGroupID)
|
applicationGroups.append(Bundle.baseAltStoreAppGroupID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
print("Application groups: \(applicationGroups)")
|
||||||
|
|
||||||
// Dispatch onto global queue to prevent appGroupsLock deadlock.
|
// Dispatch onto global queue to prevent appGroupsLock deadlock.
|
||||||
DispatchQueue.global().async {
|
DispatchQueue.global().async {
|
||||||
@@ -478,10 +489,13 @@ extension FetchProvisioningProfilesOperation
|
|||||||
ALTAppleAPI.shared.delete(profile, for: team, session: session) { (success, error) in
|
ALTAppleAPI.shared.delete(profile, for: team, session: session) { (success, error) in
|
||||||
switch Result(success, error)
|
switch Result(success, error)
|
||||||
{
|
{
|
||||||
case .failure(let error): completionHandler(.failure(error))
|
case .failure:
|
||||||
case .success:
|
// As of March 20, 2023, the free provisioning profile is re-generated each fetch, and you can no longer delete it.
|
||||||
|
// So instead, we just return the fetched profile from above.
|
||||||
|
completionHandler(.success(profile))
|
||||||
|
|
||||||
// Fetch new provisiong profile
|
case .success:
|
||||||
|
// Fetch new provisioning profile
|
||||||
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, deviceType: .iphone, team: team, session: session) { (profile, error) in
|
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, deviceType: .iphone, team: team, session: session) { (profile, error) in
|
||||||
completionHandler(Result(profile, error))
|
completionHandler(Result(profile, error))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import Network
|
|||||||
import AltStoreCore
|
import AltStoreCore
|
||||||
import AltSign
|
import AltSign
|
||||||
import Roxas
|
import Roxas
|
||||||
|
import minimuxer
|
||||||
|
|
||||||
@objc(InstallAppOperation)
|
@objc(InstallAppOperation)
|
||||||
final class InstallAppOperation: ResultOperation<InstalledApp>
|
final class InstallAppOperation: ResultOperation<InstalledApp>
|
||||||
@@ -148,17 +149,14 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
let ns_bundle = NSString(string: installedApp.bundleIdentifier)
|
do {
|
||||||
let ns_bundle_ptr = UnsafeMutablePointer<CChar>(mutating: ns_bundle.utf8String)
|
try install_ipa(installedApp.bundleIdentifier)
|
||||||
|
} catch {
|
||||||
let res = minimuxer_install_ipa(ns_bundle_ptr)
|
return self.finish(.failure(minimuxerToOperationError(error)))
|
||||||
if res == 0 {
|
|
||||||
installedApp.refreshedDate = Date()
|
|
||||||
self.finish(.success(installedApp))
|
|
||||||
|
|
||||||
} else {
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: res)))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
installedApp.refreshedDate = Date()
|
||||||
|
self.finish(.success(installedApp))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,10 +172,11 @@ final class InstallAppOperation: ResultOperation<InstalledApp>
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
try FileManager.default.removeItem(at: fileURL)
|
try FileManager.default.removeItem(at: fileURL)
|
||||||
|
print("Removed refreshed IPA")
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
print("Failed to remove refreshed .ipa:", error)
|
print("Failed to remove refreshed .ipa: \(error)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
import AltSign
|
import AltSign
|
||||||
|
import minimuxer
|
||||||
|
|
||||||
enum OperationError: LocalizedError
|
enum OperationError: LocalizedError
|
||||||
{
|
{
|
||||||
@@ -42,9 +43,11 @@ enum OperationError: LocalizedError
|
|||||||
case uninstall
|
case uninstall
|
||||||
case lookupApps
|
case lookupApps
|
||||||
case detach
|
case detach
|
||||||
|
case attach
|
||||||
case functionArguments
|
case functionArguments
|
||||||
case profileInstall
|
case profileManage
|
||||||
case noConnection
|
case noConnection
|
||||||
|
case invalidPairingFile
|
||||||
|
|
||||||
var failureReason: String? {
|
var failureReason: String? {
|
||||||
switch self {
|
switch self {
|
||||||
@@ -70,9 +73,11 @@ enum OperationError: LocalizedError
|
|||||||
case .uninstall: return NSLocalizedString("Unable to uninstall the app", comment: "")
|
case .uninstall: return NSLocalizedString("Unable to uninstall the app", comment: "")
|
||||||
case .lookupApps: return NSLocalizedString("Unable to fetch apps from the device", comment: "")
|
case .lookupApps: return NSLocalizedString("Unable to fetch apps from the device", comment: "")
|
||||||
case .detach: return NSLocalizedString("Unable to detach from the app's process", comment: "")
|
case .detach: return NSLocalizedString("Unable to detach from the app's process", comment: "")
|
||||||
|
case .attach: return NSLocalizedString("Unable to attach to the app's process", comment: "")
|
||||||
case .functionArguments: return NSLocalizedString("A function was passed invalid arguments", comment: "")
|
case .functionArguments: return NSLocalizedString("A function was passed invalid arguments", comment: "")
|
||||||
case .profileInstall: return NSLocalizedString("Unable to manage profiles on the device", comment: "")
|
case .profileManage: return NSLocalizedString("Unable to manage profiles on the device", comment: "")
|
||||||
case .noConnection: return NSLocalizedString("Unable to connect to the device, make sure Wireguard is enabled and you're connected to WiFi", comment: "")
|
case .noConnection: return NSLocalizedString("Unable to connect to the device, make sure Wireguard is enabled and you're connected to WiFi", comment: "")
|
||||||
|
case .invalidPairingFile: return NSLocalizedString("Invalid pairing file. Your pairing file either didn't have a UDID, or it wasn't a valid plist. Please use jitterbugpair to generate it", comment: "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,49 +123,50 @@ enum OperationError: LocalizedError
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func minimuxer_to_operation(code: Int32) -> OperationError {
|
/// crashes if error is not a MinimuxerError
|
||||||
switch code {
|
func minimuxerToOperationError(_ error: Error) -> OperationError {
|
||||||
case -1:
|
switch error as! MinimuxerError {
|
||||||
|
case .NoDevice:
|
||||||
return OperationError.noDevice
|
return OperationError.noDevice
|
||||||
case -2:
|
case .NoConnection:
|
||||||
return OperationError.createService(name: "debug")
|
|
||||||
case -3:
|
|
||||||
return OperationError.createService(name: "instproxy")
|
|
||||||
case -4:
|
|
||||||
return OperationError.getFromDevice(name: "installed apps")
|
|
||||||
case -5:
|
|
||||||
return OperationError.getFromDevice(name: "path to the app")
|
|
||||||
case -6:
|
|
||||||
return OperationError.getFromDevice(name: "bundle path")
|
|
||||||
case -7:
|
|
||||||
return OperationError.setArgument(name: "max packet")
|
|
||||||
case -8:
|
|
||||||
return OperationError.setArgument(name: "working directory")
|
|
||||||
case -9:
|
|
||||||
return OperationError.setArgument(name: "argv")
|
|
||||||
case -10:
|
|
||||||
return OperationError.getFromDevice(name: "launch success")
|
|
||||||
case -11:
|
|
||||||
return OperationError.detach
|
|
||||||
case -12:
|
|
||||||
return OperationError.functionArguments
|
|
||||||
case -13:
|
|
||||||
return OperationError.createService(name: "AFC")
|
|
||||||
case -14:
|
|
||||||
return OperationError.afc
|
|
||||||
case -15:
|
|
||||||
return OperationError.install
|
|
||||||
case -16:
|
|
||||||
return OperationError.uninstall
|
|
||||||
case -17:
|
|
||||||
return OperationError.createService(name: "misagent")
|
|
||||||
case -18:
|
|
||||||
return OperationError.profileInstall
|
|
||||||
case -19:
|
|
||||||
return OperationError.profileInstall
|
|
||||||
case -20:
|
|
||||||
return OperationError.noConnection
|
return OperationError.noConnection
|
||||||
default:
|
case .PairingFile:
|
||||||
return OperationError.unknown
|
return OperationError.invalidPairingFile
|
||||||
|
case .CreateDebug:
|
||||||
|
return OperationError.createService(name: "debug")
|
||||||
|
case .CreateInstproxy:
|
||||||
|
return OperationError.createService(name: "instproxy")
|
||||||
|
case .LookupApps:
|
||||||
|
return OperationError.getFromDevice(name: "installed apps")
|
||||||
|
case .FindApp:
|
||||||
|
return OperationError.getFromDevice(name: "path to the app")
|
||||||
|
case .BundlePath:
|
||||||
|
return OperationError.getFromDevice(name: "bundle path")
|
||||||
|
case .MaxPacket:
|
||||||
|
return OperationError.setArgument(name: "max packet")
|
||||||
|
case .WorkingDirectory:
|
||||||
|
return OperationError.setArgument(name: "working directory")
|
||||||
|
case .Argv:
|
||||||
|
return OperationError.setArgument(name: "argv")
|
||||||
|
case .LaunchSuccess:
|
||||||
|
return OperationError.getFromDevice(name: "launch success")
|
||||||
|
case .Detach:
|
||||||
|
return OperationError.detach
|
||||||
|
case .Attach:
|
||||||
|
return OperationError.attach
|
||||||
|
case .CreateAfc:
|
||||||
|
return OperationError.createService(name: "AFC")
|
||||||
|
case .RwAfc:
|
||||||
|
return OperationError.afc
|
||||||
|
case .InstallApp:
|
||||||
|
return OperationError.install
|
||||||
|
case .UninstallApp:
|
||||||
|
return OperationError.uninstall
|
||||||
|
case .CreateMisagent:
|
||||||
|
return OperationError.createService(name: "misagent")
|
||||||
|
case .ProfileInstall:
|
||||||
|
return OperationError.profileManage
|
||||||
|
case .ProfileRemove:
|
||||||
|
return OperationError.profileManage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,15 +49,12 @@ final class RefreshAppOperation: ResultOperation<InstalledApp>
|
|||||||
|
|
||||||
for p in profiles {
|
for p in profiles {
|
||||||
do {
|
do {
|
||||||
let x = try install_provisioning_profile(plist: p.value.data)
|
let bytes = p.value.data.toRustByteSlice()
|
||||||
if case .Bad(let code) = x {
|
try install_provisioning_profile(bytes.forRust())
|
||||||
self.finish(.failure(minimuxer_to_operation(code: code)))
|
|
||||||
}
|
|
||||||
} catch Uhoh.Bad(let code) {
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: code)))
|
|
||||||
} catch {
|
} catch {
|
||||||
self.finish(.failure(OperationError.unknown))
|
return self.finish(.failure(minimuxerToOperationError(error)))
|
||||||
}
|
}
|
||||||
|
|
||||||
self.progress.completedUnitCount += 1
|
self.progress.completedUnitCount += 1
|
||||||
|
|
||||||
let predicate = NSPredicate(format: "%K == %@", #keyPath(InstalledApp.bundleIdentifier), app.bundleIdentifier)
|
let predicate = NSPredicate(format: "%K == %@", #keyPath(InstalledApp.bundleIdentifier), app.bundleIdentifier)
|
||||||
|
|||||||
@@ -39,15 +39,11 @@ final class RemoveAppOperation: ResultOperation<InstalledApp>
|
|||||||
let resignedBundleIdentifier = installedApp.resignedBundleIdentifier
|
let resignedBundleIdentifier = installedApp.resignedBundleIdentifier
|
||||||
|
|
||||||
do {
|
do {
|
||||||
let res = try remove_app(app_id: resignedBundleIdentifier)
|
try remove_app(resignedBundleIdentifier)
|
||||||
if case Uhoh.Bad(let code) = res {
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: code)))
|
|
||||||
}
|
|
||||||
} catch Uhoh.Bad(let code) {
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: code)))
|
|
||||||
} catch {
|
} catch {
|
||||||
self.finish(.failure(ALTServerError(.appDeletionFailed)))
|
return self.finish(.failure(minimuxerToOperationError(error)))
|
||||||
}
|
}
|
||||||
|
|
||||||
DatabaseManager.shared.persistentContainer.performBackgroundTask { (context) in
|
DatabaseManager.shared.persistentContainer.performBackgroundTask { (context) in
|
||||||
self.progress.completedUnitCount += 1
|
self.progress.completedUnitCount += 1
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ final class ResignAppOperation: ResultOperation<ALTApplication>
|
|||||||
{
|
{
|
||||||
let destinationURL = InstalledApp.refreshedIPAURL(for: app)
|
let destinationURL = InstalledApp.refreshedIPAURL(for: app)
|
||||||
try FileManager.default.copyItem(at: resignedURL, to: destinationURL, shouldReplace: true)
|
try FileManager.default.copyItem(at: resignedURL, to: destinationURL, shouldReplace: true)
|
||||||
|
print("Successfully resigned app to \(destinationURL.absoluteString)")
|
||||||
|
|
||||||
// Use appBundleURL since we need an app bundle, not .ipa.
|
// Use appBundleURL since we need an app bundle, not .ipa.
|
||||||
guard let resignedApplication = ALTApplication(fileURL: appBundleURL) else { throw OperationError.invalidApp }
|
guard let resignedApplication = ALTApplication(fileURL: appBundleURL) else { throw OperationError.invalidApp }
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import Foundation
|
|||||||
import Network
|
import Network
|
||||||
|
|
||||||
import AltStoreCore
|
import AltStoreCore
|
||||||
|
import minimuxer
|
||||||
|
|
||||||
@objc(SendAppOperation)
|
@objc(SendAppOperation)
|
||||||
final class SendAppOperation: ResultOperation<()>
|
final class SendAppOperation: ResultOperation<()>
|
||||||
@@ -44,24 +45,18 @@ final class SendAppOperation: ResultOperation<()>
|
|||||||
|
|
||||||
print("AFC App `fileURL`: \(fileURL.absoluteString)")
|
print("AFC App `fileURL`: \(fileURL.absoluteString)")
|
||||||
|
|
||||||
let ns_bundle = NSString(string: app.bundleIdentifier)
|
|
||||||
let ns_bundle_ptr = UnsafeMutablePointer<CChar>(mutating: ns_bundle.utf8String)
|
|
||||||
|
|
||||||
if let data = NSData(contentsOf: fileURL) {
|
if let data = NSData(contentsOf: fileURL) {
|
||||||
let pls = UnsafeMutablePointer<UInt8>.allocate(capacity: data.length)
|
do {
|
||||||
for (index, data) in data.enumerated() {
|
let bytes = Data(data).toRustByteSlice()
|
||||||
pls[index] = data
|
try yeet_app_afc(app.bundleIdentifier, bytes.forRust())
|
||||||
}
|
} catch {
|
||||||
let res = minimuxer_yeet_app_afc(ns_bundle_ptr, pls, UInt(data.length))
|
return self.finish(.failure(minimuxerToOperationError(error)))
|
||||||
if res == 0 {
|
|
||||||
print("minimuxer_yeet_app_afc `res` == \(res)")
|
|
||||||
self.progress.completedUnitCount += 1
|
|
||||||
self.finish(.success(()))
|
|
||||||
} else {
|
|
||||||
self.finish(.failure(minimuxer_to_operation(code: res)))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.progress.completedUnitCount += 1
|
||||||
|
self.finish(.success(()))
|
||||||
} else {
|
} else {
|
||||||
|
print("IPA doesn't exist????")
|
||||||
self.finish(.failure(ALTServerError(.underlyingError)))
|
self.finish(.failure(ALTServerError(.underlyingError)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>application-identifier</key>
|
<key>application-identifier</key>
|
||||||
<string>A72ZC8AJ5X.com.SideStore.AltStore</string>
|
<string>A72ZC8AJ5X.com.SideStore.SideStore</string>
|
||||||
<key>aps-environment</key>
|
<key>aps-environment</key>
|
||||||
<string>development</string>
|
<string>development</string>
|
||||||
<key>com.apple.developer.siri</key>
|
<key>com.apple.developer.siri</key>
|
||||||
@@ -12,9 +12,9 @@
|
|||||||
<string>A72ZC8AJ5X</string>
|
<string>A72ZC8AJ5X</string>
|
||||||
<key>com.apple.security.application-groups</key>
|
<key>com.apple.security.application-groups</key>
|
||||||
<array>
|
<array>
|
||||||
<string>group.com.SideStore.AltStore</string>
|
<string>group.com.SideStore.SideStore</string>
|
||||||
</array>
|
</array>
|
||||||
<key>get-task-allow</key>
|
<key>get-task-allow</key>
|
||||||
<true/>
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -16,15 +16,13 @@
|
|||||||
<key>Key</key>
|
<key>Key</key>
|
||||||
<string>customAnisetteURL</string>
|
<string>customAnisetteURL</string>
|
||||||
<key>DefaultValue</key>
|
<key>DefaultValue</key>
|
||||||
<string>http://ani.sidestore.io</string>
|
<string>https://ani.sidestore.io</string>
|
||||||
<key>Titles</key>
|
<key>Titles</key>
|
||||||
<array>
|
<array>
|
||||||
<string>SideStore</string>
|
<string>SideStore</string>
|
||||||
<string>Macley (US)</string>
|
<string>Macley (US)</string>
|
||||||
<string>Macley (DE)</string>
|
<string>Macley (DE)</string>
|
||||||
<string>DrPudding</string>
|
<string>DrPudding</string>
|
||||||
<string>jkcoxson (AltServer)</string>
|
|
||||||
<string>jkcoxson (Provision)</string>
|
|
||||||
<string>Sideloadly</string>
|
<string>Sideloadly</string>
|
||||||
<string>Nick</string>
|
<string>Nick</string>
|
||||||
<string>Jawshoeadan</string>
|
<string>Jawshoeadan</string>
|
||||||
@@ -32,12 +30,10 @@
|
|||||||
</array>
|
</array>
|
||||||
<key>Values</key>
|
<key>Values</key>
|
||||||
<array>
|
<array>
|
||||||
<string>http://ani.sidestore.io</string>
|
<string>https://ani.sidestore.io</string>
|
||||||
<string>http://us1.sternserv.tech</string>
|
<string>http://us1.sternserv.tech</string>
|
||||||
<string>http://de1.sternserv.tech</string>
|
<string>http://de1.sternserv.tech</string>
|
||||||
<string>https://sign.rheaa.xyz</string>
|
<string>https://sign.rheaa.xyz</string>
|
||||||
<string>http://jkcoxson.com:2095</string>
|
|
||||||
<string>http://jkcoxson.com:2052</string>
|
|
||||||
<string>https://sideloadly.io/anisette/irGb3Quww8zrhgqnzmrx</string>
|
<string>https://sideloadly.io/anisette/irGb3Quww8zrhgqnzmrx</string>
|
||||||
<string>http://45.33.29.114</string>
|
<string>http://45.33.29.114</string>
|
||||||
<string>https://anisette.jawshoeadan.me</string>
|
<string>https://anisette.jawshoeadan.me</string>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
// Configuration settings file format documentation can be found at:
|
// Configuration settings file format documentation can be found at:
|
||||||
// https://help.apple.com/xcode/#/dev745c5c974
|
// https://help.apple.com/xcode/#/dev745c5c974
|
||||||
|
|
||||||
MARKETING_VERSION = 0.3.0
|
MARKETING_VERSION = 0.3.2
|
||||||
CURRENT_PROJECT_VERSION = 3020
|
CURRENT_PROJECT_VERSION = 3050
|
||||||
|
|
||||||
// Vars to be overwritten by `CodeSigning.xcconfig` if exists
|
// Vars to be overwritten by `CodeSigning.xcconfig` if exists
|
||||||
DEVELOPMENT_TEAM = S32Z3HMYVQ
|
DEVELOPMENT_TEAM = S32Z3HMYVQ
|
||||||
@@ -14,11 +14,14 @@ ORG_IDENTIFIER = com.SideStore
|
|||||||
ORG_PREFIX = $(ORG_IDENTIFIER)
|
ORG_PREFIX = $(ORG_IDENTIFIER)
|
||||||
|
|
||||||
PRODUCT_NAME = SideStore
|
PRODUCT_NAME = SideStore
|
||||||
EXTENSION_PREFIX = $(ORG_PREFIX).SideStore
|
|
||||||
//PRODUCT_NAME[configuration=Debug] = Prov Debug
|
//PRODUCT_NAME[configuration=Debug] = Prov Debug
|
||||||
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = $(ORG_PREFIX).SideStore
|
PRODUCT_BUNDLE_IDENTIFIER = $(ORG_PREFIX).SideStore
|
||||||
//PRODUCT_BUNDLE_IDENTIFIER[configuration=Debug] = $(ORG_PREFIX).$(PROJECT_NAME:lower)-debug
|
// add team ID to bundle ID for debug builds since these will most likely be installed via Xcode
|
||||||
|
// SideStore will expect the team ID to be at the end of the bundle ID, but this doesn't happen when we install via Xcode
|
||||||
|
// we don't want to do this for release since those builds will most likely be installed via SideServer, which adds the team ID
|
||||||
|
PRODUCT_BUNDLE_IDENTIFIER[config=Debug] = $(ORG_PREFIX).SideStore.$(DEVELOPMENT_TEAM)
|
||||||
|
|
||||||
APP_GROUP_IDENTIFIER = $(ORG_PREFIX).SideStore
|
EXTENSION_PREFIX = $(PRODUCT_BUNDLE_IDENTIFIER)
|
||||||
|
APP_GROUP_IDENTIFIER = $(PRODUCT_BUNDLE_IDENTIFIER)
|
||||||
ICLOUD_CONTAINER_IDENTIFIER = iCloud.$(ORG_PREFIX).$(PROJECT_NAME)
|
ICLOUD_CONTAINER_IDENTIFIER = iCloud.$(ORG_PREFIX).$(PROJECT_NAME)
|
||||||
|
|||||||
61
CONTRIBUTING.md
Normal file
61
CONTRIBUTING.md
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
# Contributing to SideStore
|
||||||
|
|
||||||
|
Thank you for your interest in contributing to SideStore! SideStore is a community driven project, and it's made possible by people like you.
|
||||||
|
|
||||||
|
There are many ways to contribute to SideStore, so if you aren't a developer, there are still many other ways you can help out:
|
||||||
|
|
||||||
|
- [Writing documentation](https://github.com/SideStore/SideStore-Docs)
|
||||||
|
- [Submitting detailed bug reports and suggesting new features](https://github.com/SideStore/SideStore/issues/new/choose)
|
||||||
|
- Helping out with support
|
||||||
|
- [Discord](https://discord.gg/RgpFBX3Q3k)
|
||||||
|
- [GitHub Discussions](https://github.com/SideStore/SideStore/discussions)
|
||||||
|
|
||||||
|
However, this guide will focus on the development side of things. For now, we will only have setup information here, but you can [join our Discord](https://discord.gg/RgpFBX3Q3k) if you need help
|
||||||
|
after setup.
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
This guide assumes you:
|
||||||
|
|
||||||
|
- are on a Mac
|
||||||
|
- have Xcode installed
|
||||||
|
- have basic command line knowledge (know how to run commands, cd into a directory)
|
||||||
|
- have basic Git knowledge ([GitHub Desktop](https://desktop.github.com) is a great tool for beginners, and greatly simplifies working with Git)
|
||||||
|
- have basic Swift/iOS development knowledge
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
1. Fork the SideStore repo on GitHub.
|
||||||
|
2. Clone the fork: `git clone https://github.com/<your github username>/SideStore.git --recurse-submodules`
|
||||||
|
|
||||||
|
If you are using GitHub Desktop, refer to
|
||||||
|
[this guide](https://docs.github.com/en/desktop/contributing-and-collaborating-using-github-desktop/adding-and-cloning-repositories/cloning-and-forking-repositories-from-github-desktop).
|
||||||
|
|
||||||
|
3. Copy `CodeSigning.xcconfig.sample` to `CodeSigning.xcconfig` and fill in the values.
|
||||||
|
4. **(Development only)** Change the value for `ALTDeviceID` in the Info.plist to your device's UDID. Normally, SideServer embeds the device's UDID in SideStore's Info.plist during installation. When
|
||||||
|
running through Xcode you'll need to set the value yourself or else SideStore won't resign (or even install) apps for the proper device. You can achieve this by changing a few things to be able to
|
||||||
|
build and use SideStore.
|
||||||
|
5. Finally, open `AltStore.xcodeproj` in Xcode.
|
||||||
|
|
||||||
|
Next, make and test your changes. Then, commit and push your changes using git and make a pull request.
|
||||||
|
|
||||||
|
## Prebuilt binary information
|
||||||
|
|
||||||
|
minimuxer and em_proxy use prebuilt static library binaries built by GitHub Actions to speed up builds and remove the need for Rust to be installed when working on SideStore.
|
||||||
|
[`Dependencies/fetch-prebuilt.sh`](./Dependencies/fetch-prebuilt.sh) will be run before each build by Xcode, and it will check if the downloaded binaries are up-to-date once every 6 hours. If you want
|
||||||
|
to force it to check for new binaries, run `bash ./Dependencies/fetch-prebuilt.sh force`.
|
||||||
|
|
||||||
|
## Building an IPA for distribution
|
||||||
|
|
||||||
|
You can use the Makefile: `make build fakesign ipa`
|
||||||
|
|
||||||
|
This will create SideStore.ipa.
|
||||||
|
|
||||||
|
> **Warning**
|
||||||
|
>
|
||||||
|
> The binary created will contain paths to Xcode's DerivedData, and if you built minimuxer on your machine, paths to $HOME/.cargo. This will include your username. If you want to keep your user's
|
||||||
|
> username private, you might want to get GitHub Actions to build the IPA instead.
|
||||||
|
|
||||||
|
## Developing minimuxer alongside SideStore
|
||||||
|
|
||||||
|
Please see [minimuxer's README](https://github.com/SideStore/minimuxer) for development instructions.
|
||||||
1
Dependencies/em_proxy
vendored
1
Dependencies/em_proxy
vendored
Submodule Dependencies/em_proxy deleted from 57ab5a0002
670
Dependencies/em_proxy.xcodeproj/project.pbxproj
vendored
670
Dependencies/em_proxy.xcodeproj/project.pbxproj
vendored
@@ -1,371 +1,343 @@
|
|||||||
// !$*UTF8*$!
|
// !$*UTF8*$!
|
||||||
{
|
{
|
||||||
/* generated with cargo-xcode 1.5.0 */
|
archiveVersion = 1;
|
||||||
archiveVersion = 1;
|
classes = {
|
||||||
classes = {
|
};
|
||||||
};
|
objectVersion = 53;
|
||||||
objectVersion = 53;
|
objects = {
|
||||||
objects = {
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
|
9987603429A4555300818586 /* em_proxy.h in Sources */ = {isa = PBXBuildFile; fileRef = 9999259129A45319005CF020 /* em_proxy.h */; };
|
||||||
CA60E4E02AAAA30E3695DD59 /* Cargo.toml in Sources */ = {
|
|
||||||
isa = PBXBuildFile;
|
|
||||||
fileRef = CA6094FFF6923EF4668187A5 /* Cargo.toml */;
|
|
||||||
settings = {
|
|
||||||
COMPILER_FLAGS = "--lib"; /* == OTHER_INPUT_FILE_FLAGS */
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
CA60E4E02AAA37FC563E4BCC /* Cargo.toml in Sources */ = {
|
|
||||||
isa = PBXBuildFile;
|
|
||||||
fileRef = CA6094FFF6923EF4668187A5 /* Cargo.toml */;
|
|
||||||
settings = {
|
|
||||||
COMPILER_FLAGS = "--bin 'run'"; /* == OTHER_INPUT_FILE_FLAGS */
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXBuildRule section */
|
/* Begin PBXBuildRule section */
|
||||||
CA6094FFF692AC6C1400ACA8 /* PBXBuildRule */ = {
|
CA6094FFF692AC6C1400ACA8 /* PBXBuildRule */ = {
|
||||||
isa = PBXBuildRule;
|
isa = PBXBuildRule;
|
||||||
compilerSpec = com.apple.compilers.proxy.script;
|
compilerSpec = com.apple.compilers.proxy.script;
|
||||||
dependencyFile = "$(DERIVED_FILE_DIR)/$(CARGO_XCODE_TARGET_ARCH)-$(EXECUTABLE_NAME).d";
|
filePatterns = "*/em_proxy.h";
|
||||||
filePatterns = "*/Cargo.toml"; /* must contain asterisk */
|
fileType = pattern.proxy;
|
||||||
fileType = pattern.proxy;
|
inputFiles = (
|
||||||
inputFiles = ();
|
);
|
||||||
isEditable = 0;
|
isEditable = 0;
|
||||||
name = "Cargo project build";
|
name = "Cargo project build";
|
||||||
outputFiles = (
|
outputFiles = (
|
||||||
"$(OBJECT_FILE_DIR)/$(CARGO_XCODE_TARGET_ARCH)-$(EXECUTABLE_NAME)",
|
"$(OBJECT_FILE_DIR)/$(CARGO_XCODE_TARGET_ARCH)-$(EXECUTABLE_NAME)",
|
||||||
);
|
);
|
||||||
script = "# generated with cargo-xcode 1.5.0\n\nset -eu; export PATH=\"$PATH:$HOME/.cargo/bin:/usr/local/bin\";\nif [ \"${IS_MACCATALYST-NO}\" = YES ]; then\n CARGO_XCODE_TARGET_TRIPLE=\"${CARGO_XCODE_TARGET_ARCH}-apple-ios-macabi\"\nelse\n CARGO_XCODE_TARGET_TRIPLE=\"${CARGO_XCODE_TARGET_ARCH}-apple-${CARGO_XCODE_TARGET_OS}\"\nfi\nif [ \"$CARGO_XCODE_TARGET_OS\" != \"darwin\" ]; then\n PATH=\"${PATH/\\/Contents\\/Developer\\/Toolchains\\/XcodeDefault.xctoolchain\\/usr\\/bin:/xcode-provided-ld-cant-link-lSystem-for-the-host-build-script:}\"\nfi\nPATH=\"$PATH:/opt/homebrew/bin\" # Rust projects often depend on extra tools like nasm, which Xcode lacks\nif [ \"$CARGO_XCODE_BUILD_MODE\" == release ]; then\n OTHER_INPUT_FILE_FLAGS=\"${OTHER_INPUT_FILE_FLAGS} --release\"\nfi\nif command -v rustup &> /dev/null; then\n if ! rustup target list --installed | egrep -q \"${CARGO_XCODE_TARGET_TRIPLE}\"; then\n echo \"warning: this build requires rustup toolchain for $CARGO_XCODE_TARGET_TRIPLE, but it isn\'t installed\"\n rustup target add \"${CARGO_XCODE_TARGET_TRIPLE}\" || echo >&2 \"warning: can\'t install $CARGO_XCODE_TARGET_TRIPLE\"\n fi\nfi\nif [ \"$ACTION\" = clean ]; then\n ( set -x; cargo clean --manifest-path=\"$SCRIPT_INPUT_FILE\" ${OTHER_INPUT_FILE_FLAGS} --target=\"${CARGO_XCODE_TARGET_TRIPLE}\"; );\nelse\n ( set -x; cargo build --manifest-path=\"$SCRIPT_INPUT_FILE\" --features=\"${CARGO_XCODE_FEATURES:-}\" ${OTHER_INPUT_FILE_FLAGS} --target=\"${CARGO_XCODE_TARGET_TRIPLE}\"; );\nfi\n# it\'s too hard to explain Cargo\'s actual exe path to Xcode build graph, so hardlink to a known-good path instead\nBUILT_SRC=\"${CARGO_TARGET_DIR}/${CARGO_XCODE_TARGET_TRIPLE}/${CARGO_XCODE_BUILD_MODE}/${CARGO_XCODE_CARGO_FILE_NAME}\"\nln -f -- \"$BUILT_SRC\" \"$SCRIPT_OUTPUT_FILE_0\"\n\n# xcode generates dep file, but for its own path, so append our rename to it\nDEP_FILE_SRC=\"${CARGO_TARGET_DIR}/${CARGO_XCODE_TARGET_TRIPLE}/${CARGO_XCODE_BUILD_MODE}/${CARGO_XCODE_CARGO_DEP_FILE_NAME}\"\nif [ -f \"$DEP_FILE_SRC\" ]; then\n DEP_FILE_DST=\"${DERIVED_FILE_DIR}/${CARGO_XCODE_TARGET_ARCH}-${EXECUTABLE_NAME}.d\"\n cp -f \"$DEP_FILE_SRC\" \"$DEP_FILE_DST\"\n echo >> \"$DEP_FILE_DST\" \"$SCRIPT_OUTPUT_FILE_0: $BUILT_SRC\"\nfi\n\n# lipo script needs to know all the platform-specific files that have been built\n# archs is in the file name, so that paths don\'t stay around after archs change\n# must match input for LipoScript\nFILE_LIST=\"${DERIVED_FILE_DIR}/${ARCHS}-${EXECUTABLE_NAME}.xcfilelist\"\ntouch \"$FILE_LIST\"\nif ! egrep -q \"$SCRIPT_OUTPUT_FILE_0\" \"$FILE_LIST\" ; then\n echo >> \"$FILE_LIST\" \"$SCRIPT_OUTPUT_FILE_0\"\nfi\n";
|
script = "# generated with cargo-xcode 1.5.0\n# modified to use prebuilt binaries\n\nset -eu;\n\nBUILT_SRC=\"./em_proxy/$LIB_FILE_NAME.a\"\nln -f -- \"$BUILT_SRC\" \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\" || cp \"$BUILT_SRC\" \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\necho \"$BUILT_SRC -> $TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n\n# xcode generates dep file, but for its own path, so append our rename to it\n#DEP_FILE_SRC=\"minimuxer/target/${CARGO_XCODE_TARGET_TRIPLE}/release/${CARGO_XCODE_CARGO_DEP_FILE_NAME}\"\n#if [ -f \"$DEP_FILE_SRC\" ]; then\n# DEP_FILE_DST=\"${DERIVED_FILE_DIR}/${CARGO_XCODE_TARGET_ARCH}-${EXECUTABLE_NAME}.d\"\n# cp -f \"$DEP_FILE_SRC\" \"$DEP_FILE_DST\"\n# echo >> \"$DEP_FILE_DST\" \"$SCRIPT_OUTPUT_FILE_0: $BUILT_SRC\"\n#fi\n\n# lipo script needs to know all the platform-specific files that have been built\n# archs is in the file name, so that paths don't stay around after archs change\n# must match input for LipoScript\n#FILE_LIST=\"${DERIVED_FILE_DIR}/${ARCHS}-${EXECUTABLE_NAME}.xcfilelist\"\n#touch \"$FILE_LIST\"\n#if ! egrep -q \"$SCRIPT_OUTPUT_FILE_0\" \"$FILE_LIST\" ; then\n# echo >> \"$FILE_LIST\" \"$SCRIPT_OUTPUT_FILE_0\"\n#fi\n";
|
||||||
};
|
};
|
||||||
/* End PBXBuildRule section */
|
/* End PBXBuildRule section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
|
9999259129A45319005CF020 /* em_proxy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = em_proxy.h; path = em_proxy/em_proxy.h; sourceTree = "<group>"; };
|
||||||
CA60C44C93D7916DE57E6EBD /* staticlib */ = {
|
ADDEDBA66A6E1 /* libresolv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT; };
|
||||||
isa = PBXFileReference;
|
CA60058A9FBE4D17AF51A7D5 /* run */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = run; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
explicitFileType = "archive.ar";
|
CA60C44C93D7916DE57E6EBD /* libem_proxy_static.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libem_proxy_static.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
includeInIndex = 0;
|
|
||||||
name = "libem_proxy_static.a";
|
|
||||||
sourceTree = TARGET_BUILD_DIR;
|
|
||||||
};
|
|
||||||
CA60058A9FBE4D17AF51A7D5 /* bin */ = {
|
|
||||||
isa = PBXFileReference;
|
|
||||||
explicitFileType = "compiled.mach-o.executable";
|
|
||||||
includeInIndex = 0;
|
|
||||||
name = "run";
|
|
||||||
sourceTree = TARGET_BUILD_DIR;
|
|
||||||
};
|
|
||||||
CA6094FFF6923EF4668187A5 /* Cargo.toml */ = {
|
|
||||||
isa = PBXFileReference;
|
|
||||||
lastKnownFileType = text;
|
|
||||||
fileEncoding = 4;
|
|
||||||
name = "Cargo.toml";
|
|
||||||
path = "em_proxy/Cargo.toml";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
/* Rust needs libresolv */
|
|
||||||
ADDEDBA66A6E1 = {
|
|
||||||
isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition";
|
|
||||||
name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
CA6094FFF69298AF0B5890DB /* Frameworks */ = {
|
ADDEDBA66A6E2 /* Required for static linking */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
ADDEDBA66A6E2,
|
ADDEDBA66A6E1 /* libresolv.tbd */,
|
||||||
|
);
|
||||||
);
|
name = "Required for static linking";
|
||||||
name = Frameworks;
|
sourceTree = "<group>";
|
||||||
sourceTree = "<group>";
|
};
|
||||||
};
|
CA6094FFF69222869D176AE5 /* Products */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
ADDEDBA66A6E2 /* Required for static linking */ = {
|
CA60C44C93D7916DE57E6EBD /* libem_proxy_static.a */,
|
||||||
isa = PBXGroup;
|
CA60058A9FBE4D17AF51A7D5 /* run */,
|
||||||
children = (
|
);
|
||||||
ADDEDBA66A6E1
|
name = Products;
|
||||||
);
|
sourceTree = "<group>";
|
||||||
name = "Required for static linking";
|
};
|
||||||
sourceTree = "<group>";
|
CA6094FFF69298AF0B5890DB /* Frameworks */ = {
|
||||||
};
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
CA6094FFF69222869D176AE5 /* Products */ = {
|
ADDEDBA66A6E2 /* Required for static linking */,
|
||||||
isa = PBXGroup;
|
);
|
||||||
children = (
|
name = Frameworks;
|
||||||
CA60C44C93D7916DE57E6EBD,
|
sourceTree = "<group>";
|
||||||
CA60058A9FBE4D17AF51A7D5,
|
};
|
||||||
|
CA6094FFF692D65BC3C892A8 = {
|
||||||
);
|
isa = PBXGroup;
|
||||||
name = Products;
|
children = (
|
||||||
sourceTree = "<group>";
|
9999259129A45319005CF020 /* em_proxy.h */,
|
||||||
};
|
CA6094FFF69222869D176AE5 /* Products */,
|
||||||
|
CA6094FFF69298AF0B5890DB /* Frameworks */,
|
||||||
CA6094FFF692D65BC3C892A8 /* Main */ = {
|
);
|
||||||
isa = PBXGroup;
|
sourceTree = "<group>";
|
||||||
children = (
|
};
|
||||||
CA6094FFF6923EF4668187A5,
|
|
||||||
CA6094FFF69222869D176AE5,
|
|
||||||
CA6094FFF69298AF0B5890DB,
|
|
||||||
|
|
||||||
);
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
|
|
||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
CA60C44C93D7A30E3695DD59 /* em_proxy-staticlib */ = {
|
CA60058A9FBE37FC563E4BCC /* run-bin */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = CA603DD75FB4A30E3695DD59;
|
buildConfigurationList = CA603DD75FB437FC563E4BCC /* Build configuration list for PBXNativeTarget "run-bin" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
CA60445C3036A30E3695DD59 /* Sources */,
|
CA60445C303637FC563E4BCC /* Sources */,
|
||||||
CA6094FFF692AF6EBB7F357C /* Universal Binary lipo */,
|
CA6094FFF692AF6EBB7F357C /* Universal Binary lipo */,
|
||||||
);
|
);
|
||||||
buildRules = (
|
buildRules = (
|
||||||
CA6094FFF692AC6C1400ACA8 /* PBXBuildRule */,
|
CA6094FFF692AC6C1400ACA8 /* PBXBuildRule */,
|
||||||
);
|
);
|
||||||
dependencies = (
|
dependencies = (
|
||||||
);
|
);
|
||||||
name = "em_proxy-staticlib";
|
name = "run-bin";
|
||||||
productName = "libem_proxy_static.a";
|
productName = run;
|
||||||
productReference = CA60C44C93D7916DE57E6EBD;
|
productReference = CA60058A9FBE4D17AF51A7D5 /* run */;
|
||||||
productType = "com.apple.product-type.library.static";
|
productType = "com.apple.product-type.tool";
|
||||||
};
|
};
|
||||||
CA60058A9FBE37FC563E4BCC /* run-bin */ = {
|
CA60C44C93D7A30E3695DD59 /* em_proxy-staticlib */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = CA603DD75FB437FC563E4BCC;
|
buildConfigurationList = CA603DD75FB4A30E3695DD59 /* Build configuration list for PBXNativeTarget "em_proxy-staticlib" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
CA60445C303637FC563E4BCC /* Sources */,
|
9987603529A4610700818586 /* ShellScript */,
|
||||||
CA6094FFF692AF6EBB7F357C /* Universal Binary lipo */,
|
CA60445C3036A30E3695DD59 /* Sources */,
|
||||||
);
|
CA6094FFF692AF6EBB7F357C /* Universal Binary lipo */,
|
||||||
buildRules = (
|
);
|
||||||
CA6094FFF692AC6C1400ACA8 /* PBXBuildRule */,
|
buildRules = (
|
||||||
);
|
CA6094FFF692AC6C1400ACA8 /* PBXBuildRule */,
|
||||||
dependencies = (
|
);
|
||||||
);
|
dependencies = (
|
||||||
name = "run-bin";
|
);
|
||||||
productName = "run";
|
name = "em_proxy-staticlib";
|
||||||
productReference = CA60058A9FBE4D17AF51A7D5;
|
productName = libem_proxy_static.a;
|
||||||
productType = "com.apple.product-type.tool";
|
productReference = CA60C44C93D7916DE57E6EBD /* libem_proxy_static.a */;
|
||||||
};
|
productType = "com.apple.product-type.library.static";
|
||||||
|
};
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
CA60445C3036A30E3695DD59 = {
|
/* Begin PBXProject section */
|
||||||
isa = PBXSourcesBuildPhase;
|
CA6094FFF692E04653AD465F /* Project object */ = {
|
||||||
buildActionMask = 2147483647;
|
isa = PBXProject;
|
||||||
files = (
|
attributes = {
|
||||||
CA60E4E02AAAA30E3695DD59
|
LastUpgradeCheck = 1300;
|
||||||
);
|
TargetAttributes = {
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
CA60058A9FBE37FC563E4BCC = {
|
||||||
};
|
CreatedOnToolsVersion = 9.2;
|
||||||
|
ProvisioningStyle = Automatic;
|
||||||
CA603DD75FB4A30E3695DD59 /* staticlib */ = {
|
};
|
||||||
isa = XCConfigurationList;
|
CA60C44C93D7A30E3695DD59 = {
|
||||||
buildConfigurations = (
|
CreatedOnToolsVersion = 9.2;
|
||||||
CA604DFE779BA30E3695DD59 /* Release */,
|
ProvisioningStyle = Automatic;
|
||||||
CA60DE07A83FA30E3695DD59 /* Debug */,
|
};
|
||||||
);
|
};
|
||||||
defaultConfigurationIsVisible = 0;
|
};
|
||||||
defaultConfigurationName = Release;
|
buildConfigurationList = CA6094FFF69280E02D6C7F57 /* Build configuration list for PBXProject "em_proxy" */;
|
||||||
};
|
compatibilityVersion = "Xcode 11.4";
|
||||||
CA604DFE779BA30E3695DD59 /* staticlib */ = {
|
developmentRegion = en;
|
||||||
isa = XCBuildConfiguration;
|
hasScannedForEncodings = 0;
|
||||||
buildSettings = {
|
knownRegions = (
|
||||||
PRODUCT_NAME = "em_proxy_static";
|
en,
|
||||||
"CARGO_XCODE_CARGO_FILE_NAME" = "libem_proxy.a";
|
Base,
|
||||||
"CARGO_XCODE_CARGO_DEP_FILE_NAME" = "libem_proxy.d";
|
);
|
||||||
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
|
mainGroup = CA6094FFF692D65BC3C892A8;
|
||||||
SKIP_INSTALL = YES;
|
productRefGroup = CA6094FFF69222869D176AE5 /* Products */;
|
||||||
INSTALL_GROUP = "";
|
projectDirPath = "";
|
||||||
INSTALL_MODE_FLAG = "";
|
projectRoot = "";
|
||||||
INSTALL_OWNER = "";
|
targets = (
|
||||||
|
CA60C44C93D7A30E3695DD59 /* em_proxy-staticlib */,
|
||||||
};
|
CA60058A9FBE37FC563E4BCC /* run-bin */,
|
||||||
name = Release;
|
);
|
||||||
};
|
};
|
||||||
CA60DE07A83FA30E3695DD59 /* staticlib */ = {
|
/* End PBXProject section */
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
PRODUCT_NAME = "em_proxy_static";
|
|
||||||
"CARGO_XCODE_CARGO_FILE_NAME" = "libem_proxy.a";
|
|
||||||
"CARGO_XCODE_CARGO_DEP_FILE_NAME" = "libem_proxy.d";
|
|
||||||
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
|
|
||||||
SKIP_INSTALL = YES;
|
|
||||||
INSTALL_GROUP = "";
|
|
||||||
INSTALL_MODE_FLAG = "";
|
|
||||||
INSTALL_OWNER = "";
|
|
||||||
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};CA60445C303637FC563E4BCC = {
|
|
||||||
isa = PBXSourcesBuildPhase;
|
|
||||||
buildActionMask = 2147483647;
|
|
||||||
files = (
|
|
||||||
CA60E4E02AAA37FC563E4BCC
|
|
||||||
);
|
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
CA603DD75FB437FC563E4BCC /* bin */ = {
|
|
||||||
isa = XCConfigurationList;
|
|
||||||
buildConfigurations = (
|
|
||||||
CA604DFE779B37FC563E4BCC /* Release */,
|
|
||||||
CA60DE07A83F37FC563E4BCC /* Debug */,
|
|
||||||
);
|
|
||||||
defaultConfigurationIsVisible = 0;
|
|
||||||
defaultConfigurationName = Release;
|
|
||||||
};
|
|
||||||
CA604DFE779B37FC563E4BCC /* bin */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
PRODUCT_NAME = "run";
|
|
||||||
"CARGO_XCODE_CARGO_FILE_NAME" = "run";
|
|
||||||
"CARGO_XCODE_CARGO_DEP_FILE_NAME" = "run.d";
|
|
||||||
SUPPORTED_PLATFORMS = "macosx";
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
CA60DE07A83F37FC563E4BCC /* bin */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
PRODUCT_NAME = "run";
|
|
||||||
"CARGO_XCODE_CARGO_FILE_NAME" = "run";
|
|
||||||
"CARGO_XCODE_CARGO_DEP_FILE_NAME" = "run.d";
|
|
||||||
SUPPORTED_PLATFORMS = "macosx";
|
|
||||||
|
|
||||||
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
|
|
||||||
CA6094FFF692AF6EBB7F357C /* LipoScript */ = {
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
name = "Universal Binary lipo";
|
9987603529A4610700818586 /* ShellScript */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = ();
|
files = (
|
||||||
inputFileListPaths = ();
|
);
|
||||||
inputPaths = (
|
inputFileListPaths = (
|
||||||
"$(DERIVED_FILE_DIR)/$(ARCHS)-$(EXECUTABLE_NAME).xcfilelist",
|
);
|
||||||
);
|
inputPaths = (
|
||||||
outputFileListPaths = ();
|
);
|
||||||
outputPaths = (
|
outputFileListPaths = (
|
||||||
"$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)"
|
);
|
||||||
);
|
outputPaths = (
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
./em_proxy/em_proxy.h,
|
||||||
shellPath = /bin/sh;
|
);
|
||||||
shellScript = "# generated with cargo-xcode 1.5.0\n\n set -eux; cat \"$DERIVED_FILE_DIR/$ARCHS-$EXECUTABLE_NAME.xcfilelist\" | tr \'\\n\' \'\\0\' | xargs -0 lipo -create -output \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n if [ ${LD_DYLIB_INSTALL_NAME:+1} ]; then\n install_name_tool -id \"$LD_DYLIB_INSTALL_NAME\" \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n fi\n ";
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "bash ./fetch-prebuilt.sh em_proxy\n";
|
||||||
|
};
|
||||||
|
CA6094FFF692AF6EBB7F357C /* Universal Binary lipo */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
"$(DERIVED_FILE_DIR)/$(ARCHS)-$(EXECUTABLE_NAME).xcfilelist",
|
||||||
|
);
|
||||||
|
name = "Universal Binary lipo";
|
||||||
|
outputFileListPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
"$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "# generated with cargo-xcode 1.5.0\n\n#set -eux; cat \"$DERIVED_FILE_DIR/$ARCHS-$EXECUTABLE_NAME.xcfilelist\" | tr '\\n' '\\0' | xargs -0 lipo -create -output \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n#if [ ${LD_DYLIB_INSTALL_NAME:+1} ]; then\n# install_name_tool -id \"$LD_DYLIB_INSTALL_NAME\" \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n#fi\n";
|
||||||
|
};
|
||||||
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
CA6094FFF69280E02D6C7F57 = {
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
isa = XCConfigurationList;
|
CA60445C303637FC563E4BCC /* Sources */ = {
|
||||||
buildConfigurations = (
|
isa = PBXSourcesBuildPhase;
|
||||||
CA609A5173513CC16B37690B /* Release */,
|
buildActionMask = 2147483647;
|
||||||
CA609A517351228BE02872F8 /* Debug */,
|
files = (
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
defaultConfigurationName = Release;
|
};
|
||||||
};
|
CA60445C3036A30E3695DD59 /* Sources */ = {
|
||||||
|
isa = PBXSourcesBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
9987603429A4555300818586 /* em_proxy.h in Sources */,
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
CA609A5173513CC16B37690B = {
|
/* Begin XCBuildConfiguration section */
|
||||||
isa = XCBuildConfiguration;
|
CA604DFE779B37FC563E4BCC /* Release */ = {
|
||||||
buildSettings = {
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
CARGO_XCODE_CARGO_DEP_FILE_NAME = run.d;
|
||||||
SUPPORTS_MACCATALYST = YES;
|
CARGO_XCODE_CARGO_FILE_NAME = run;
|
||||||
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target"; /* for cargo */
|
PRODUCT_NAME = run;
|
||||||
CARGO_XCODE_FEATURES = ""; /* configure yourself */
|
SUPPORTED_PLATFORMS = macosx;
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=arm64*]" = "aarch64";
|
};
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=x86_64*]" = "x86_64"; /* catalyst adds h suffix */
|
name = Release;
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=i386]" = "i686";
|
};
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=macosx*]" = "darwin";
|
CA604DFE779BA30E3695DD59 /* Release */ = {
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*]" = "ios-sim";
|
isa = XCBuildConfiguration;
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*][arch=x86_64*]" = "ios";
|
buildSettings = {
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphoneos*]" = "ios";
|
CARGO_XCODE_CARGO_DEP_FILE_NAME = libem_proxy.d;
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=appletvsimulator*]" = "tvos";
|
CARGO_XCODE_CARGO_FILE_NAME = libem_proxy.a;
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=appletvos*]" = "tvos";
|
INSTALL_GROUP = "";
|
||||||
PRODUCT_NAME = "em_proxy";
|
INSTALL_MODE_FLAG = "";
|
||||||
MARKETING_VERSION = "0.1.0";
|
INSTALL_OWNER = "";
|
||||||
CURRENT_PROJECT_VERSION = "0.1";
|
LIB_FILE_NAME = "";
|
||||||
SDKROOT = macosx;
|
"LIB_FILE_NAME[sdk=iphoneos*]" = libem_proxy;
|
||||||
|
"LIB_FILE_NAME[sdk=iphonesimulator*]" = "libem_proxy-sim";
|
||||||
"CARGO_XCODE_BUILD_MODE" = "release"; /* for xcode scripts */
|
PRODUCT_NAME = em_proxy_static;
|
||||||
};
|
SKIP_INSTALL = YES;
|
||||||
name = Release;
|
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
|
||||||
};
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
CA609A517351228BE02872F8 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target";
|
||||||
|
CARGO_XCODE_BUILD_MODE = debug;
|
||||||
|
CARGO_XCODE_FEATURES = "";
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=arm64*]" = aarch64;
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=i386]" = i686;
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=x86_64*]" = x86_64;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=appletvos*]" = tvos;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=appletvsimulator*]" = tvos;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphoneos*]" = ios;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*]" = "ios-sim";
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*][arch=x86_64*]" = ios;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=macosx*]" = darwin;
|
||||||
|
CURRENT_PROJECT_VERSION = 0.1;
|
||||||
|
MARKETING_VERSION = 0.1.0;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
PRODUCT_NAME = em_proxy;
|
||||||
|
SDKROOT = macosx;
|
||||||
|
SUPPORTS_MACCATALYST = YES;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
CA609A5173513CC16B37690B /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target";
|
||||||
|
CARGO_XCODE_BUILD_MODE = release;
|
||||||
|
CARGO_XCODE_FEATURES = "";
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=arm64*]" = aarch64;
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=i386]" = i686;
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=x86_64*]" = x86_64;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=appletvos*]" = tvos;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=appletvsimulator*]" = tvos;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphoneos*]" = ios;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*]" = "ios-sim";
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*][arch=x86_64*]" = ios;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=macosx*]" = darwin;
|
||||||
|
CURRENT_PROJECT_VERSION = 0.1;
|
||||||
|
MARKETING_VERSION = 0.1.0;
|
||||||
|
PRODUCT_NAME = em_proxy;
|
||||||
|
SDKROOT = macosx;
|
||||||
|
SUPPORTS_MACCATALYST = YES;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
CA60DE07A83F37FC563E4BCC /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
CARGO_XCODE_CARGO_DEP_FILE_NAME = run.d;
|
||||||
|
CARGO_XCODE_CARGO_FILE_NAME = run;
|
||||||
|
PRODUCT_NAME = run;
|
||||||
|
SUPPORTED_PLATFORMS = macosx;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
CA60DE07A83FA30E3695DD59 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
CARGO_XCODE_CARGO_DEP_FILE_NAME = libem_proxy.d;
|
||||||
|
CARGO_XCODE_CARGO_FILE_NAME = libem_proxy.a;
|
||||||
|
INSTALL_GROUP = "";
|
||||||
|
INSTALL_MODE_FLAG = "";
|
||||||
|
INSTALL_OWNER = "";
|
||||||
|
LIB_FILE_NAME = "";
|
||||||
|
"LIB_FILE_NAME[sdk=iphoneos*]" = libem_proxy;
|
||||||
|
"LIB_FILE_NAME[sdk=iphonesimulator*]" = "libem_proxy-sim";
|
||||||
|
PRODUCT_NAME = em_proxy_static;
|
||||||
|
SKIP_INSTALL = YES;
|
||||||
|
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
CA609A517351228BE02872F8 = {
|
/* Begin XCConfigurationList section */
|
||||||
isa = XCBuildConfiguration;
|
CA603DD75FB437FC563E4BCC /* Build configuration list for PBXNativeTarget "run-bin" */ = {
|
||||||
buildSettings = {
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
CA604DFE779B37FC563E4BCC /* Release */,
|
||||||
SUPPORTS_MACCATALYST = YES;
|
CA60DE07A83F37FC563E4BCC /* Debug */,
|
||||||
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target"; /* for cargo */
|
);
|
||||||
CARGO_XCODE_FEATURES = ""; /* configure yourself */
|
defaultConfigurationIsVisible = 0;
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=arm64*]" = "aarch64";
|
defaultConfigurationName = Release;
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=x86_64*]" = "x86_64"; /* catalyst adds h suffix */
|
};
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=i386]" = "i686";
|
CA603DD75FB4A30E3695DD59 /* Build configuration list for PBXNativeTarget "em_proxy-staticlib" */ = {
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=macosx*]" = "darwin";
|
isa = XCConfigurationList;
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*]" = "ios-sim";
|
buildConfigurations = (
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*][arch=x86_64*]" = "ios";
|
CA604DFE779BA30E3695DD59 /* Release */,
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphoneos*]" = "ios";
|
CA60DE07A83FA30E3695DD59 /* Debug */,
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=appletvsimulator*]" = "tvos";
|
);
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=appletvos*]" = "tvos";
|
defaultConfigurationIsVisible = 0;
|
||||||
PRODUCT_NAME = "em_proxy";
|
defaultConfigurationName = Release;
|
||||||
MARKETING_VERSION = "0.1.0";
|
};
|
||||||
CURRENT_PROJECT_VERSION = "0.1";
|
CA6094FFF69280E02D6C7F57 /* Build configuration list for PBXProject "em_proxy" */ = {
|
||||||
SDKROOT = macosx;
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
"CARGO_XCODE_BUILD_MODE" = "debug"; /* for xcode scripts */
|
CA609A5173513CC16B37690B /* Release */,
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
CA609A517351228BE02872F8 /* Debug */,
|
||||||
};
|
);
|
||||||
name = Debug;
|
defaultConfigurationIsVisible = 0;
|
||||||
};
|
defaultConfigurationName = Release;
|
||||||
|
};
|
||||||
CA6094FFF692E04653AD465F = {
|
/* End XCConfigurationList section */
|
||||||
isa = PBXProject;
|
};
|
||||||
attributes = {
|
rootObject = CA6094FFF692E04653AD465F /* Project object */;
|
||||||
LastUpgradeCheck = 1300;
|
|
||||||
TargetAttributes = {
|
|
||||||
CA60C44C93D7A30E3695DD59 = {
|
|
||||||
CreatedOnToolsVersion = 9.2;
|
|
||||||
ProvisioningStyle = Automatic;
|
|
||||||
};
|
|
||||||
CA60058A9FBE37FC563E4BCC = {
|
|
||||||
CreatedOnToolsVersion = 9.2;
|
|
||||||
ProvisioningStyle = Automatic;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
buildConfigurationList = CA6094FFF69280E02D6C7F57;
|
|
||||||
compatibilityVersion = "Xcode 11.4";
|
|
||||||
developmentRegion = en;
|
|
||||||
hasScannedForEncodings = 0;
|
|
||||||
knownRegions = (
|
|
||||||
en,
|
|
||||||
Base,
|
|
||||||
);
|
|
||||||
mainGroup = CA6094FFF692D65BC3C892A8;
|
|
||||||
productRefGroup = CA6094FFF69222869D176AE5 /* Products */;
|
|
||||||
projectDirPath = "";
|
|
||||||
projectRoot = "";
|
|
||||||
targets = (
|
|
||||||
CA60C44C93D7A30E3695DD59,
|
|
||||||
CA60058A9FBE37FC563E4BCC,
|
|
||||||
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
rootObject = CA6094FFF692E04653AD465F;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1
Dependencies/em_proxy/.gitkeep
vendored
Normal file
1
Dependencies/em_proxy/.gitkeep
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Use ../fetch-prebuilt.sh to fetch prebuilt Rust dependencies
|
||||||
66
Dependencies/fetch-prebuilt.sh
vendored
Normal file
66
Dependencies/fetch-prebuilt.sh
vendored
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Ensure we are in Dependencies directory
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
check_for_update() {
|
||||||
|
if [ -f ".skip-prebuilt-fetch-$1" ]; then
|
||||||
|
echo "Skipping prebuilt fetch for $1 since .skip-prebuilt-fetch-$1 exists. If you are developing $1 alongside SideStore, don't remove this file, or this script will replace your locally built binaries with the ones built by GitHub Actions."
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f ".last-prebuilt-fetch-$1" ]; then
|
||||||
|
echo "0,none" > ".last-prebuilt-fetch-$1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LAST_FETCH=`cat .last-prebuilt-fetch-$1 | perl -n -e '/([0-9]*),([^ ]*)$/ && print $1'`
|
||||||
|
LAST_COMMIT=`cat .last-prebuilt-fetch-$1 | perl -n -e '/([0-9]*),([^ ]*)$/ && print $2'`
|
||||||
|
|
||||||
|
# fetch if last fetch was over 1 hour ago
|
||||||
|
if [[ $LAST_FETCH -lt $(expr $(date +%s) - 3600) ]] || [[ "$2" == "force" ]]; then
|
||||||
|
echo "Checking $1 for update"
|
||||||
|
echo
|
||||||
|
LATEST_COMMIT=`curl https://api.github.com/repos/SideStore/$1/releases/latest | perl -n -e '/Commit: https:\\/\\/github\\.com\\/[^\\/]*\\/[^\\/]*\\/commit\\/([^"]*)/ && print $1'`
|
||||||
|
echo
|
||||||
|
echo "Last commit: $LAST_COMMIT"
|
||||||
|
echo "Latest commit: $LATEST_COMMIT"
|
||||||
|
if [[ "$LAST_COMMIT" != "$LATEST_COMMIT" ]]; then
|
||||||
|
echo "Found update, downloading binaries"
|
||||||
|
echo
|
||||||
|
wget -O "$1/lib$1-sim.a" "https://github.com/SideStore/$1/releases/latest/download/lib$1-sim.a"
|
||||||
|
if [[ "$1" != "minimuxer" ]]; then
|
||||||
|
wget -O "$1/lib$1.a" "https://github.com/SideStore/$1/releases/latest/download/lib$1.a"
|
||||||
|
wget -O "$1/$1.h" "https://github.com/SideStore/$1/releases/latest/download/$1.h"
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
wget -O "$1/lib$1-ios.a" "https://github.com/SideStore/$1/releases/latest/download/lib$1-ios.a"
|
||||||
|
wget -O "$1/generated.zip" "https://github.com/SideStore/$1/releases/latest/download/generated.zip"
|
||||||
|
echo
|
||||||
|
echo "Unzipping generated.zip"
|
||||||
|
cd "$1"
|
||||||
|
unzip ./generated.zip
|
||||||
|
mv -v generated/* .
|
||||||
|
rm generated.zip
|
||||||
|
rmdir generated/
|
||||||
|
cd ..
|
||||||
|
echo "Done"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Up-to-date"
|
||||||
|
fi
|
||||||
|
echo "$(date +%s),$LATEST_COMMIT" > ".last-prebuilt-fetch-$1"
|
||||||
|
else
|
||||||
|
echo "It hasn't been 1 hour and force was not specified, skipping update check for $1"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Allow for Xcode to check minimuxer and em_proxy separately by skipping the update check if the other one is specified as an argument
|
||||||
|
if [[ "$1" != "em_proxy" ]]; then
|
||||||
|
check_for_update minimuxer "$1"
|
||||||
|
if [[ "$1" != "minimuxer" ]]; then
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ "$1" != "minimuxer" ]]; then
|
||||||
|
check_for_update em_proxy "$1"
|
||||||
|
fi
|
||||||
1
Dependencies/minimuxer
vendored
1
Dependencies/minimuxer
vendored
Submodule Dependencies/minimuxer deleted from 6a5a5b4e73
548
Dependencies/minimuxer.xcodeproj/project.pbxproj
vendored
548
Dependencies/minimuxer.xcodeproj/project.pbxproj
vendored
@@ -1,292 +1,300 @@
|
|||||||
// !$*UTF8*$!
|
// !$*UTF8*$!
|
||||||
{
|
{
|
||||||
/* generated with cargo-xcode 1.5.0 */
|
archiveVersion = 1;
|
||||||
archiveVersion = 1;
|
classes = {
|
||||||
classes = {
|
};
|
||||||
};
|
objectVersion = 53;
|
||||||
objectVersion = 53;
|
objects = {
|
||||||
objects = {
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
|
9961EC2829BE9C2000AF2C6F /* SwiftBridgeCore.h in Sources */ = {isa = PBXBuildFile; fileRef = 9961EC2729BE9C1200AF2C6F /* SwiftBridgeCore.h */; };
|
||||||
CA6038F2DF2FA560B9642892 /* Cargo.toml in Sources */ = {
|
9987603329A454B500818586 /* minimuxer.h in Sources */ = {isa = PBXBuildFile; fileRef = 9987603229A454B500818586 /* minimuxer.h */; };
|
||||||
isa = PBXBuildFile;
|
|
||||||
fileRef = CA6012A875F93EF4668187A5 /* Cargo.toml */;
|
|
||||||
settings = {
|
|
||||||
COMPILER_FLAGS = "--lib"; /* == OTHER_INPUT_FILE_FLAGS */
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
/* End PBXBuildFile section */
|
/* End PBXBuildFile section */
|
||||||
|
|
||||||
/* Begin PBXBuildRule section */
|
/* Begin PBXBuildRule section */
|
||||||
CA6012A875F9AC6C1400ACA8 /* PBXBuildRule */ = {
|
CA6012A875F9AC6C1400ACA8 /* PBXBuildRule */ = {
|
||||||
isa = PBXBuildRule;
|
isa = PBXBuildRule;
|
||||||
compilerSpec = com.apple.compilers.proxy.script;
|
compilerSpec = com.apple.compilers.proxy.script;
|
||||||
dependencyFile = "$(DERIVED_FILE_DIR)/$(CARGO_XCODE_TARGET_ARCH)-$(EXECUTABLE_NAME).d";
|
filePatterns = "*/minimuxer.h";
|
||||||
filePatterns = "*/Cargo.toml"; /* must contain asterisk */
|
fileType = pattern.proxy;
|
||||||
fileType = pattern.proxy;
|
inputFiles = (
|
||||||
inputFiles = ();
|
);
|
||||||
isEditable = 0;
|
isEditable = 0;
|
||||||
name = "Cargo project build";
|
name = "Cargo project build";
|
||||||
outputFiles = (
|
outputFiles = (
|
||||||
"$(OBJECT_FILE_DIR)/$(CARGO_XCODE_TARGET_ARCH)-$(EXECUTABLE_NAME)",
|
"$(OBJECT_FILE_DIR)/$(CARGO_XCODE_TARGET_ARCH)-$(EXECUTABLE_NAME)",
|
||||||
);
|
);
|
||||||
script = "# generated with cargo-xcode 1.5.0\n\nset -eu; export PATH=\"$PATH:$HOME/.cargo/bin:/usr/local/bin\";\nif [ \"${IS_MACCATALYST-NO}\" = YES ]; then\n CARGO_XCODE_TARGET_TRIPLE=\"${CARGO_XCODE_TARGET_ARCH}-apple-ios-macabi\"\nelse\n CARGO_XCODE_TARGET_TRIPLE=\"${CARGO_XCODE_TARGET_ARCH}-apple-${CARGO_XCODE_TARGET_OS}\"\nfi\nif [ \"$CARGO_XCODE_TARGET_OS\" != \"darwin\" ]; then\n PATH=\"${PATH/\\/Contents\\/Developer\\/Toolchains\\/XcodeDefault.xctoolchain\\/usr\\/bin:/xcode-provided-ld-cant-link-lSystem-for-the-host-build-script:}\"\nfi\nPATH=\"$PATH:/opt/homebrew/bin\" # Rust projects often depend on extra tools like nasm, which Xcode lacks\nif [ \"$CARGO_XCODE_BUILD_MODE\" == release ]; then\n OTHER_INPUT_FILE_FLAGS=\"${OTHER_INPUT_FILE_FLAGS} --release\"\nfi\nif command -v rustup &> /dev/null; then\n if ! rustup target list --installed | egrep -q \"${CARGO_XCODE_TARGET_TRIPLE}\"; then\n echo \"warning: this build requires rustup toolchain for $CARGO_XCODE_TARGET_TRIPLE, but it isn\'t installed\"\n rustup target add \"${CARGO_XCODE_TARGET_TRIPLE}\" || echo >&2 \"warning: can\'t install $CARGO_XCODE_TARGET_TRIPLE\"\n fi\nfi\nif [ \"$ACTION\" = clean ]; then\n ( set -x; cargo clean --manifest-path=\"$SCRIPT_INPUT_FILE\" ${OTHER_INPUT_FILE_FLAGS} --target=\"${CARGO_XCODE_TARGET_TRIPLE}\"; );\nelse\n ( set -x; cargo build --manifest-path=\"$SCRIPT_INPUT_FILE\" --features=\"${CARGO_XCODE_FEATURES:-}\" ${OTHER_INPUT_FILE_FLAGS} --target=\"${CARGO_XCODE_TARGET_TRIPLE}\"; );\nfi\n# it\'s too hard to explain Cargo\'s actual exe path to Xcode build graph, so hardlink to a known-good path instead\nBUILT_SRC=\"${CARGO_TARGET_DIR}/${CARGO_XCODE_TARGET_TRIPLE}/${CARGO_XCODE_BUILD_MODE}/${CARGO_XCODE_CARGO_FILE_NAME}\"\nln -f -- \"$BUILT_SRC\" \"$SCRIPT_OUTPUT_FILE_0\"\n\n# xcode generates dep file, but for its own path, so append our rename to it\nDEP_FILE_SRC=\"${CARGO_TARGET_DIR}/${CARGO_XCODE_TARGET_TRIPLE}/${CARGO_XCODE_BUILD_MODE}/${CARGO_XCODE_CARGO_DEP_FILE_NAME}\"\nif [ -f \"$DEP_FILE_SRC\" ]; then\n DEP_FILE_DST=\"${DERIVED_FILE_DIR}/${CARGO_XCODE_TARGET_ARCH}-${EXECUTABLE_NAME}.d\"\n cp -f \"$DEP_FILE_SRC\" \"$DEP_FILE_DST\"\n echo >> \"$DEP_FILE_DST\" \"$SCRIPT_OUTPUT_FILE_0: $BUILT_SRC\"\nfi\n\n# lipo script needs to know all the platform-specific files that have been built\n# archs is in the file name, so that paths don\'t stay around after archs change\n# must match input for LipoScript\nFILE_LIST=\"${DERIVED_FILE_DIR}/${ARCHS}-${EXECUTABLE_NAME}.xcfilelist\"\ntouch \"$FILE_LIST\"\nif ! egrep -q \"$SCRIPT_OUTPUT_FILE_0\" \"$FILE_LIST\" ; then\n echo >> \"$FILE_LIST\" \"$SCRIPT_OUTPUT_FILE_0\"\nfi\n";
|
script = "# generated with cargo-xcode 1.5.0\n# modified to use prebuilt binaries\n\nset -eu;\n\nBUILT_SRC=\"./minimuxer/$LIB_FILE_NAME.a\"\nln -f -- \"$BUILT_SRC\" \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\" || cp \"$BUILT_SRC\" \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\necho \"$BUILT_SRC -> $TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n\n# xcode generates dep file, but for its own path, so append our rename to it\n#DEP_FILE_SRC=\"minimuxer/target/${CARGO_XCODE_TARGET_TRIPLE}/release/${CARGO_XCODE_CARGO_DEP_FILE_NAME}\"\n#if [ -f \"$DEP_FILE_SRC\" ]; then\n# DEP_FILE_DST=\"${DERIVED_FILE_DIR}/${CARGO_XCODE_TARGET_ARCH}-${EXECUTABLE_NAME}.d\"\n# cp -f \"$DEP_FILE_SRC\" \"$DEP_FILE_DST\"\n# echo >> \"$DEP_FILE_DST\" \"$SCRIPT_OUTPUT_FILE_0: $BUILT_SRC\"\n#fi\n\n# lipo script needs to know all the platform-specific files that have been built\n# archs is in the file name, so that paths don't stay around after archs change\n# must match input for LipoScript\n#FILE_LIST=\"${DERIVED_FILE_DIR}/${ARCHS}-${EXECUTABLE_NAME}.xcfilelist\"\n#touch \"$FILE_LIST\"\n#if ! egrep -q \"$SCRIPT_OUTPUT_FILE_0\" \"$FILE_LIST\" ; then\n# echo >> \"$FILE_LIST\" \"$SCRIPT_OUTPUT_FILE_0\"\n#fi\n";
|
||||||
};
|
};
|
||||||
/* End PBXBuildRule section */
|
/* End PBXBuildRule section */
|
||||||
|
|
||||||
/* Begin PBXFileReference section */
|
/* Begin PBXFileReference section */
|
||||||
|
9961EC2729BE9C1200AF2C6F /* SwiftBridgeCore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SwiftBridgeCore.h; path = minimuxer/SwiftBridgeCore.h; sourceTree = "<group>"; };
|
||||||
CA609C732349C7AAD9FA67C4 /* staticlib */ = {
|
9987603229A454B500818586 /* minimuxer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = minimuxer.h; path = minimuxer/minimuxer.h; sourceTree = "<group>"; };
|
||||||
isa = PBXFileReference;
|
ADDEDBA66A6E1 /* libresolv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT; };
|
||||||
explicitFileType = "archive.ar";
|
CA609C732349C7AAD9FA67C4 /* libminimuxer_static.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libminimuxer_static.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||||
includeInIndex = 0;
|
|
||||||
name = "libminimuxer_static.a";
|
|
||||||
sourceTree = TARGET_BUILD_DIR;
|
|
||||||
};
|
|
||||||
CA6012A875F93EF4668187A5 /* Cargo.toml */ = {
|
|
||||||
isa = PBXFileReference;
|
|
||||||
lastKnownFileType = text;
|
|
||||||
fileEncoding = 4;
|
|
||||||
name = "Cargo.toml";
|
|
||||||
path = "minimuxer/Cargo.toml";
|
|
||||||
sourceTree = "<group>";
|
|
||||||
};
|
|
||||||
/* Rust needs libresolv */
|
|
||||||
ADDEDBA66A6E1 = {
|
|
||||||
isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition";
|
|
||||||
name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT;
|
|
||||||
};
|
|
||||||
|
|
||||||
/* End PBXFileReference section */
|
/* End PBXFileReference section */
|
||||||
|
|
||||||
/* Begin PBXGroup section */
|
/* Begin PBXGroup section */
|
||||||
CA6012A875F998AF0B5890DB /* Frameworks */ = {
|
99F87D1529D8E41100B40039 /* Generated */ = {
|
||||||
isa = PBXGroup;
|
isa = PBXGroup;
|
||||||
children = (
|
children = (
|
||||||
ADDEDBA66A6E2,
|
9961EC2729BE9C1200AF2C6F /* SwiftBridgeCore.h */,
|
||||||
|
9987603229A454B500818586 /* minimuxer.h */,
|
||||||
);
|
);
|
||||||
name = Frameworks;
|
name = Generated;
|
||||||
sourceTree = "<group>";
|
sourceTree = "<group>";
|
||||||
};
|
};
|
||||||
|
ADDEDBA66A6E2 /* Required for static linking */ = {
|
||||||
|
isa = PBXGroup;
|
||||||
ADDEDBA66A6E2 /* Required for static linking */ = {
|
children = (
|
||||||
isa = PBXGroup;
|
ADDEDBA66A6E1 /* libresolv.tbd */,
|
||||||
children = (
|
);
|
||||||
ADDEDBA66A6E1
|
name = "Required for static linking";
|
||||||
);
|
sourceTree = "<group>";
|
||||||
name = "Required for static linking";
|
};
|
||||||
sourceTree = "<group>";
|
CA6012A875F922869D176AE5 /* Products */ = {
|
||||||
};
|
isa = PBXGroup;
|
||||||
|
children = (
|
||||||
CA6012A875F922869D176AE5 /* Products */ = {
|
CA609C732349C7AAD9FA67C4 /* libminimuxer_static.a */,
|
||||||
isa = PBXGroup;
|
);
|
||||||
children = (
|
name = Products;
|
||||||
CA609C732349C7AAD9FA67C4,
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
);
|
CA6012A875F998AF0B5890DB /* Frameworks */ = {
|
||||||
name = Products;
|
isa = PBXGroup;
|
||||||
sourceTree = "<group>";
|
children = (
|
||||||
};
|
ADDEDBA66A6E2 /* Required for static linking */,
|
||||||
|
);
|
||||||
CA6012A875F9D65BC3C892A8 /* Main */ = {
|
name = Frameworks;
|
||||||
isa = PBXGroup;
|
sourceTree = "<group>";
|
||||||
children = (
|
};
|
||||||
CA6012A875F93EF4668187A5,
|
CA6012A875F9D65BC3C892A8 = {
|
||||||
CA6012A875F922869D176AE5,
|
isa = PBXGroup;
|
||||||
CA6012A875F998AF0B5890DB,
|
children = (
|
||||||
|
99F87D1529D8E41100B40039 /* Generated */,
|
||||||
);
|
CA6012A875F922869D176AE5 /* Products */,
|
||||||
sourceTree = "<group>";
|
CA6012A875F998AF0B5890DB /* Frameworks */,
|
||||||
};
|
);
|
||||||
|
sourceTree = "<group>";
|
||||||
|
};
|
||||||
/* End PBXGroup section */
|
/* End PBXGroup section */
|
||||||
|
|
||||||
/* Begin PBXNativeTarget section */
|
/* Begin PBXNativeTarget section */
|
||||||
CA609C732349A560B9642892 /* minimuxer-staticlib */ = {
|
CA609C732349A560B9642892 /* minimuxer-staticlib */ = {
|
||||||
isa = PBXNativeTarget;
|
isa = PBXNativeTarget;
|
||||||
buildConfigurationList = CA600589A243A560B9642892;
|
buildConfigurationList = CA600589A243A560B9642892 /* Build configuration list for PBXNativeTarget "minimuxer-staticlib" */;
|
||||||
buildPhases = (
|
buildPhases = (
|
||||||
CA600F638141A560B9642892 /* Sources */,
|
9987603629A4611D00818586 /* Run Script */,
|
||||||
CA6012A875F9AF6EBB7F357C /* Universal Binary lipo */,
|
CA600F638141A560B9642892 /* Sources */,
|
||||||
);
|
CA6012A875F9AF6EBB7F357C /* Universal Binary lipo */,
|
||||||
buildRules = (
|
);
|
||||||
CA6012A875F9AC6C1400ACA8 /* PBXBuildRule */,
|
buildRules = (
|
||||||
);
|
CA6012A875F9AC6C1400ACA8 /* PBXBuildRule */,
|
||||||
dependencies = (
|
);
|
||||||
);
|
dependencies = (
|
||||||
name = "minimuxer-staticlib";
|
);
|
||||||
productName = "libminimuxer_static.a";
|
name = "minimuxer-staticlib";
|
||||||
productReference = CA609C732349C7AAD9FA67C4;
|
productName = libminimuxer_static.a;
|
||||||
productType = "com.apple.product-type.library.static";
|
productReference = CA609C732349C7AAD9FA67C4 /* libminimuxer_static.a */;
|
||||||
};
|
productType = "com.apple.product-type.library.static";
|
||||||
|
};
|
||||||
/* End PBXNativeTarget section */
|
/* End PBXNativeTarget section */
|
||||||
|
|
||||||
CA600F638141A560B9642892 = {
|
/* Begin PBXProject section */
|
||||||
isa = PBXSourcesBuildPhase;
|
CA6012A875F9E04653AD465F /* Project object */ = {
|
||||||
buildActionMask = 2147483647;
|
isa = PBXProject;
|
||||||
files = (
|
attributes = {
|
||||||
CA6038F2DF2FA560B9642892
|
LastUpgradeCheck = 1300;
|
||||||
);
|
TargetAttributes = {
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
CA609C732349A560B9642892 = {
|
||||||
};
|
CreatedOnToolsVersion = 9.2;
|
||||||
|
ProvisioningStyle = Automatic;
|
||||||
CA600589A243A560B9642892 /* staticlib */ = {
|
};
|
||||||
isa = XCConfigurationList;
|
};
|
||||||
buildConfigurations = (
|
};
|
||||||
CA602DE9FCEDA560B9642892 /* Release */,
|
buildConfigurationList = CA6012A875F980E02D6C7F57 /* Build configuration list for PBXProject "minimuxer" */;
|
||||||
CA6008D36272A560B9642892 /* Debug */,
|
compatibilityVersion = "Xcode 11.4";
|
||||||
);
|
developmentRegion = en;
|
||||||
defaultConfigurationIsVisible = 0;
|
hasScannedForEncodings = 0;
|
||||||
defaultConfigurationName = Release;
|
knownRegions = (
|
||||||
};
|
en,
|
||||||
CA602DE9FCEDA560B9642892 /* staticlib */ = {
|
Base,
|
||||||
isa = XCBuildConfiguration;
|
);
|
||||||
buildSettings = {
|
mainGroup = CA6012A875F9D65BC3C892A8;
|
||||||
PRODUCT_NAME = "minimuxer_static";
|
productRefGroup = CA6012A875F922869D176AE5 /* Products */;
|
||||||
"CARGO_XCODE_CARGO_FILE_NAME" = "libminimuxer.a";
|
projectDirPath = "";
|
||||||
"CARGO_XCODE_CARGO_DEP_FILE_NAME" = "libminimuxer.d";
|
projectRoot = "";
|
||||||
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
|
targets = (
|
||||||
SKIP_INSTALL = YES;
|
CA609C732349A560B9642892 /* minimuxer-staticlib */,
|
||||||
INSTALL_GROUP = "";
|
);
|
||||||
INSTALL_MODE_FLAG = "";
|
};
|
||||||
INSTALL_OWNER = "";
|
/* End PBXProject section */
|
||||||
|
|
||||||
};
|
|
||||||
name = Release;
|
|
||||||
};
|
|
||||||
CA6008D36272A560B9642892 /* staticlib */ = {
|
|
||||||
isa = XCBuildConfiguration;
|
|
||||||
buildSettings = {
|
|
||||||
PRODUCT_NAME = "minimuxer_static";
|
|
||||||
"CARGO_XCODE_CARGO_FILE_NAME" = "libminimuxer.a";
|
|
||||||
"CARGO_XCODE_CARGO_DEP_FILE_NAME" = "libminimuxer.d";
|
|
||||||
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
|
|
||||||
SKIP_INSTALL = YES;
|
|
||||||
INSTALL_GROUP = "";
|
|
||||||
INSTALL_MODE_FLAG = "";
|
|
||||||
INSTALL_OWNER = "";
|
|
||||||
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
|
|
||||||
CA6012A875F9AF6EBB7F357C /* LipoScript */ = {
|
/* Begin PBXShellScriptBuildPhase section */
|
||||||
name = "Universal Binary lipo";
|
9987603629A4611D00818586 /* Run Script */ = {
|
||||||
isa = PBXShellScriptBuildPhase;
|
isa = PBXShellScriptBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = ();
|
files = (
|
||||||
inputFileListPaths = ();
|
);
|
||||||
inputPaths = (
|
inputFileListPaths = (
|
||||||
"$(DERIVED_FILE_DIR)/$(ARCHS)-$(EXECUTABLE_NAME).xcfilelist",
|
);
|
||||||
);
|
inputPaths = (
|
||||||
outputFileListPaths = ();
|
);
|
||||||
outputPaths = (
|
name = "Run Script";
|
||||||
"$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)"
|
outputFileListPaths = (
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
outputPaths = (
|
||||||
shellPath = /bin/sh;
|
./minimuxer/minimuxer.h,
|
||||||
shellScript = "# generated with cargo-xcode 1.5.0\n\n set -eux; cat \"$DERIVED_FILE_DIR/$ARCHS-$EXECUTABLE_NAME.xcfilelist\" | tr \'\\n\' \'\\0\' | xargs -0 lipo -create -output \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n if [ ${LD_DYLIB_INSTALL_NAME:+1} ]; then\n install_name_tool -id \"$LD_DYLIB_INSTALL_NAME\" \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n fi\n ";
|
./minimuxer/SwiftBridgeCore.h,
|
||||||
};
|
./minimuxer/minimuxer.swift,
|
||||||
|
./minimuxer/SwiftBridgeCore.swift,
|
||||||
|
"./minimuxer/minimuxer-Bridging-Header.h",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "bash ./fetch-prebuilt.sh minimuxer\n";
|
||||||
|
};
|
||||||
|
CA6012A875F9AF6EBB7F357C /* Universal Binary lipo */ = {
|
||||||
|
isa = PBXShellScriptBuildPhase;
|
||||||
|
buildActionMask = 2147483647;
|
||||||
|
files = (
|
||||||
|
);
|
||||||
|
inputFileListPaths = (
|
||||||
|
);
|
||||||
|
inputPaths = (
|
||||||
|
"$(DERIVED_FILE_DIR)/$(ARCHS)-$(EXECUTABLE_NAME).xcfilelist",
|
||||||
|
);
|
||||||
|
name = "Universal Binary lipo";
|
||||||
|
outputFileListPaths = (
|
||||||
|
);
|
||||||
|
outputPaths = (
|
||||||
|
"$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)",
|
||||||
|
);
|
||||||
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
shellPath = /bin/sh;
|
||||||
|
shellScript = "# generated with cargo-xcode 1.5.0\n\n#set -eux; cat \"$DERIVED_FILE_DIR/$ARCHS-$EXECUTABLE_NAME.xcfilelist\" | tr '\\n' '\\0' | xargs -0 lipo -create -output \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n#if [ ${LD_DYLIB_INSTALL_NAME:+1} ]; then\n# install_name_tool -id \"$LD_DYLIB_INSTALL_NAME\" \"$TARGET_BUILD_DIR/$EXECUTABLE_PATH\"\n#fi\n";
|
||||||
|
};
|
||||||
|
/* End PBXShellScriptBuildPhase section */
|
||||||
|
|
||||||
CA6012A875F980E02D6C7F57 = {
|
/* Begin PBXSourcesBuildPhase section */
|
||||||
isa = XCConfigurationList;
|
CA600F638141A560B9642892 /* Sources */ = {
|
||||||
buildConfigurations = (
|
isa = PBXSourcesBuildPhase;
|
||||||
CA60A20F8EA63CC16B37690B /* Release */,
|
buildActionMask = 2147483647;
|
||||||
CA60A20F8EA6228BE02872F8 /* Debug */,
|
files = (
|
||||||
);
|
9961EC2829BE9C2000AF2C6F /* SwiftBridgeCore.h in Sources */,
|
||||||
defaultConfigurationIsVisible = 0;
|
9987603329A454B500818586 /* minimuxer.h in Sources */,
|
||||||
defaultConfigurationName = Release;
|
);
|
||||||
};
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
};
|
||||||
|
/* End PBXSourcesBuildPhase section */
|
||||||
|
|
||||||
CA60A20F8EA63CC16B37690B = {
|
/* Begin XCBuildConfiguration section */
|
||||||
isa = XCBuildConfiguration;
|
CA6008D36272A560B9642892 /* Debug */ = {
|
||||||
buildSettings = {
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
CARGO_XCODE_CARGO_DEP_FILE_NAME = libminimuxer.d;
|
||||||
SUPPORTS_MACCATALYST = YES;
|
CARGO_XCODE_CARGO_FILE_NAME = libminimuxer.a;
|
||||||
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target"; /* for cargo */
|
INSTALL_GROUP = "";
|
||||||
CARGO_XCODE_FEATURES = ""; /* configure yourself */
|
INSTALL_MODE_FLAG = "";
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=arm64*]" = "aarch64";
|
INSTALL_OWNER = "";
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=x86_64*]" = "x86_64"; /* catalyst adds h suffix */
|
LIB_FILE_NAME = "";
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=i386]" = "i686";
|
"LIB_FILE_NAME[sdk=iphoneos*]" = "libminimuxer-ios";
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=macosx*]" = "darwin";
|
"LIB_FILE_NAME[sdk=iphonesimulator*]" = "libminimuxer-sim";
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*]" = "ios-sim";
|
PRODUCT_NAME = minimuxer_static;
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*][arch=x86_64*]" = "ios";
|
SKIP_INSTALL = YES;
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphoneos*]" = "ios";
|
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=appletvsimulator*]" = "tvos";
|
};
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=appletvos*]" = "tvos";
|
name = Debug;
|
||||||
PRODUCT_NAME = "minimuxer";
|
};
|
||||||
MARKETING_VERSION = "0.1.0";
|
CA602DE9FCEDA560B9642892 /* Release */ = {
|
||||||
CURRENT_PROJECT_VERSION = "0.1";
|
isa = XCBuildConfiguration;
|
||||||
SDKROOT = macosx;
|
buildSettings = {
|
||||||
|
CARGO_XCODE_CARGO_DEP_FILE_NAME = libminimuxer.d;
|
||||||
"CARGO_XCODE_BUILD_MODE" = "release"; /* for xcode scripts */
|
CARGO_XCODE_CARGO_FILE_NAME = libminimuxer.a;
|
||||||
};
|
INSTALL_GROUP = "";
|
||||||
name = Release;
|
INSTALL_MODE_FLAG = "";
|
||||||
};
|
INSTALL_OWNER = "";
|
||||||
|
LIB_FILE_NAME = "";
|
||||||
|
"LIB_FILE_NAME[sdk=iphoneos*]" = "libminimuxer-ios";
|
||||||
|
"LIB_FILE_NAME[sdk=iphonesimulator*]" = "libminimuxer-sim";
|
||||||
|
PRODUCT_NAME = minimuxer_static;
|
||||||
|
SKIP_INSTALL = YES;
|
||||||
|
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos appletvsimulator appletvos";
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
CA60A20F8EA6228BE02872F8 /* Debug */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target";
|
||||||
|
CARGO_XCODE_BUILD_MODE = debug;
|
||||||
|
CARGO_XCODE_FEATURES = "";
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=arm64*]" = aarch64;
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=i386]" = i686;
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=x86_64*]" = x86_64;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=appletvos*]" = tvos;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=appletvsimulator*]" = tvos;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphoneos*]" = ios;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*]" = "ios-sim";
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*][arch=x86_64*]" = ios;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=macosx*]" = darwin;
|
||||||
|
CURRENT_PROJECT_VERSION = 0.1;
|
||||||
|
MARKETING_VERSION = 0.1.0;
|
||||||
|
ONLY_ACTIVE_ARCH = YES;
|
||||||
|
PRODUCT_NAME = minimuxer;
|
||||||
|
SDKROOT = macosx;
|
||||||
|
SUPPORTS_MACCATALYST = YES;
|
||||||
|
};
|
||||||
|
name = Debug;
|
||||||
|
};
|
||||||
|
CA60A20F8EA63CC16B37690B /* Release */ = {
|
||||||
|
isa = XCBuildConfiguration;
|
||||||
|
buildSettings = {
|
||||||
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||||
|
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target";
|
||||||
|
CARGO_XCODE_BUILD_MODE = release;
|
||||||
|
CARGO_XCODE_FEATURES = "";
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=arm64*]" = aarch64;
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=i386]" = i686;
|
||||||
|
"CARGO_XCODE_TARGET_ARCH[arch=x86_64*]" = x86_64;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=appletvos*]" = tvos;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=appletvsimulator*]" = tvos;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphoneos*]" = ios;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*]" = "ios-sim";
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*][arch=x86_64*]" = ios;
|
||||||
|
"CARGO_XCODE_TARGET_OS[sdk=macosx*]" = darwin;
|
||||||
|
CURRENT_PROJECT_VERSION = 0.1;
|
||||||
|
MARKETING_VERSION = 0.1.0;
|
||||||
|
PRODUCT_NAME = minimuxer;
|
||||||
|
SDKROOT = macosx;
|
||||||
|
SUPPORTS_MACCATALYST = YES;
|
||||||
|
};
|
||||||
|
name = Release;
|
||||||
|
};
|
||||||
|
/* End XCBuildConfiguration section */
|
||||||
|
|
||||||
CA60A20F8EA6228BE02872F8 = {
|
/* Begin XCConfigurationList section */
|
||||||
isa = XCBuildConfiguration;
|
CA600589A243A560B9642892 /* Build configuration list for PBXNativeTarget "minimuxer-staticlib" */ = {
|
||||||
buildSettings = {
|
isa = XCConfigurationList;
|
||||||
|
buildConfigurations = (
|
||||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
CA602DE9FCEDA560B9642892 /* Release */,
|
||||||
SUPPORTS_MACCATALYST = YES;
|
CA6008D36272A560B9642892 /* Debug */,
|
||||||
CARGO_TARGET_DIR = "$(PROJECT_TEMP_DIR)/cargo_target"; /* for cargo */
|
);
|
||||||
CARGO_XCODE_FEATURES = ""; /* configure yourself */
|
defaultConfigurationIsVisible = 0;
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=arm64*]" = "aarch64";
|
defaultConfigurationName = Release;
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=x86_64*]" = "x86_64"; /* catalyst adds h suffix */
|
};
|
||||||
"CARGO_XCODE_TARGET_ARCH[arch=i386]" = "i686";
|
CA6012A875F980E02D6C7F57 /* Build configuration list for PBXProject "minimuxer" */ = {
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=macosx*]" = "darwin";
|
isa = XCConfigurationList;
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*]" = "ios-sim";
|
buildConfigurations = (
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphonesimulator*][arch=x86_64*]" = "ios";
|
CA60A20F8EA63CC16B37690B /* Release */,
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=iphoneos*]" = "ios";
|
CA60A20F8EA6228BE02872F8 /* Debug */,
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=appletvsimulator*]" = "tvos";
|
);
|
||||||
"CARGO_XCODE_TARGET_OS[sdk=appletvos*]" = "tvos";
|
defaultConfigurationIsVisible = 0;
|
||||||
PRODUCT_NAME = "minimuxer";
|
defaultConfigurationName = Release;
|
||||||
MARKETING_VERSION = "0.1.0";
|
};
|
||||||
CURRENT_PROJECT_VERSION = "0.1";
|
/* End XCConfigurationList section */
|
||||||
SDKROOT = macosx;
|
};
|
||||||
|
rootObject = CA6012A875F9E04653AD465F /* Project object */;
|
||||||
"CARGO_XCODE_BUILD_MODE" = "debug"; /* for xcode scripts */
|
|
||||||
ONLY_ACTIVE_ARCH = YES;
|
|
||||||
};
|
|
||||||
name = Debug;
|
|
||||||
};
|
|
||||||
|
|
||||||
CA6012A875F9E04653AD465F = {
|
|
||||||
isa = PBXProject;
|
|
||||||
attributes = {
|
|
||||||
LastUpgradeCheck = 1300;
|
|
||||||
TargetAttributes = {
|
|
||||||
CA609C732349A560B9642892 = {
|
|
||||||
CreatedOnToolsVersion = 9.2;
|
|
||||||
ProvisioningStyle = Automatic;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
buildConfigurationList = CA6012A875F980E02D6C7F57;
|
|
||||||
compatibilityVersion = "Xcode 11.4";
|
|
||||||
developmentRegion = en;
|
|
||||||
hasScannedForEncodings = 0;
|
|
||||||
knownRegions = (
|
|
||||||
en,
|
|
||||||
Base,
|
|
||||||
);
|
|
||||||
mainGroup = CA6012A875F9D65BC3C892A8;
|
|
||||||
productRefGroup = CA6012A875F922869D176AE5 /* Products */;
|
|
||||||
projectDirPath = "";
|
|
||||||
projectRoot = "";
|
|
||||||
targets = (
|
|
||||||
CA609C732349A560B9642892,
|
|
||||||
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
rootObject = CA6012A875F9E04653AD465F;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1
Dependencies/minimuxer/.gitkeep
vendored
Normal file
1
Dependencies/minimuxer/.gitkeep
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Use ../fetch-prebuilt.sh to fetch prebuilt Rust dependencies
|
||||||
10
Dependencies/update.sh
vendored
10
Dependencies/update.sh
vendored
@@ -1,10 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -e; set -o pipefail; set -x;
|
|
||||||
|
|
||||||
echo "Building Rust projects..."
|
|
||||||
cd em_proxy
|
|
||||||
cargo xcode --output-dir ../
|
|
||||||
cd ../
|
|
||||||
cd minimuxer
|
|
||||||
cargo xcode --output-dir ../
|
|
||||||
echo "Done!"
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
// Jackson Coxson
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Starts your emotional damage
|
|
||||||
* # Arguments
|
|
||||||
* * `bind_addr` - The UDP socket to listen to
|
|
||||||
* # Returns
|
|
||||||
* A handle to stop further emotional damage.
|
|
||||||
* Null on failure
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
int start_emotional_damage(const char *bind_addr);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Stops further emotional damage
|
|
||||||
* # Arguments
|
|
||||||
* * `handle` - The coping mechanism generated by start_emotional_damage
|
|
||||||
* # Returns
|
|
||||||
* The knowledge of knowing that you couldn't handle failure
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
void stop_emotional_damage(void);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Blocks until Wireguard is ready
|
|
||||||
* # Arguments
|
|
||||||
* * `timeout` - The timeout in miliseconds to wait for Wireguard
|
|
||||||
* # Returns
|
|
||||||
* 0 on success, -1 on failure
|
|
||||||
*/
|
|
||||||
int test_emotional_damage(int timeout);
|
|
||||||
138
Makefile
138
Makefile
@@ -2,8 +2,6 @@ SHELL := /bin/bash
|
|||||||
.PHONY: help ios update tvos
|
.PHONY: help ios update tvos
|
||||||
|
|
||||||
RUBY := $(shell command -v ruby 2>/dev/null)
|
RUBY := $(shell command -v ruby 2>/dev/null)
|
||||||
RUST := $(shell command -v rust 2>/dev/null)
|
|
||||||
RUSTUP := $(shell command -v rustup 2>/dev/null)
|
|
||||||
HOMEBREW := $(shell command -v brew 2>/dev/null)
|
HOMEBREW := $(shell command -v brew 2>/dev/null)
|
||||||
BUNDLER := $(shell command -v bundle 2>/dev/null)
|
BUNDLER := $(shell command -v bundle 2>/dev/null)
|
||||||
|
|
||||||
@@ -72,11 +70,7 @@ help:
|
|||||||
|
|
||||||
## Install dependencies.
|
## Install dependencies.
|
||||||
setup: \
|
setup: \
|
||||||
pre_setup \
|
pre_setup
|
||||||
install_rust \
|
|
||||||
install_rustup \
|
|
||||||
install_rust_toolchain \
|
|
||||||
build_rust_dependencies
|
|
||||||
|
|
||||||
# check_for_homebrew \
|
# check_for_homebrew \
|
||||||
# update_homebrew \
|
# update_homebrew \
|
||||||
@@ -89,20 +83,6 @@ pull_request: \
|
|||||||
pre_setup:
|
pre_setup:
|
||||||
$(info Project setup…)
|
$(info Project setup…)
|
||||||
|
|
||||||
check_for_rust:
|
|
||||||
$(info Checking for Rust…)
|
|
||||||
|
|
||||||
ifeq ($(RUST),)
|
|
||||||
$(error Rust is not installed.)
|
|
||||||
endif
|
|
||||||
|
|
||||||
check_for_rustup:
|
|
||||||
$(info Checking for Rustup…)
|
|
||||||
|
|
||||||
ifeq ($(RUSTUP),)
|
|
||||||
$(error Rust is not installed.)
|
|
||||||
endif
|
|
||||||
|
|
||||||
check_for_ruby:
|
check_for_ruby:
|
||||||
$(info Checking for Ruby…)
|
$(info Checking for Ruby…)
|
||||||
|
|
||||||
@@ -153,79 +133,12 @@ pull:
|
|||||||
## -- Source Code Tasks --
|
## -- Source Code Tasks --
|
||||||
|
|
||||||
## Pull upstream and update 3rd party frameworks
|
## Pull upstream and update 3rd party frameworks
|
||||||
# update: pull submodules build_rust_dependencies
|
update: submodules
|
||||||
update: submodules build_rust_dependencies
|
|
||||||
|
|
||||||
submodules:
|
submodules:
|
||||||
$(info Updating submodules…)
|
$(info Updating submodules…)
|
||||||
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive --remote
|
||||||
|
|
||||||
build_rust_dependencies:
|
|
||||||
$(info Building Rust dependencies…)
|
|
||||||
|
|
||||||
pushd Dependencies/em_proxy
|
|
||||||
cargo build --release --target aarch64-apple-ios
|
|
||||||
popd
|
|
||||||
pushd Dependencies/minimuxer
|
|
||||||
cargo build --release --target aarch64-apple-ios
|
|
||||||
popd
|
|
||||||
|
|
||||||
install_rustup:
|
|
||||||
$(info Installing Rustup…)
|
|
||||||
|
|
||||||
curl https://sh.rustup.rs -sSf | sh
|
|
||||||
source "$(HOME)/.cargo/env"
|
|
||||||
rustup target add aarch64-apple-ios
|
|
||||||
|
|
||||||
# TODO: Add x86, armv7? toolchains
|
|
||||||
# https://doc.rust-lang.org/nightly/rustc/platform-support.html
|
|
||||||
|
|
||||||
install_cbindgen:
|
|
||||||
$(info Installing cbindgen…)
|
|
||||||
|
|
||||||
cargo install cbindgen
|
|
||||||
|
|
||||||
install_rust_toolchain:
|
|
||||||
$(info Installing Rust toolchain…)
|
|
||||||
|
|
||||||
rustup target add aarch64-apple-ios
|
|
||||||
|
|
||||||
install_rust_toolchain_ios_sim:
|
|
||||||
$(info Installing Rust iOS Sim toolchain…)
|
|
||||||
|
|
||||||
rustup target add aarch64-apple-ios-sim
|
|
||||||
|
|
||||||
install_rust_toolchain_tvos:
|
|
||||||
$(info Installing Rust tvOS toolchain…)
|
|
||||||
|
|
||||||
rustup target add aarch64-apple-tvos
|
|
||||||
|
|
||||||
install_rust_toolchain_tvos_sim:
|
|
||||||
$(info Installing Rust tvOS Sim toolchain…)
|
|
||||||
|
|
||||||
rustup target add aarch64-apple-tvos-sim
|
|
||||||
|
|
||||||
install_rust_toolchain_watchos_sim:
|
|
||||||
$(info Installing Rust watchOS Sim toolchain…)
|
|
||||||
|
|
||||||
rustup target add aarch64-apple-watchos-sim
|
|
||||||
|
|
||||||
install_rust_toolchain_watchos:
|
|
||||||
$(info Installing Rust watchOS toolchain…)
|
|
||||||
|
|
||||||
rustup target add aarch64-apple-watchos
|
|
||||||
|
|
||||||
install_rust_toolchain_catalyst:
|
|
||||||
$(info Installing Rust macOS Catalyst toolchain…)
|
|
||||||
|
|
||||||
rustup target add aarch64-apple-ios-macabi
|
|
||||||
|
|
||||||
install_rust:
|
|
||||||
$(info Installing Rust…)
|
|
||||||
|
|
||||||
curl https://sh.rustup.rs -sSf | sh
|
|
||||||
source "$(HOME)/.cargo/env"
|
|
||||||
|
|
||||||
## -- QA Task Runners --
|
## -- QA Task Runners --
|
||||||
|
|
||||||
@@ -243,32 +156,25 @@ test:
|
|||||||
|
|
||||||
## -- Building --
|
## -- Building --
|
||||||
|
|
||||||
developer_ios:
|
build:
|
||||||
$(info Building iOS for Developer profile…)
|
@xcodebuild -project AltStore.xcodeproj \
|
||||||
|
-scheme AltStore \
|
||||||
|
-sdk iphoneos \
|
||||||
|
archive -archivePath ./archive \
|
||||||
|
CODE_SIGNING_REQUIRED=NO \
|
||||||
|
AD_HOC_CODE_SIGNING_ALLOWED=YES \
|
||||||
|
CODE_SIGNING_ALLOWED=NO \
|
||||||
|
DEVELOPMENT_TEAM=XYZ0123456 \
|
||||||
|
ORG_IDENTIFIER=com.SideStore \
|
||||||
|
DWARF_DSYM_FOLDER_PATH="."
|
||||||
|
|
||||||
xcodebuild -project AltStore.xcodeproj -scheme AltStore -sdk iphoneos archive -archivePath ./archive CODE_SIGNING_REQUIRED=NO AD_HOC_CODE_SIGNING_ALLOWED=YES CODE_SIGNING_ALLOWED=NO DEVELOPMENT_TEAM=XYZ0123456 ORG_IDENTIFIER=com.SideStore | xcpretty
|
fakesign:
|
||||||
|
rm -rf archive.xcarchive/Products/Applications/SideStore.app/Frameworks/AltStoreCore.framework/Frameworks/
|
||||||
|
ldid -SAltStore/Resources/tempEnt.plist archive.xcarchive/Products/Applications/SideStore.app/SideStore
|
||||||
|
|
||||||
developer_tvos:
|
ipa:
|
||||||
$(info Building tvOS for Developer profile…)
|
mkdir Payload
|
||||||
|
mkdir Payload/SideStore.app
|
||||||
|
cp -R archive.xcarchive/Products/Applications/SideStore.app/ Payload/SideStore.app/
|
||||||
|
zip -r SideStore.ipa Payload
|
||||||
|
|
||||||
xcodebuild -project AltStore.xcodeproj -scheme AltStore -sdk tvos archive -archivePath ./archive CODE_SIGNING_REQUIRED=NO AD_HOC_CODE_SIGNING_ALLOWED=YES CODE_SIGNING_ALLOWED=NO DEVELOPMENT_TEAM=XYZ0123456 ORG_IDENTIFIER=com.SideStore | xcpretty
|
|
||||||
|
|
||||||
## Update & build for iOS
|
|
||||||
ios: | update developer_ios
|
|
||||||
|
|
||||||
## Update & build for tvOS
|
|
||||||
tvos: | update developer_tvos
|
|
||||||
|
|
||||||
## Open the workspace
|
|
||||||
open:
|
|
||||||
open AltStore.xcodeproj
|
|
||||||
|
|
||||||
## tag and release to github
|
|
||||||
release: | _var_VERSION
|
|
||||||
@if ! git diff --quiet HEAD; then \
|
|
||||||
( $(call _error,refusing to release with uncommitted changes) ; exit 1 ); \
|
|
||||||
fi
|
|
||||||
test
|
|
||||||
package
|
|
||||||
make --no-print-directory _tag VERSION=$(VERSION)
|
|
||||||
make --no-print-directory _push VERSION=$(VERSION)
|
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -4,7 +4,10 @@
|
|||||||
|
|
||||||
[](https://www.gnu.org/licenses/agpl-3.0)
|
[](https://www.gnu.org/licenses/agpl-3.0)
|
||||||
[](https://makeapullrequest.com)
|
[](https://makeapullrequest.com)
|
||||||
[](https://github.com/SideStore/SideStore/actions/workflows/build.yml)
|
[](https://github.com/SideStore/SideStore/actions/workflows/nightly.yml)
|
||||||
|
[](https://github.com/SideStore/SideStore/actions/workflows/beta.yml)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
SideStore is an iOS application that allows you to sideload apps onto your iOS device with just your Apple ID. SideStore resigns apps with your personal development certificate, and then uses a [specially designed VPN](https://github.com/jkcoxson/Secret-Tunnel) in order to trick iOS into installing them. SideStore will periodically "refresh" your apps in the background, to keep their normal 7-day development period from expiring.
|
SideStore is an iOS application that allows you to sideload apps onto your iOS device with just your Apple ID. SideStore resigns apps with your personal development certificate, and then uses a [specially designed VPN](https://github.com/jkcoxson/Secret-Tunnel) in order to trick iOS into installing them. SideStore will periodically "refresh" your apps in the background, to keep their normal 7-day development period from expiring.
|
||||||
|
|
||||||
@@ -12,7 +15,6 @@ SideStore's goal is to provide an untethered sideloading experience. It's a comm
|
|||||||
|
|
||||||
(Contributions are welcome! 🙂)
|
(Contributions are welcome! 🙂)
|
||||||
|
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
- Xcode 14
|
- Xcode 14
|
||||||
- iOS 14+
|
- iOS 14+
|
||||||
@@ -35,21 +37,9 @@ SideStore is a just regular, sandboxed iOS application. The AltStore app target
|
|||||||
|
|
||||||
We're hoping to eventually eliminate our dependency on it, as it increases the amount of unnecessary Objective-C in the project.
|
We're hoping to eventually eliminate our dependency on it, as it increases the amount of unnecessary Objective-C in the project.
|
||||||
|
|
||||||
## Compilation Instructions
|
## Contributing/Compilation Instructions
|
||||||
SideStore is fairly straightforward to compile and run if you're already an iOS or macOS developer. Here are some basic instructions to get you started:
|
|
||||||
|
|
||||||
1. Clone the repository
|
Please see [CONTRIBUTING.md](./CONTRIBUTING.md)
|
||||||
```
|
|
||||||
git clone https://github.com/SideStore/SideStore.git --recurse-submodules
|
|
||||||
```
|
|
||||||
2. After installing Rustup, run `rustup target add aarch64-apple-ios`
|
|
||||||
12. Within the Dependencies/em_proxy and Dependencies/minimuxer directories, run `cargo build --release --target aarch64-apple-ios`
|
|
||||||
2. Open `AltStore.xcodeproj` and select the AltStore project in the project navigator. On the `Signing & Capabilities` tab, change the team from to your own account.
|
|
||||||
3. **(Development only)** Change the value for `ALTDeviceID` in the Info.plist to your device's UDID. Normally, SideServer embeds the device's UDID in SideStore's Info.plist during installation. When running through Xcode you'll need to set the value yourself or else SideStore won't resign (or even install) apps for the proper device. You can achieve this by changing a few things to be able to build and use SideStore.
|
|
||||||
5. Copy `CodeSigning.xcconfig.sample` to `CodeSigning.xcconfig`
|
|
||||||
6. Fill out all of the properties in `CodeSigning.xcconfig` to match your account.
|
|
||||||
7. In `Shared/Extensions/Bundle+AltStore.swift`, replace "group.com.rileytestut.AltStore" with your own App Group ID.
|
|
||||||
8. Build + run app! 🎉
|
|
||||||
|
|
||||||
## Licensing
|
## Licensing
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public extension Bundle
|
|||||||
|
|
||||||
public extension Bundle
|
public extension Bundle
|
||||||
{
|
{
|
||||||
static var baseAltStoreAppGroupID = "group.com.SideStore.SideStore"
|
static var baseAltStoreAppGroupID = "group." + Bundle.Info.appbundleIdentifier
|
||||||
|
|
||||||
var appGroups: [String] {
|
var appGroups: [String] {
|
||||||
return self.infoDictionary?[Bundle.Info.appGroups] as? [String] ?? []
|
return self.infoDictionary?[Bundle.Info.appGroups] as? [String] ?? []
|
||||||
|
|||||||
@@ -1,76 +0,0 @@
|
|||||||
// Jackson Coxson
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Mount iOS's developer DMG
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
void minimuxer_auto_mount(char *docs_path);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Starts the muxer and heartbeat client
|
|
||||||
* # Arguments
|
|
||||||
* Pairing file as a list of chars and the length
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
int minimuxer_c_start(char *pairing_file, char *log_path);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Debugs an app from an app ID
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
int minimuxer_debug_app(char *app_id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Installs an ipa with a bundle ID
|
|
||||||
* Expects the ipa to be in the afc jail from yeet_app_afc
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
int minimuxer_install_ipa(char *bundle_id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Installs a provisioning profile on the device
|
|
||||||
* # Arguments
|
|
||||||
* Pass a pointer to a plist
|
|
||||||
* # Returns
|
|
||||||
* 0 on success
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
int minimuxer_install_provisioning_profile(uint8_t *pointer, unsigned int len);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes an app from the device
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
int minimuxer_remove_app(char *bundle_id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes a provisioning profile
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
int minimuxer_remove_provisioning_profile(char *id);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Yeets an ipa to the afc jail
|
|
||||||
* # Safety
|
|
||||||
* Don't be stupid
|
|
||||||
*/
|
|
||||||
int minimuxer_yeet_app_afc(char *bundle_id, uint8_t *bytes_ptr, unsigned long bytes_len);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the current environment variable for libusbmuxd to localhost
|
|
||||||
*/
|
|
||||||
void target_minimuxer_address(void);
|
|
||||||
@@ -1,111 +0,0 @@
|
|||||||
//
|
|
||||||
// minimuxer.swift
|
|
||||||
// minimuxer
|
|
||||||
//
|
|
||||||
// Created by Jackson Coxson on 10/27/22.
|
|
||||||
//
|
|
||||||
|
|
||||||
import Foundation
|
|
||||||
|
|
||||||
public enum Uhoh: Error {
|
|
||||||
case Good
|
|
||||||
case Bad(code: Int32)
|
|
||||||
}
|
|
||||||
|
|
||||||
public func start_minimuxer(pairing_file: String) -> Int32 {
|
|
||||||
let pf = NSString(string: pairing_file)
|
|
||||||
let pf_pointer = UnsafeMutablePointer<CChar>(mutating: pf.utf8String)
|
|
||||||
let u = NSString(string: getDocumentsDirectory().absoluteString)
|
|
||||||
let u_ptr = UnsafeMutablePointer<CChar>(mutating: u.utf8String)
|
|
||||||
return minimuxer_c_start(pf_pointer, u_ptr)
|
|
||||||
}
|
|
||||||
|
|
||||||
public func set_usbmuxd_socket() {
|
|
||||||
target_minimuxer_address()
|
|
||||||
}
|
|
||||||
|
|
||||||
public func debug_app(app_id: String) throws -> Uhoh {
|
|
||||||
let ai = NSString(string: app_id)
|
|
||||||
let ai_pointer = UnsafeMutablePointer<CChar>(mutating: ai.utf8String)
|
|
||||||
#if false // Retries
|
|
||||||
var res = minimuxer_debug_app(ai_pointer)
|
|
||||||
var attempts = 10
|
|
||||||
while (attempts != 0 && res != 0) {
|
|
||||||
print("(JIT) ATTEMPTS: \(attempts)")
|
|
||||||
res = minimuxer_debug_app(ai_pointer)
|
|
||||||
attempts -= 1
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
let res = minimuxer_debug_app(ai_pointer)
|
|
||||||
#endif
|
|
||||||
if res != 0 {
|
|
||||||
throw Uhoh.Bad(code: res)
|
|
||||||
}
|
|
||||||
return Uhoh.Good
|
|
||||||
}
|
|
||||||
|
|
||||||
public func install_provisioning_profile(plist: Data) throws -> Uhoh {
|
|
||||||
let pls = String(decoding: plist, as: UTF8.self)
|
|
||||||
print(pls)
|
|
||||||
print(plist)
|
|
||||||
#if false // Retries
|
|
||||||
var res = minimuxer_install_provisioning_profile(x, UInt32(plist.count))
|
|
||||||
var attempts = 10
|
|
||||||
while (attempts != 0 && res != 0) {
|
|
||||||
print("(INSTALL) ATTEMPTS: \(attempts)")
|
|
||||||
res = minimuxer_install_provisioning_profile(x, UInt32(plist.count))
|
|
||||||
attempts -= 1
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
let x = plist.withUnsafeBytes { buf in UnsafeMutableRawPointer(mutating: buf) }
|
|
||||||
#endif
|
|
||||||
let res = minimuxer_install_provisioning_profile(x, UInt32(plist.count))
|
|
||||||
if res != 0 {
|
|
||||||
throw Uhoh.Bad(code: res)
|
|
||||||
}
|
|
||||||
return Uhoh.Good
|
|
||||||
}
|
|
||||||
|
|
||||||
public func remove_provisioning_profile(id: String) throws -> Uhoh {
|
|
||||||
let id_ns = NSString(string: id)
|
|
||||||
let id_pointer = UnsafeMutablePointer<CChar>(mutating: id_ns.utf8String)
|
|
||||||
#if false // Retries
|
|
||||||
var res = minimuxer_remove_provisioning_profile(id_pointer)
|
|
||||||
var attempts = 10
|
|
||||||
while (attempts != 0 && res != 0) {
|
|
||||||
print("(REMOVE PROFILE) ATTEMPTS: \(attempts)")
|
|
||||||
res = minimuxer_remove_provisioning_profile(id_pointer)
|
|
||||||
attempts -= 1
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
let res = minimuxer_remove_provisioning_profile(id_pointer)
|
|
||||||
#endif
|
|
||||||
if res != 0 {
|
|
||||||
throw Uhoh.Bad(code: res)
|
|
||||||
}
|
|
||||||
return Uhoh.Good
|
|
||||||
}
|
|
||||||
|
|
||||||
public func remove_app(app_id: String) throws -> Uhoh {
|
|
||||||
let ai = NSString(string: app_id)
|
|
||||||
let ai_pointer = UnsafeMutablePointer<CChar>(mutating: ai.utf8String)
|
|
||||||
let res = minimuxer_remove_app(ai_pointer)
|
|
||||||
if res != 0 {
|
|
||||||
throw Uhoh.Bad(code: res)
|
|
||||||
}
|
|
||||||
return Uhoh.Good
|
|
||||||
}
|
|
||||||
|
|
||||||
public func auto_mount_dev_image() {
|
|
||||||
let u = NSString(string: getDocumentsDirectory().absoluteString)
|
|
||||||
let u_ptr = UnsafeMutablePointer<CChar>(mutating: u.utf8String)
|
|
||||||
minimuxer_auto_mount(u_ptr)
|
|
||||||
}
|
|
||||||
|
|
||||||
func getDocumentsDirectory() -> URL {
|
|
||||||
// find all possible documents directories for this user
|
|
||||||
let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)
|
|
||||||
|
|
||||||
// just send back the first one, which ought to be the only one
|
|
||||||
return paths[0]
|
|
||||||
}
|
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"identifier": "dev.crystall1ne.repos.PojavLauncher",
|
"identifier": "dev.crystall1ne.repos.PojavLauncher",
|
||||||
"sourceURL": "https://alt.crystall1ne.software/"
|
"sourceURL": "https://alt.crystall1ne.dev"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"identifier": "eu.pokemmo.altstore",
|
"identifier": "eu.pokemmo.altstore",
|
||||||
|
|||||||
Reference in New Issue
Block a user