Can build MicroG from inotia00 source
This commit is contained in:
Fioren
2024-01-03 01:00:24 +07:00
parent 9966b51bea
commit 72c474867b
3 changed files with 89 additions and 1 deletions

65
.github/workflows/Build-MicroG.yml vendored Normal file
View File

@@ -0,0 +1,65 @@
name: Build MicroG
on:
workflow_dispatch:
permissions: write-all
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: inotia00/VancedMicroG
persist-credentials: false
fetch-depth: 0
- name: JDK Setup
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Cache Gradle
uses: burrunan/gradle-cache-action@v1
- name: Setup Java
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
- name: Setup keystore
run: |
keytool -genkey -v -keystore play-services-core/keystore.jks -storepass microg -alias microg -keypass microg -dname "CN=microg" -keyalg RSA -keysize 2048 -validity 10000
cat << EOF > play-services-core/user.gradle
android {
signingConfigs {
release {
storeFile file('keystore.jks')
storePassword 'microg'
keyAlias 'microg'
keyPassword 'microg'
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
EOF
- name: Build project
run: ./gradlew assemble
- name: Build APK
run: ./gradlew assembleRelease
- name: Release
uses: softprops/action-gh-release@v0.1.15
with:
files: |
play-services-core/build/outputs/apk/release/play-services-core-release.apk
name: MicroG by inotia00
tag_name: MicroG
body: Change logs https://github.com/inotia00/VancedMicroG/releases

View File

@@ -19,6 +19,8 @@ Simply, all you need to do is choose the app you want to use from the options be
If you want to use the YouTube or YouTube Music app, you need to download and install MicroG, MicroG-RE or mMicroG.
But I strongly recommend you should build your MicroG apk by yourself. [Read wiki](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/wiki/Frequently-Asked-Questions#q-how-do-i-use-this-repository-for-building-microg)
All the code is open-source, clearly, and the APK files used for patching are downloaded from a trusted site, so it is totally safe for you to use.
If you are an advanced user and you want to use custom patches for patching apps, you should read the [Wiki](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/wiki/Frequently-Asked-Questions#q-how-do-i-use-this-repository-for-patching-my-own-app).
@@ -99,12 +101,18 @@ Download
## [MicroG:](https://github.com/inotia00/VancedMicroG)
[![Release](https://img.shields.io/github/v/release/inotia00/vancedmicrog?label=All-arch&style=for-the-badge)](https://github.com/inotia00/VancedMicroG/releases/latest/download/microg.apk)
[![Release](https://img.shields.io/github/v/release/inotia00/vancedmicrog?label=All-arch&style=for-the-badge)](https://github.com/inotia00/VancedMicroG/releases/latest/download/microg.apk)
### [Built by Github Action](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/releases/download/MicroG/play-services-core-release.apk)
---
## [MicroG-RE:](https://github.com/WSTxda/MicroG-RE)
[![Release](https://img.shields.io/github/v/release/WSTxda/MicroG-RE?label=All-arch&style=for-the-badge)](https://github.com/WSTxda/MicroG-RE/releases)
---
## [mMicroG:](https://github.com/kazimmt/mMicroG/)
[![Release](https://img.shields.io/github/v/release/kazimmt/mMicroG?label=arm64-v8a&style=for-the-badge)](https://github.com/kazimmt/mMicroG/releases/latest/download/MicroG-arm64-v8a.apk)

View File

@@ -20,6 +20,21 @@ By default, the Readme.md file uses links to download my patched apps, but if yo
---
### Q: How do I use this repository for building MicroG?
Here are the steps to help you build MicroG using [inotia00](https://github.com/inotia00/VancedMicroG) source code with GitHub Actions. I'm not implying that downloading directly from inotia00's repository is dangerous, but it's always wise to exercise caution when working with online resources.
You should [fork](https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root/fork) the repository, and then move to the `Action` tab
![Click Action](https://i.imgur.com/GewSCbi.png)
Click "I understand my workflows, go ahead and enable them"
![Click "I understand my workflows, go ahead and enable them"](https://i.imgur.com/OjI1Pxa.png)
Follow these steps to run the workflow for patching MicroG!
![](https://i.imgur.com/VFECO6q.png)
---
### Q: I want to use custom patches for patching my apps. How can I do it?
You should open the folder `Revanced-And-Revanced-Extended-Non-Root/src/patches/`. It contains a lot of folders that are named after the apps youre patching. Each folder has two files: exclude-patches and include-patches. Edit these files with the patches you like, putting one patch per line, following the patches list here: