Skip to content

Bunny Updates

Bunny Updates #48

Workflow file for this run

name: Bunny Updates
on:
workflow_dispatch:
inputs:
discord_link:
description: 'Enter the Discord IPA link'
required: true
type: string
discord_version:
description: 'Enter the version of Discord'
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install pipx
run: |
sudo apt update
sudo apt install -y pipx
pipx ensurepath
- name: Install cyan and inject Pillow
run: |
pipx install --force https://github.com/asdfzxcvbn/pyzule-rw/archive/main.zip
pipx inject cyan Pillow
- name: Download Discord IPA
run: |
mkdir ipa_contents
curl -L -o com.hammerandchisel.discord-${{ github.event.inputs.discord_version }}.ipa "${{ github.event.inputs.discord_link }}"
- name: Apply BunnyNewWithOpenIn.cyan
run: cyan -i com.hammerandchisel.discord-${{ github.event.inputs.discord_version }}.ipa -z BunnyNewWithOpenIn.cyan -o BunnyWithOpenInSafari-${{ github.event.inputs.discord_version }}-Daisuke.ipa
- name: Apply RevengeWithOpenInSafariAndNotifier.cyan
run: cyan -i com.hammerandchisel.discord-${{ github.event.inputs.discord_version }}.ipa -z BunnyNewWithNotiferAndOpenIn.cyan -o BunnyWithOpenInSafariAndNotifer-${{ github.event.inputs.discord_version }}-Daisuke.ipa
- name: Upload IPA with OpenInSafari
uses: actions/upload-artifact@v3
with:
name: BunnyWithOpenInSafari-${{ github.event.inputs.discord_version }}-Daisuke.ipa
path: ./BunnyWithOpenInSafari-${{ github.event.inputs.discord_version }}-Daisuke.ipa
- name: Upload IPA with OpenInSafariAndNotifier
uses: actions/upload-artifact@v3
with:
name: BunnyWithOpenInSafariAndNotifer-${{ github.event.inputs.discord_version }}-Daisuke.ipa
path: ./BunnyWithOpenInSafariAndNotifer-${{ github.event.inputs.discord_version }}-Daisuke.ipa
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
tag_name: v${{ github.event.inputs.discord_version }}
release_name: Release v${{ github.event.inputs.discord_version }}
draft: false
prerelease: false
- name: Upload IPA to GitHub Release (OpenInSafari)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./BunnyWithOpenInSafari-${{ github.event.inputs.discord_version }}-Daisuke.ipa
asset_name: BunnyWithOpenInSafari-${{ github.event.inputs.discord_version }}-Daisuke.ipa
asset_content_type: application/octet-stream
- name: Upload IPA to GitHub Release (OpenInSafariAndNotifier)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./BunnyWithOpenInSafariAndNotifer-${{ github.event.inputs.discord_version }}-Daisuke.ipa
asset_name: BunnyWithOpenInSafariAndNotifer-${{ github.event.inputs.discord_version }}-Daisuke.ipa
asset_content_type: application/octet-stream