Compare commits

...
19 Commits
15 ... 22
Author SHA1 Message Date
Loi Phan 88ea74d38f Update ci.yml 2025-01-30 10:20:11 +07:00
Loi Phan ea7dd1d777 Update config.toml 2025-01-30 10:18:56 +07:00
Loi Phan 39e551c73c Update ci.yml 2025-01-30 09:59:04 +07:00
Loi Phan b5aac3781a Update ci.yml 2025-01-30 09:58:26 +07:00
Loi Phan 9ff2c72375 Update ci.yml 2025-01-30 09:57:34 +07:00
Loi Phan e65dfdaa1b Update config.toml 2025-01-30 09:57:20 +07:00
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
nezumi 88a00ca413 update config 2025-01-22 19:41:27 +07:00
4 changed files with 53 additions and 39 deletions
+16 -25
View File
@@ -174,35 +174,26 @@ jobs:
${BODY} ${BODY}
**Download Links:** **Download Links:**
"
MODULES_MSG="
**Modules:** **Modules:**
${MODULES} ${MODULES}
"
APKS_MSG="
**APKs:** **APKs:**
${APKS} ${APKS}
" "
# Function to split messages properly by ensuring correct Markdown formatting curl -X POST -H "Content-Type: application/json" \
send_discord_message() { -d "$(jq -n --arg content "$MSG" '{content: $content}')" \
local message="$1" "$DISCORD_WEBHOOK_URL"
local chunk=""
local remainder="$message" curl -X POST -H "Content-Type: application/json" \
-d "$(jq -n --arg content "$MODULES_MSG" '{content: $content}')" \
while [ ${#remainder} -gt 0 ]; do "$DISCORD_WEBHOOK_URL"
# Try to split at the last newline within the 2000-character limit
chunk="${remainder:0:2000}" curl -X POST -H "Content-Type: application/json" \
local cutoff=$(echo "$chunk" | awk 'END {print length($0) - length($NF)}') # Find last space/newline -d "$(jq -n --arg content "$APKS_MSG" '{content: $content}')" \
if [ "$cutoff" -lt 2000 ]; then "$DISCORD_WEBHOOK_URL"
chunk="${remainder:0:$cutoff}" # Safe chunk
remainder="${remainder:$cutoff}" # Remaining text
else
remainder="${remainder:2000}" # Fallback to default split
fi
# 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"
+2 -2
View File
@@ -29,7 +29,7 @@ jobs:
echo "'$UPDATE_CFG'" echo "'$UPDATE_CFG'"
echo "SHOULD_BUILD=1" >> $GITHUB_OUTPUT echo "SHOULD_BUILD=1" >> $GITHUB_OUTPUT
else else
echo "SHOULD_BUILD=0" >> $GITHUB_OUTPUT echo "SHOULD_BUILD=1" >> $GITHUB_OUTPUT
fi fi
fi fi
@@ -46,5 +46,5 @@ jobs:
permissions: write-all permissions: write-all
needs: check needs: check
uses: ./.github/workflows/build.yml uses: ./.github/workflows/build.yml
if: ${{ needs.check.outputs.SHOULD_BUILD == 0 }} if: ${{ needs.check.outputs.SHOULD_BUILD == 1 }}
secrets: inherit secrets: inherit
+1 -1
View File
@@ -1,6 +1,6 @@
# ReVanced Magisk Module # ReVanced Magisk Module
[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/rvc_magisk) [![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 Extensive ReVanced builder
+34 -11
View File
@@ -7,7 +7,7 @@ parallel-jobs = 1
# you can use rvmm-config-gen to generate a config # you can use rvmm-config-gen to generate a config
[YouTube] [YouTube]
build-mode = "both" build-mode = "apk"
excluded-patches = "'Hide timestamp'" excluded-patches = "'Hide timestamp'"
included-patches = "" included-patches = ""
version = "auto" version = "auto"
@@ -16,17 +16,17 @@ uptodown-dlurl = "https://youtube.en.uptodown.com/android"
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube" # archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube"
[Music] [Music]
build-mode = "both" build-mode = "apk"
arch = "both" arch = "both"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music" apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music"
uptodown-dlurl = "https://youtube-music.en.uptodown.com/android" uptodown-dlurl = "https://youtube-music.en.uptodown.com/android"
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music" # archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music"
[GooglePhotos] [GooglePhotos]
build-mode = "both" build-mode = "apk"
arch = "both" arch = "both"
version = "auto" version = "auto"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/photos/" apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/photos"
uptodown-dlurl = "https://google-photos.en.uptodown.com/android" uptodown-dlurl = "https://google-photos.en.uptodown.com/android"
[Music-Extended] [Music-Extended]
@@ -34,27 +34,50 @@ app-name = "Music"
patches-source = "inotia00/revanced-patches" patches-source = "inotia00/revanced-patches"
cli-source = "inotia00/revanced-cli" cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced Extended" rv-brand = "ReVanced Extended"
build-mode = "both" build-mode = "apk"
arch = "both" 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"
[Music-Extended-Beta]
app-name = "Music"
patches-source = "inotia00/revanced-patches"
patches-version = "dev"
cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced Extended"
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" 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] [YouTube-Extended]
app-name = "YouTube" app-name = "YouTube"
patches-source = "inotia00/revanced-patches" patches-source = "inotia00/revanced-patches"
cli-source = "inotia00/revanced-cli" cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced Extended" rv-brand = "ReVanced Extended"
build-mode = "both" build-mode = "apk"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube" apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube"
included-patches = "'Custom header for YouTube'" included-patches = "'Custom header for YouTube' 'MaterialYou' 'Hide Shorts dimming'"
excluded-patches = "'Custom branding icon for YouTube' 'Custom branding name for YouTube'" excluded-patches = "'Custom branding icon for YouTube' 'Custom branding name for YouTube' 'Disable splash animation'"
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube"
[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] [Reddit-Extended]
patches-source = "inotia00/revanced-patches" patches-source = "inotia00/revanced-patches"
cli-source = "inotia00/revanced-cli" cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced Extended" 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" # archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.reddit.frontpage"