Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-11-30 23:09:34 +00:00
bc6b723a948f1de4ccb28de4d6784ba0f635ad27
chore: Initial commit of code state from https://github.com/ReVanced/revanced-patches-template/commit/bd4b564fc0fc8f7ade8dcd41eb4aaaf59adad6ae
chore: Initial commit of code state from https://github.com/ReVanced/revanced-patches-template/commit/bd4b564fc0fc8f7ade8dcd41eb4aaaf59adad6ae
chore: Initial commit of code state from https://github.com/ReVanced/revanced-patches-template/commit/bd4b564fc0fc8f7ade8dcd41eb4aaaf59adad6ae
chore: Initial commit of code state from https://github.com/ReVanced/revanced-patches-template/commit/bd4b564fc0fc8f7ade8dcd41eb4aaaf59adad6ae
chore: Initial commit of code state from https://github.com/ReVanced/revanced-patches-template/commit/bd4b564fc0fc8f7ade8dcd41eb4aaaf59adad6ae
👋🧩 Morphe Patches template
Template repository for Morphe Patches.
❓ About
Patches for apps I like.
TODO: Update this about section with a brief introduction/summary about this repo and what it offers.
🩹 Patches list
A list of your patches will automatically be shown here after your first patches release is created.
🚀 Get started
To start using this template, follow these steps:
- Setup your development environment including adding a GitHub PAT as described here.
- Create a new repository using this template
- Update the build.gradle.kts file (Specifically, the group of the project, and the About)
- Update the README.md file to be specific of your repo, and update the links in the issue templates.
- Choose a name for your patches project. Keep in mind you must use a name that does not imply authorship by the Morphe open source project. If unsure, then simply name these patches after yourself ("UserXYZ Morphe patches"). See the NOTICE for details.
- (Optional): Add
patches-bundle.pngto the project if you want a custom icon to show in Morphe Manager instead of your GitHub profile avatar.
🎉 You are now ready to start creating patches!
🧑💻 Usage
To develop and release your Patches using this template:
- Do all development work in the
devbranch. - For local development work build your patches using the gradle task
./gradlew buildAndroidto generate the mpp file found inpatches/build/libs/patches-*.mpp. Apply your patches locally using Morphe CLI tool like any other patch bundle. - Always use Semantic commit messages for commits. To keep it simple use only 3 commit message types:
feat: Added a new feature,fix: Some problem now fixed,chore: Random change you do not want in the user facing changelog - Commits of
fix:andfeat:will automatically generate new pre-releases andchore:will not create a new release. - Users can apply your dev branch releases by enabling
pre-releasein Morphe Manager patch sources. - When your dev branch is ready and you want a stable release, merge dev branch to main (do not squash, and only merge).
- Always use semantic release (release.yml). Do not manually upload or creating releases by hand because many files must be updated and release.yml handles everything.
🤓 Tips
- See the patcher documentation for more examples of creating patches and fingerprints.
- Do not manually edit any generated files such as:
patches-list.json,patches-bundle.json,CHANGELOG.md. These files will be automatically updated in the release action. - Do not force push any semantic release commits or you will break the release. To 'redo' the last release then:
- Git drop the last dev/main semantic release commit you want to redo.
- Delete the release from the release area of this repo and delete the tag
- Make any other changes you wish to do
- Force push dev/main branch
- A new replacement release will be created by
release.yml
How to use these patches
Click here to add these patches to Morphe: https://morphe.software/add-source?github=xyz-user/xyz-patches
Or manually add this repository url as a patch source in Morphe: https://github.com/xyz-user/xyz-patches
🛠️ Building
To build UserXYZ Patches, you can follow the Morphe documentation.
📜 License
UserXYZ Patches are licensed under the GNU General Public License v3.0
Description
Repo template for creating and releasing custom Morphe patches (this would be transfered if/when the Morphe devs join gitea and want to have it)
Readme
GPL-3.0
21 MiB
0 Stars
1 Watchers
0 Forks
Languages
JavaScript
40.2%
Python
32%
Kotlin
27.2%
Java
0.6%