Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
chore: Update readme
This commit is contained in:
1 parent
82f625a855
commit
e77d2d5d81
1 file changed
+32
-27
@@ -6,7 +6,11 @@ Template repository for Morphe Patches.
|
||||
|
||||
Patches for apps I like.
|
||||
|
||||
TODO: Update this about section with a brief introduction/summary about this repo and what it offers.
|
||||
<!-- TODO: Update this about section with a brief introduction/summary about this repo and what it offers. -->
|
||||
|
||||
### How to use these patches
|
||||
|
||||
Click here to add these patches to Morphe: https://morphe.software/add-source?github=xyz-user/xyz-patches
|
||||
|
||||
## 🩹 Patches list
|
||||
|
||||
@@ -23,7 +27,7 @@ TODO: Update this about section with a brief introduction/summary about this rep
|
||||
|
||||
|
||||
|
||||
## 🚀 Get started
|
||||
## 🚀 Getting development started
|
||||
|
||||
To start using this template, follow these steps:
|
||||
|
||||
@@ -41,45 +45,46 @@ To start using this template, follow these steps:
|
||||
|
||||
🎉 You are now ready to start creating patches!
|
||||
|
||||
## 🧑💻 Usage
|
||||
## 🧑💻 Dev usage
|
||||
|
||||
To develop and release your Patches using this template:
|
||||
|
||||
- Do all development work in the `dev` branch.
|
||||
- For local development work build your patches using the gradle task `./gradlew buildAndroid` to generate the mpp file found in `patches/build/libs/patches-*.mpp`. Apply your patches locally using Morphe CLI tool like any other patch bundle.
|
||||
- Always use [Semantic commit](https://kapeli.com/cheat_sheets/Semantic_Commits.docset/Contents/Resources/Documents/index) 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`
|
||||
- **Make all changes to the `dev` branch.**
|
||||
- For local development work build your patches using the gradle task `./gradlew buildAndroid` to generate the mpp file found in `patches/build/libs/patches-*.mpp`. Apply your patches locally using Morphe Desktop tool like any other patch bundle.
|
||||
- Always use [Semantic commit](https://kapeli.com/cheat_sheets/Semantic_Commits.docset/Contents/Resources/Documents/index) 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:` and `feat:` will automatically generate new pre-releases and `chore:` will not create a new release.
|
||||
- Users can apply your dev branch releases by enabling `pre-release` in 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.
|
||||
- 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 create releases by hand
|
||||
because many files must be updated and release.yml handles everything.
|
||||
|
||||
## 🤓 Tips
|
||||
- See the [patcher documentation](https://github.com/MorpheApp/morphe-patcher/blob/main/docs/1_patcher_intro.md)
|
||||
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`
|
||||
- See the [patcher documentation](https://github.com/MorpheApp/morphe-patcher/blob/main/docs/1_patcher_intro.md) for more examples of creating patches and fingerprints.
|
||||
- Do not use AI to create new release scripts. The `release.yml` here already handles everything.
|
||||
If you need omething custom with your releases then modify the existing `release.yml`
|
||||
and `.releaserc` instead of writing everything new from scratch.
|
||||
- Do not manually edit or manually commit any generated files such as: `patches-list.json`,
|
||||
`patches-bundle.json`, `CHANGELOG.md`. These files will be automatically updated by `release.yml`.
|
||||
- Do not force push any semantic release commits as that will break all future releases.
|
||||
If you need to fix a broken release, it's always easiest to create a new release instead of
|
||||
fixing an existing release.
|
||||
|
||||
|
||||
<!-- The patches end tag is intentionally placed here so the first release will cleanup
|
||||
<!-- The patches end tag is intentionally placed here so the first release will clean up
|
||||
this readme of all developer instructions above. -->
|
||||
<!-- PATCHES_END -->
|
||||
|
||||
#### How to use these patches
|
||||
### 🛠️ Building locally
|
||||
|
||||
Click here to add these patches to Morphe: https://morphe.software/add-source?github=xyz-user/xyz-patches
|
||||
- Run `./gradlew buildAndroid`
|
||||
- The built patches .mpp file is found in `patches/build/libs/patches-*.mpp`
|
||||
- Patch the mpp file using [Morphe-Desktop](https://github.com/MorpheApp/morphe-desktop)
|
||||
like any other patch bundle.
|
||||
|
||||
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](https://github.com/MorpheApp/morphe-documentation).
|
||||
See the [Morphe documentation](https://github.com/MorpheApp/morphe-documentation) for more information.
|
||||
|
||||
## 📜 License
|
||||
|
||||
|
||||
Reference in new issue
Block a user