mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-05-27 02:42:39 +02:00
modded scinsta with additional features and fixes for recent instagram version
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: Issue assignment
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
auto-assign:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
steps:
|
||||
- name: 'Auto-assign issue'
|
||||
uses: pozil/auto-assign-issue@v1
|
||||
with:
|
||||
assignees: faroukbmiled
|
||||
allowNoAssignees: true
|
||||
@@ -0,0 +1,18 @@
|
||||
name: PR assignment
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened]
|
||||
|
||||
jobs:
|
||||
auto-assign:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: 'Auto-assign PR'
|
||||
uses: pozil/auto-assign-issue@v1
|
||||
with:
|
||||
assignees: faroukbmiled
|
||||
allowNoAssignees: true
|
||||
@@ -0,0 +1,138 @@
|
||||
# Inspired heavily by the following workflows
|
||||
# https://github.com/arichornlover/uYouEnhanced/blob/main/.github/workflows/buildapp.yml
|
||||
# https://github.com/ISnackable/YTCubePlus/blob/main/.github/workflows/Build.yml
|
||||
# https://github.com/BandarHL/BHTwitter/actions/workflows/build.yml
|
||||
|
||||
name: Build and Package SCInsta
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
decrypted_instagram_url:
|
||||
description: "The direct URL to the decrypted Instagram IPA"
|
||||
default: ""
|
||||
required: true
|
||||
type: string
|
||||
upload_artifact:
|
||||
description: "Upload Artifact"
|
||||
default: true
|
||||
required: false
|
||||
type: boolean
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
build:
|
||||
name: Build SCInsta
|
||||
runs-on: macos-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Main
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: main
|
||||
submodules: recursive
|
||||
|
||||
- name: Install Dependencies
|
||||
run: brew install ldid dpkg make
|
||||
|
||||
- name: Set PATH environment variable
|
||||
run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
|
||||
|
||||
- name: Setup Theos
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: theos/theos
|
||||
ref: master
|
||||
path: ${{ github.workspace }}/theos
|
||||
submodules: recursive
|
||||
|
||||
- name: SDK Caching
|
||||
id: SDK
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: iPhoneOS16.2.sdk
|
||||
with:
|
||||
path: ${{ github.workspace }}/theos/sdks/
|
||||
key: ${{ env.cache-name }}
|
||||
restore-keys: ${{ env.cache-name }}
|
||||
|
||||
- name: Download iOS SDK
|
||||
if: steps.SDK.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/xybp888/iOS-SDKs/
|
||||
cd iOS-SDKs
|
||||
git sparse-checkout set --no-cone iPhoneOS16.2.sdk
|
||||
git checkout
|
||||
mv *.sdk $THEOS/sdks
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
|
||||
- name: Prepare Instagram IPA
|
||||
run: |
|
||||
cd main
|
||||
|
||||
mkdir -p packages
|
||||
wget "$Instagram_URL" --no-verbose -O packages/com.burbn.instagram.ipa
|
||||
|
||||
ls -la packages
|
||||
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
Instagram_URL: ${{ inputs.decrypted_instagram_url }}
|
||||
|
||||
- name: Get SCInsta Version
|
||||
id: scinsta_version
|
||||
run: |
|
||||
SCINSTA_VERSION=$(awk '/Version:/ {print $2}' main/control)
|
||||
|
||||
echo "SCINSTA_VERSION=${SCINSTA_VERSION}" >> "$GITHUB_ENV"
|
||||
echo "version=${SCINSTA_VERSION}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Build SCInsta tweak for sideloading (as IPA)
|
||||
run: |
|
||||
pip install --force-reinstall https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
|
||||
|
||||
cd main
|
||||
curl -Lo ipapatch https://github.com/asdfzxcvbn/ipapatch/releases/download/v2.1.3/ipapatch.macos-arm64
|
||||
chmod +x ipapatch
|
||||
export PATH=.:$PATH
|
||||
ls -la
|
||||
|
||||
./build.sh sideload
|
||||
ls -la packages
|
||||
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
|
||||
- name: Rename IPA to include version info
|
||||
run: |
|
||||
cd main/packages
|
||||
mv "$(ls -t | head -n1)" "SCInsta_sideloaded_v${SCINSTA_VERSION}.ipa"
|
||||
|
||||
- name: Pass package name to upload action
|
||||
id: package_name
|
||||
run: |
|
||||
echo "package=$(ls -t main/packages | head -n1)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload Artifact
|
||||
if: ${{ inputs.upload_artifact }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: SCInsta_sideloaded_v${{ steps.scinsta_version.outputs.version }}
|
||||
path: ${{ github.workspace }}/main/packages/${{ steps.package_name.outputs.package }}
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v2.0.6
|
||||
with:
|
||||
name: SCInsta_sideloaded_v${{ steps.scinsta_version.outputs.version }}
|
||||
files: ${{ github.workspace }}/main/packages/SCInsta_sideloaded_v*.ipa
|
||||
draft: true
|
||||
|
||||
- name: Output Release URL
|
||||
run: |
|
||||
echo "::notice::Release available at: https://github.com/${{ github.repository }}/releases"
|
||||
@@ -0,0 +1,95 @@
|
||||
name: Build SCInsta tweak for Rootless
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'dev'
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
build:
|
||||
name: Build SCInsta Rootless
|
||||
runs-on: macos-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout Main
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: main
|
||||
|
||||
- name: Install Dependencies
|
||||
run: brew install ldid dpkg make
|
||||
|
||||
- name: Set PATH environment variable
|
||||
run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
|
||||
|
||||
- name: Setup Theos
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: theos/theos
|
||||
ref: master
|
||||
path: ${{ github.workspace }}/theos
|
||||
submodules: recursive
|
||||
|
||||
- name: SDK Caching
|
||||
id: SDK
|
||||
uses: actions/cache@v4
|
||||
env:
|
||||
cache-name: iPhoneOS16.2.sdk
|
||||
with:
|
||||
path: ${{ github.workspace }}/theos/sdks/
|
||||
key: ${{ env.cache-name }}
|
||||
restore-keys: ${{ env.cache-name }}
|
||||
|
||||
- name: Download iOS SDK
|
||||
if: steps.SDK.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
git clone --quiet -n --depth=1 --filter=tree:0 https://github.com/xybp888/iOS-SDKs/
|
||||
cd iOS-SDKs
|
||||
git sparse-checkout set --no-cone iPhoneOS16.2.sdk
|
||||
git checkout
|
||||
mv *.sdk $THEOS/sdks
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
|
||||
- name: Get SCInsta Version
|
||||
id: scinsta_version
|
||||
run: |
|
||||
SCINSTA_VERSION=$(awk '/Version:/ {print $2}' main/control)
|
||||
|
||||
echo "SCINSTA_VERSION=${SCINSTA_VERSION}" >> "$GITHUB_ENV"
|
||||
echo "version=${SCINSTA_VERSION}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Build SCInsta tweak for Rootless
|
||||
run: |
|
||||
cd main
|
||||
ls -la
|
||||
|
||||
./build.sh rootless
|
||||
ls -la packages
|
||||
|
||||
env:
|
||||
THEOS: ${{ github.workspace }}/theos
|
||||
|
||||
- name: Rename deb to include version info
|
||||
run: |
|
||||
cd main/packages
|
||||
mv "$(ls -t | head -n1)" "com.socuul.scinsta_${SCINSTA_VERSION}+debug-rootless.deb"
|
||||
|
||||
- name: Pass package name to upload action
|
||||
id: package_name
|
||||
run: |
|
||||
echo "package=$(ls -t main/packages | head -n1)" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ steps.package_name.outputs.package }}
|
||||
path: ${{ github.workspace }}/main/packages/${{ steps.package_name.outputs.package }}
|
||||
if-no-files-found: error
|
||||
@@ -0,0 +1,70 @@
|
||||
name: Delete old workflow runs
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
days:
|
||||
description: 'Days-worth of runs to keep for each workflow'
|
||||
required: true
|
||||
default: '7'
|
||||
minimum_runs:
|
||||
description: 'Minimum runs to keep for each workflow'
|
||||
required: true
|
||||
default: '5'
|
||||
delete_workflow_pattern:
|
||||
description: 'Name or filename of the workflow (if not set, all workflows are targeted)'
|
||||
required: false
|
||||
default: 'Build and Package SCInsta'
|
||||
delete_workflow_by_state_pattern:
|
||||
description: 'Filter workflows by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually'
|
||||
required: true
|
||||
default: "ALL"
|
||||
type: choice
|
||||
options:
|
||||
- "ALL"
|
||||
- active
|
||||
- deleted
|
||||
- disabled_inactivity
|
||||
- disabled_manually
|
||||
delete_run_by_conclusion_pattern:
|
||||
description: 'Remove runs based on conclusion: action_required, cancelled, failure, skipped, success'
|
||||
required: true
|
||||
default: "ALL"
|
||||
type: choice
|
||||
options:
|
||||
- "ALL"
|
||||
- "Unsuccessful: action_required,cancelled,failure,skipped"
|
||||
- action_required
|
||||
- cancelled
|
||||
- failure
|
||||
- skipped
|
||||
- success
|
||||
dry_run:
|
||||
description: 'Logs simulated changes, no deletions are performed'
|
||||
required: false
|
||||
|
||||
# schedule:
|
||||
# - cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
del_runs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: write
|
||||
contents: read
|
||||
steps:
|
||||
- name: Delete workflow runs
|
||||
uses: Mattraks/delete-workflow-runs@v2
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: ${{ github.event.inputs.days }}
|
||||
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}
|
||||
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }}
|
||||
delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }}
|
||||
delete_run_by_conclusion_pattern: >-
|
||||
${{
|
||||
startsWith(github.event.inputs.delete_run_by_conclusion_pattern, 'Unsuccessful:')
|
||||
&& 'action_required,cancelled,failure,skipped'
|
||||
|| github.event.inputs.delete_run_by_conclusion_pattern
|
||||
}}
|
||||
dry_run: ${{ github.event.inputs.dry_run }}
|
||||
Reference in New Issue
Block a user