mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
📝 Generate changelogs
This commit is contained in:
@@ -66,7 +66,7 @@ jobs:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag: Build-${{ steps.get-date.outputs.date }}
|
||||
artifactErrorsFailBuild: true
|
||||
generateReleaseNotes: true
|
||||
bodyFile: changelog.md
|
||||
- name: Sleep for 10 seconds
|
||||
run: |
|
||||
sleep 10
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
|
||||
<details> <summary>👀 inotia00/VancedMicroG </summary>
|
||||
|
||||
**Release Version** - [v0.2.25.223212-223212002](https://github.com/inotia00/VancedMicroG/releases/tag/v0.2.25.223212-223212002)<br>**Changelog** -<br> - Reflect @OxrxL source for date of 2022/08/25
|
||||
- Changed the version code to 0.2.25.223212-232312002
|
||||
|
||||
※ Source Code for MicroG 0.2.25.223212 was provided by @OxrxL**Published at** -<br> 2022-08-25T05:33:50Z<br><sub>Change logs generated by [Docker Py Revanced](https://github.com/nikhilbadyal/docker-py-revanced)</sub>
|
||||
</details>
|
||||
<details> <summary>👀 inotia00/revanced-integrations </summary>
|
||||
|
||||
**Release Version** - [v0.55.0](https://github.com/inotia00/revanced-integrations/releases/tag/v0.55.0)<br>**Changelog** -<br> bump v0.55.0**Published at** -<br> 2022-10-24T08:00:28Z<br><sub>Change logs generated by [Docker Py Revanced](https://github.com/nikhilbadyal/docker-py-revanced)</sub>
|
||||
</details>
|
||||
<details> <summary>👀 inotia00/revanced-patches </summary>
|
||||
|
||||
**Release Version** - [v2.85.2](https://github.com/inotia00/revanced-patches/releases/tag/v2.85.2)<br>**Changelog** -<br> YouTube
|
||||
==
|
||||
- Ad filter update (needs more testing)
|
||||
- Splash Icon support for ReVanced Blue
|
||||
- improve ReVanced Red Splash Icon
|
||||
- improve `hide-my-mx` patch
|
||||
- improve video-id-hook for ryd
|
||||
- fix: `custom-branding-icon` patch fails when `amoled` patch is excluded
|
||||
- fix: 'hide comment spoiler' not working
|
||||
- fix: video speed and video quality reset when screen is off
|
||||
- fix: autorepeat not working when screen is off
|
||||
- fix: fullscreen swipe zoom does not work
|
||||
- Crowdin Translation Update
|
||||
`Chinese Simplified`, `Portuguese(Brazilian)`, `Russian`, `Vietnamese`
|
||||
|
||||
ETC
|
||||
==
|
||||
- Added Support YouTube v17.41.37
|
||||
- bump revanced-patches-2.85.2
|
||||
fix(youtube/integrations): set context for remaining activities (#828)
|
||||
(fix: app crashes when opening YouTube link from Google PlayStore or Google News Feed)
|
||||
|
||||
※ I don't know why, but the Crowdin translation site is dead again 🤷
|
||||
※ If you want to contribute to the translation, please upload the strings.xml file on Crowdin or use the PR on github.**Published at** -<br> 2022-10-24T08:00:31Z<br><sub>Change logs generated by [Docker Py Revanced](https://github.com/nikhilbadyal/docker-py-revanced)</sub>
|
||||
</details>
|
||||
<details> <summary>👀 inotia00/revanced-cli </summary>
|
||||
|
||||
**Release Version** - [v2.14.1](https://github.com/inotia00/revanced-cli/releases/tag/v2.14.1)<br>**Changelog** -<br> bump v2.14.0
|
||||
Reflect commit in [j-hc/revanced-cli](https://github.com/j-hc/revanced-cli)**Published at** -<br> 2022-10-09T12:48:34Z<br><sub>Change logs generated by [Docker Py Revanced](https://github.com/nikhilbadyal/docker-py-revanced)</sub>
|
||||
</details>
|
||||
<details> <summary>👀 revanced/revanced-integrations </summary>
|
||||
|
||||
**Release Version** - [v0.55.0](https://github.com/revanced/revanced-integrations/releases/tag/v0.55.0)<br>**Changelog** -<br> # [0.55.0](https://github.com/revanced/revanced-integrations/compare/v0.54.1...v0.55.0) (2022-10-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* revert removing getAppContext() ([0be0ffd](https://github.com/revanced/revanced-integrations/commit/0be0ffd42abdf20e699a63e02b3474b82d798f24))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* remove getAppContext() ([#182](https://github.com/revanced/revanced-integrations/issues/182)) ([f4650b1](https://github.com/revanced/revanced-integrations/commit/f4650b1139e94577d702c8aa141ee19455547e58))
|
||||
|
||||
|
||||
|
||||
**Published at** -<br> 2022-10-22T14:45:10Z<br><sub>Change logs generated by [Docker Py Revanced](https://github.com/nikhilbadyal/docker-py-revanced)</sub>
|
||||
</details>
|
||||
<details> <summary>👀 revanced/revanced-patches </summary>
|
||||
|
||||
**Release Version** - [v2.85.2](https://github.com/revanced/revanced-patches/releases/tag/v2.85.2)<br>**Changelog** -<br> ## [2.85.2](https://github.com/revanced/revanced-patches/compare/v2.85.1...v2.85.2) (2022-10-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **youtube/integrations:** set context for remaining activities ([#828](https://github.com/revanced/revanced-patches/issues/828)) ([b2b6a3d](https://github.com/revanced/revanced-patches/commit/b2b6a3d1492bc2d5a6e27c68c74e3904764dda4b))
|
||||
|
||||
|
||||
|
||||
**Published at** -<br> 2022-10-22T10:47:26Z<br><sub>Change logs generated by [Docker Py Revanced](https://github.com/nikhilbadyal/docker-py-revanced)</sub>
|
||||
</details>
|
||||
<details> <summary>👀 revanced/revanced-cli </summary>
|
||||
|
||||
**Release Version** - [v2.14.0](https://github.com/revanced/revanced-cli/releases/tag/v2.14.0)<br>**Changelog** -<br> # [2.14.0](https://github.com/revanced/revanced-cli/compare/v2.13.0...v2.14.0) (2022-10-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* escape quotation mark in string ([6e21d81](https://github.com/revanced/revanced-cli/commit/6e21d81964e8160e06ffda7051dd484e4aaaa432))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* handle unmounting deleted files ([#148](https://github.com/revanced/revanced-cli/issues/148)) ([3a733e5](https://github.com/revanced/revanced-cli/commit/3a733e513717799ca0e32327e5b8be043680c556))
|
||||
* unmount all occurrences in `/proc/mounts` ([#131](https://github.com/revanced/revanced-cli/issues/131)) ([4f4e1f9](https://github.com/revanced/revanced-cli/commit/4f4e1f9834bf28d9be2efd4fd7bae19951b85258))
|
||||
|
||||
|
||||
|
||||
**Published at** -<br> 2022-10-05T18:28:22Z<br><sub>Change logs generated by [Docker Py Revanced](https://github.com/nikhilbadyal/docker-py-revanced)</sub>
|
||||
</details>
|
||||
@@ -1,4 +1,5 @@
|
||||
"""Downloader Class."""
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
@@ -12,6 +13,7 @@ from selectolax.lexbor import LexborHTMLParser
|
||||
from tqdm import tqdm
|
||||
|
||||
from src.config import RevancedConfig
|
||||
from src.utils import update_changelog
|
||||
|
||||
|
||||
class Downloader(object):
|
||||
@@ -160,10 +162,14 @@ class Downloader(object):
|
||||
download_url = r.json()["assets"][1]["browser_download_url"]
|
||||
else:
|
||||
download_url = r.json()["assets"][0]["browser_download_url"]
|
||||
update_changelog(f"{owner}/{name}", r.json())
|
||||
self._download(download_url, file_name=file_name)
|
||||
|
||||
def download_revanced(self) -> None:
|
||||
"""Download Revanced and Extended Patches, Integration and CLI."""
|
||||
if os.path.exists("changelog.md"):
|
||||
logger.debug("Deleting old changelog.md")
|
||||
os.remove("changelog.md")
|
||||
assets = [
|
||||
["revanced", "revanced-cli", self.config.normal_cli_jar],
|
||||
["revanced", "revanced-integrations", self.config.normal_integrations_apk],
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
"""Utilities."""
|
||||
from typing import Dict
|
||||
|
||||
supported_apps = [
|
||||
"youtube",
|
||||
"youtube_music",
|
||||
@@ -9,3 +11,29 @@ supported_apps = [
|
||||
"spotify",
|
||||
]
|
||||
possible_archs = ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
||||
|
||||
|
||||
def update_changelog(name: str, response: Dict[str, str]) -> None:
|
||||
"""Updated Changelog."""
|
||||
parent_repo = "https://github.com/nikhilbadyal/docker-py-revanced"
|
||||
file1 = open("changelog.md", "a")
|
||||
collapse_start = f"\n<details> <summary>👀 {name} </summary>\n\n"
|
||||
release_version = (
|
||||
f"**Release Version** - [{response['tag_name']}]({response['html_url']})<br>"
|
||||
)
|
||||
change_log = f"**Changelog** -<br> {response['body']}"
|
||||
publish_time = f"**Published at** -<br> {response['published_at']}"
|
||||
footer = (
|
||||
f"<br><sub>Change logs generated by [Docker Py Revanced]({parent_repo})</sub>\n"
|
||||
)
|
||||
collapse_end = "</details>"
|
||||
change_log = (
|
||||
collapse_start
|
||||
+ release_version
|
||||
+ change_log
|
||||
+ publish_time
|
||||
+ footer
|
||||
+ collapse_end
|
||||
)
|
||||
file1.write(change_log)
|
||||
file1.close()
|
||||
|
||||
Reference in New Issue
Block a user