mirror of
https://github.com/Nezumi-2711/revanced-apk-build.git
synced 2026-09-22 20:02:00 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7deb883720 | ||
|
|
be1c20bb87 | ||
|
|
88a00ca413 | ||
|
|
788b36f083 | ||
|
|
ae43197aa0 | ||
|
|
c2fe93675e | ||
|
|
aee01f1ca5 | ||
|
|
679631315e | ||
|
|
a2ca664121 | ||
|
|
94c8ce77a9 | ||
|
|
aece463380 | ||
|
|
6846988fbe |
@@ -114,7 +114,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd build || { echo "build folder not found"; exit 1; }
|
cd build || { echo "build folder not found"; exit 1; }
|
||||||
|
|
||||||
TG_CHAT="@rvc_magisk"
|
TG_CHAT="-1002417137882"
|
||||||
NL=$'\n'
|
NL=$'\n'
|
||||||
APKS=""
|
APKS=""
|
||||||
MODULES=""
|
MODULES=""
|
||||||
@@ -145,3 +145,55 @@ jobs:
|
|||||||
MSG=${MSG:0:9450}
|
MSG=${MSG:0:9450}
|
||||||
POST="https://api.telegram.org/bot${TG_TOKEN}/sendMessage"
|
POST="https://api.telegram.org/bot${TG_TOKEN}/sendMessage"
|
||||||
curl -X POST --data-urlencode "parse_mode=Markdown" --data-urlencode "disable_web_page_preview=true" --data-urlencode "text=${MSG}" --data-urlencode "chat_id=${TG_CHAT}" "$POST"
|
curl -X POST --data-urlencode "parse_mode=Markdown" --data-urlencode "disable_web_page_preview=true" --data-urlencode "text=${MSG}" --data-urlencode "chat_id=${TG_CHAT}" "$POST"
|
||||||
|
|
||||||
|
- name: Report to Discord
|
||||||
|
env:
|
||||||
|
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||||
|
if: env.DISCORD_WEBHOOK_URL != null
|
||||||
|
run: |
|
||||||
|
cd build || { echo "build folder not found"; exit 1; }
|
||||||
|
|
||||||
|
NL=$'\n'
|
||||||
|
APKS=""
|
||||||
|
MODULES=""
|
||||||
|
for OUTPUT in *; do
|
||||||
|
DL_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/download/${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}/${OUTPUT}"
|
||||||
|
if [[ $OUTPUT = *.apk ]]; then
|
||||||
|
APKS+="${NL}- [${OUTPUT}](${DL_URL})"
|
||||||
|
elif [[ $OUTPUT = *.zip ]]; then
|
||||||
|
MODULES+="${NL}- [${OUTPUT}](${DL_URL})"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
MODULES=${MODULES#"$NL"}
|
||||||
|
APKS=${APKS#"$NL"}
|
||||||
|
|
||||||
|
BODY="$(sed 's/^\* \*\*/- \*\*/g; s/^\* `/- \*\*/g; s/`/\*/g; s/^\* /\-/g; s/\*\*/\*/g; s/###//g; s/^- /- /g; /^==/d;' ../build.md)"
|
||||||
|
MSG="**New build is ready!**
|
||||||
|
|
||||||
|
${BODY}
|
||||||
|
|
||||||
|
**Download Links:**
|
||||||
|
"
|
||||||
|
|
||||||
|
MODULES_MSG="
|
||||||
|
**Modules:**
|
||||||
|
${MODULES}
|
||||||
|
"
|
||||||
|
|
||||||
|
APKS_MSG="
|
||||||
|
**APKs:**
|
||||||
|
${APKS}
|
||||||
|
"
|
||||||
|
|
||||||
|
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"
|
||||||
|
|||||||
+3
-1
@@ -1,4 +1,4 @@
|
|||||||
enable-magisk-update = true # set this to false if you do not want to receive updates for the module in magisk app
|
enable-magisk-update = false # set this to false if you do not want to receive updates for the module in magisk app
|
||||||
parallel-jobs = 1
|
parallel-jobs = 1
|
||||||
|
|
||||||
# add 'enabled = false' for not patching a specific app or remove it from the config
|
# add 'enabled = false' for not patching a specific app or remove it from the config
|
||||||
@@ -46,6 +46,8 @@ cli-source = "inotia00/revanced-cli"
|
|||||||
rv-brand = "ReVanced Extended"
|
rv-brand = "ReVanced Extended"
|
||||||
build-mode = "both"
|
build-mode = "both"
|
||||||
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'"
|
||||||
|
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"
|
# archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube"
|
||||||
|
|
||||||
[Reddit-Extended]
|
[Reddit-Extended]
|
||||||
|
|||||||
Reference in New Issue
Block a user