chore: Merge branch dev to main (#69)

This commit is contained in:
LisoUseInAIKyrios authored and GitHub committed 2026-10-30 13:06:21 +01:00
commit 381a30cba9
10 files changed
+54 -22

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<svg xmlns="http://www.w3.org/2000/svg" width="240" height="64" viewBox="0 0 240 64" role="img" aria-label="Add to Morphe">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="0.4">
<stop offset="0" stop-color="#2D5BA8"/>
<stop offset="1" stop-color="#4DA9A9"/>
</linearGradient>
</defs>
<rect width="240" height="64" rx="20" fill="url(#bg)"/>
<path d="M38 24v16M30 32h16" stroke="#fff" stroke-width="3" stroke-linecap="round" fill="none"/>
<text x="62" y="39.5" fill="#fff" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif" font-size="22" font-weight="600">Add to Morphe</text>
</svg>

After

Width:  |  Height:  |  Size: 660 B

+6 -4
View File
@@ -60,7 +60,7 @@ def pkg_label(name, form_factor):
# The same package name can be used by different apps for each form factor.
# JSON structure: compatiblePackages is a list of objects with
# { packageName, name, formFactor, targets: [{ version, isExperimental, description }] }
by_pkg = {} # (packageName, formFactor) -> { name, emoji, patches, targets }
by_pkg = {} # (packageName, formFactor) -> { name, package, emoji, patches, targets }
universal = {}
for patch in data["patches"]:
@@ -78,6 +78,7 @@ for patch in data["patches"]:
if key not in by_pkg:
by_pkg[key] = {
"name": pkg_label(name, form_factor),
"package": pkg,
"emoji": pkg_emoji(form_factor),
"patches": {},
"targets": pkg_entry.get("targets", []),
@@ -143,19 +144,20 @@ def versions_table(targets):
return "\n".join(rows)
def spoiler(label, count, targets, tbl, expanded=False):
def spoiler(label, package, count, targets, tbl, expanded=False):
"""Wrap a patches table in a <details> spoiler with a versions sub-table.
If expanded=True, the spoiler is open by default (for repos with few patches).
"""
noun = "patch" if count == 1 else "patches"
vtbl = versions_table(targets)
package_line = f"**Package name:** `{package}`\n\n"
versions_section = f"**🎯 Supported versions:**\n\n{vtbl}\n\n" if vtbl else ""
tag = "<details open>" if expanded else "<details>"
return f"""{tag}
<summary>{label}&nbsp;&nbsp;•&nbsp;&nbsp;{count} {noun}</summary>
<br>
{versions_section}{tbl}
{package_line}{versions_section}{tbl}
</details>"""
@@ -172,7 +174,7 @@ def build_content(expanded=False):
for entry in by_pkg.values():
patches = list(entry["patches"].values())
label = f"{entry['emoji']} {entry['name']}"
lines.append(spoiler(label, len(patches), entry["targets"], patches_table(patches), expanded))
lines.append(spoiler(label, entry["package"], len(patches), entry["targets"], patches_table(patches), expanded))
lines.append("")
# Universal patches (no specific app)
+2 -1
View File
@@ -37,10 +37,11 @@ jobs:
# Semantic release runs its own Gradle build command.
# Only dev and main branch will generate a release as specified by .releaserc
- name: Release
uses: cycjimmy/semantic-release-action@v6
uses: cycjimmy/semantic-release-action@v8
id: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MORPHE_SIGNING_KEY: ${{ secrets.MORPHE_SIGNING_KEY }}
- name: Attest
if: steps.release.outputs.new_release_published == 'true'
+4
View File
@@ -1,3 +1,7 @@
### Morphe
# Private key that signs the patches file
morphe-signing.key
### Java template
# Compiled class file
*.class
+3 -1
View File
@@ -10,6 +10,7 @@
[
"@semantic-release/commit-analyzer", {
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "fix", "release": "patch" },
{ "type": "feat", "release": "minor" },
{ "type": "bump", "release": "patch" },
@@ -37,7 +38,8 @@
"releaseJson": {
"path": "patches-bundle.json",
"downloadUrlTemplate": "https://github.com/${owner}/${repo}/releases/download/v${version}/patches-${version}.mpp",
"signatureUrlTemplate": ""
"signatureUrlTemplate": "",
"publicKeyPath": "morphe-signing.pub"
}
}
],
+13 -1
View File
@@ -10,7 +10,11 @@ Patches for apps I like.
### How to use these patches
Click here to add these patches to Morphe: https://morphe.software/add-source?github=xyz-user/xyz-patches
Click the button below, or manually add this repo url to Morphe Manager: https://github.com/xyz-user/xyz-patches
<a href="https://morphe.software/add-source?github=xyz-user/xyz-patches">
<img src=".github/assets/add-to-morphe.svg" alt="Add to Morphe" height="48">
</a>
## 🩹 Patches list
@@ -42,6 +46,14 @@ To start using this template, follow these steps:
patches after yourself ("UserXYZ Morphe patches"). See the [NOTICE](NOTICE) for details.
7. (Optional): Add `patches-bundle.png` to the project if you want a custom icon to show in
Morphe Manager instead of your GitHub profile avatar.
8. (Optional): Sign your releases, so Morphe Manager refuses a release that was changed or swapped after you published it:
1. Run `./gradlew generateSigningKey`. It creates `morphe-signing.pub` and `morphe-signing.key`.
2. Commit `morphe-signing.pub`. Never commit `morphe-signing.key`, it is already ignored by git.
3. Add the content of `morphe-signing.key` as the `MORPHE_SIGNING_KEY` secret in your repo
Settings > Secrets and variables > Actions, then keep a backup of it somewhere safe and delete the file.
Every release is signed from then on. If you lose the key or it leaks, create a new one the same way;
users then have to confirm the new key in Morphe Manager before they get your next release.
🎉 You are now ready to start creating patches!
+1 -1
View File
@@ -1,5 +1,5 @@
[versions]
morphe-patcher = "2.0.0"
morphe-patcher = "2.1.0"
#noinspection GradleDependency
smali = "4220ae75f7"
gson = "2.14.0"
+2 -2
View File
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=dce76f55f8e251a3a1f130eb120f30b3d271de2b76c9b0729d316b5a1b6dc01f
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.1-bin.zip
distributionSha256Sum=21bd5da2de49b642904077f38c0efdc7778e92b3ed0889392dca61b97e389607
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.2-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
+11 -11
View File
@@ -47,9 +47,9 @@
}
},
"node_modules/@actions/http-client/node_modules/undici": {
"version": "6.29.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz",
"integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==",
"version": "6.29.1",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz",
"integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==",
"dev": true,
"license": "MIT",
"engines": {
@@ -121,7 +121,7 @@
},
"node_modules/@MorpheApp/changelog": {
"version": "0.0.1",
"resolved": "git+ssh://[email protected]/MorpheApp/changelog.git#caa1e931730f097bb6c4dee636b01c2c24ccd72d",
"resolved": "git+ssh://[email protected]/MorpheApp/changelog.git#f3d88b22e0276c44e76907bed292f3cdd96873f9",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1823,13 +1823,13 @@
}
},
"node_modules/handlebars": {
"version": "4.7.9",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.9.tgz",
"integrity": "sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==",
"version": "4.7.10",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.10.tgz",
"integrity": "sha512-P5VJMVM7qgBn6vjXMw8WG9uVI+ncf2pi72j4de4yz5ZULLj2RGqLYaKOYGsgyrViQ0tePOVlN1tDCCXXtFqXKg==",
"dev": true,
"license": "MIT",
"dependencies": {
"minimist": "^1.2.5",
"minimist": "^1.2.8",
"neo-async": "^2.6.2",
"source-map": "^0.6.1",
"wordwrap": "^1.0.0"
@@ -5635,9 +5635,9 @@
}
},
"node_modules/undici": {
"version": "7.30.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
"version": "7.30.1",
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz",
"integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==",
"dev": true,
"license": "MIT",
"engines": {
+1 -1
View File
@@ -17,5 +17,5 @@ pluginManagement {
}
plugins {
id("app.morphe.patches") version "2.0.0"
id("app.morphe.patches") version "2.1.0-dev.1"
}