Skip to content

Bunny Updates

Bunny Updates #41

Workflow file for this run

name: Release-Bunny
on:
workflow_dispatch:
inputs:
discord_link:
description: 'Enter the Discord App 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: Set up environment
run: |
sudo apt update
sudo apt install -y unzip curl libxml2-utils
- name: Install Pyzule
run: bash -c "$(curl https://raw.githubusercontent.com/asdfzxcvbn/pyzule/main/install-pyzule.sh)"
- name: Download DaisukesPyoncordWithOpenInApp.pyzule
run: curl -L -o DaisukesPyoncordWithOpenInApp.pyzule https://github.com/daisuke1227/BunnyUpdates/raw/main/DaisukesPyoncordWithOpenInApp.pyzule
- name: Download DaisukesPyoncordNotifierOpenInApp.pyzule
run: curl -L -o DaisukesPyoncordNotiferOpenInApp.pyzule https://github.com/daisuke1227/BunnyUpdates/raw/main/DaisukesPyoncordNotiferOpenInApp.pyzule
- name: Download Discord
run: |
mkdir ipa_contents
curl -L -o decrypted.ipa "${{ github.event.inputs.discord_link }}"
- name: Apply DaisukesPyoncord.pyzule
run: pyzule -i decrypted.ipa -z DaisukesPyoncordWithOpenInApp.pyzule -o BunnyWithOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
- name: Apply DaisukesPyoncordWithNotifier.pyzule
run: pyzule -i decrypted.ipa -z DaisukesPyoncordNotiferOpenInApp.pyzule -o BunnyNotifierOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
- name: Upload Bunny IPA as artifact
uses: actions/upload-artifact@v2
with:
name: BunnyWithOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
path: ./BunnyWithOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
- name: Upload BunnyWithUpdateNotifier IPA as artifact
uses: actions/upload-artifact@v2
with:
name: BunnyNotifierOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
path: ./BunnyNotifierOpenInApp-${{ 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 Bunny IPA to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./BunnyWithOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
asset_name: BunnyWithOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
asset_content_type: application/octet-stream
- name: Upload BunnyWithUpdateNotifier IPA to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./BunnyNotifierOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
asset_name: BunnyNotifierOpenInApp-${{ github.event.inputs.discord_version }}-Daisuke.ipa
asset_content_type: application/octet-stream