Compare commits

...
12 Commits
16 ... 20
Author SHA1 Message Date
Loi Phan b2312718f9 Update config.toml 2025-01-30 09:53:07 +07:00
Loi Phan f1e8080202 Update config.toml 2025-01-30 09:51:19 +07:00
Loi Phan f428ad0cfe Update ci.yml 2025-01-30 09:50:21 +07:00
Loi Phan d28118c98c Update ci.yml 2025-01-30 09:42:54 +07:00
Loi Phan edfe08657a Update ci.yml 2025-01-30 09:42:09 +07:00
Loi Phan 03352030a1 Update README.md 2025-01-30 09:36:01 +07:00
Loi Phan c57014a391 update config 2025-01-30 09:33:24 +07:00
Loi Phan 1167a7c636 Update config.toml 2025-01-30 09:27:20 +07:00
Loi Phan fb7222a28f Update config.toml 2025-01-30 09:19:27 +07:00
nezumi 8e8c8634ef update config.toml 2025-01-22 22:00:09 +07:00
nezumi 7deb883720 update config 2025-01-22 20:25:45 +07:00
nezumi be1c20bb87 update config 2025-01-22 20:03:31 +07:00
4 changed files with 40 additions and 44 deletions
+16 -31
View File
@@ -174,41 +174,26 @@ jobs:
${BODY}
**Download Links:**
"
MODULES_MSG="
**Modules:**
${MODULES}
"
APKS_MSG="
**APKs:**
${APKS}
"
# Function to split messages properly by ensuring correct Markdown formatting
send_discord_message() {
local message="$1"
while [ ${#message} -gt 0 ]; do
# Attempt to find a safe split point within 2000 characters
local chunk="${message:0:2000}"
local cutoff=$(echo "$chunk" | awk '{print length($0) - length($NF)}') # Find last space/newline within chunk
if [ $cutoff -gt 0 ] && [ $cutoff -lt 2000 ]; then
# Use safe cutoff point if available
chunk="${message:0:$cutoff}"
message="${message:$cutoff}"
else
# Default to cutting at the 2000-character limit
chunk="${message:0:2000}"
message="${message:2000}"
fi
# Remove leading/trailing whitespace in the chunk and message
chunk=$(echo "$chunk" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
message=$(echo "$message" | sed 's/^[[:space:]]*//')
# Send the chunk to Discord
curl -X POST -H "Content-Type: application/json" \
-d "$(jq -n --arg content "$chunk" '{content: $content}')" \
"$DISCORD_WEBHOOK_URL"
done
}
send_discord_message "$MSG"
curl -X POST -H "Content-Type: application/json" \
-d "$(jq -n --arg content "$MSG" '{content: $content}')" \
"$DISCORD_WEBHOOK_URL"
curl -X POST -H "Content-Type: application/json" \
-d "$(jq -n --arg content "$MODULES_MSG" '{content: $content}')" \
"$DISCORD_WEBHOOK_URL"
curl -X POST -H "Content-Type: application/json" \
-d "$(jq -n --arg content "$APKS_MSG" '{content: $content}')" \
"$DISCORD_WEBHOOK_URL"
+2 -2
View File
@@ -29,7 +29,7 @@ jobs:
echo "'$UPDATE_CFG'"
echo "SHOULD_BUILD=1" >> $GITHUB_OUTPUT
else
echo "SHOULD_BUILD=0" >> $GITHUB_OUTPUT
echo "SHOULD_BUILD=1" >> $GITHUB_OUTPUT
fi
fi
@@ -46,5 +46,5 @@ jobs:
permissions: write-all
needs: check
uses: ./.github/workflows/build.yml
if: ${{ needs.check.outputs.SHOULD_BUILD == 0 }}
if: ${{ needs.check.outputs.SHOULD_BUILD == 1 }}
secrets: inherit
+1 -1
View File
@@ -1,6 +1,6 @@
# ReVanced Magisk Module
[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/rvc_magisk)
[![CI](https://github.com/j-hc/revanced-magisk-module/actions/workflows/ci.yml/badge.svg?event=schedule)](https://github.com/j-hc/revanced-magisk-module/actions/workflows/ci.yml)
[![CI](https://github.com/Nez27/revanced-apk-build/actions/workflows/ci.yml/badge.svg?event=schedule)](https://github.com/Nez27/revanced-apk-build/actions/workflows/ci.yml)
Extensive ReVanced builder
+21 -10
View File
@@ -7,7 +7,7 @@ parallel-jobs = 1
# you can use rvmm-config-gen to generate a config
[YouTube]
build-mode = "both"
build-mode = "apk"
excluded-patches = "'Hide timestamp'"
included-patches = ""
version = "auto"
@@ -16,14 +16,14 @@ uptodown-dlurl = "https://youtube.en.uptodown.com/android"
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube"
[Music]
build-mode = "both"
build-mode = "apk"
arch = "both"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music"
uptodown-dlurl = "https://youtube-music.en.uptodown.com/android"
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music"
[GooglePhotos]
build-mode = "both"
build-mode = "apk"
arch = "both"
version = "auto"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/photos/"
@@ -34,27 +34,38 @@ app-name = "Music"
patches-source = "inotia00/revanced-patches"
cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced Extended"
build-mode = "both"
build-mode = "apk"
arch = "both"
included-patches = "'Custom header for YouTube Music' 'Spoof client'"
excluded-patches = "'Custom branding icon for YouTube Music' 'Custom branding name for YouTube Music'"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music"
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music"
[YouTube-Extended]
app-name = "YouTube"
patches-source = "inotia00/revanced-patches"
cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced Extended"
build-mode = "both"
build-mode = "apk"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube"
included-patches = "'Custom header for YouTube'"
excluded-patches = "'Custom branding icon for YouTube' 'Custom branding name for YouTube'"
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube"
included-patches = "'Custom header for YouTube' 'MaterialYou' 'Hide Shorts dimming'"
excluded-patches = "'Custom branding icon for YouTube' 'Custom branding name for YouTube' 'Disable splash animation'"
[YouTube-Extended-Beta]
app-name = "YouTube"
patches-source = "inotia00/revanced-patches"
patches-version = "dev"
cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced Extended"
build-mode = "apk"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube"
included-patches = "'Custom header for YouTube' 'MaterialYou'"
excluded-patches = "'Custom branding icon for YouTube' 'Custom branding name for YouTube' 'Disable splash animation'"
[Reddit-Extended]
patches-source = "inotia00/revanced-patches"
cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced Extended"
apkmirror-dlurl = "https://www.apkmirror.com/apk/redditinc/reddit/"
apkmirror-dlurl = "https://www.apkmirror.com/apk/redditinc/reddit"
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.reddit.frontpage"