Compare commits
14 Commits
main
...
11d75e401e
| Author | SHA1 | Date | |
|---|---|---|---|
| 11d75e401e | |||
| 579b2623a4 | |||
| a140320f30 | |||
| 7405083815 | |||
| 9a1af981d9 | |||
| eda1b3d50c | |||
| 0c48c13852 | |||
| 7ab20f1c99 | |||
| a45b7332cc | |||
| caff1510f9 | |||
| 876674726d | |||
| 4b1c1607ed | |||
| 6a25a663e7 | |||
| 1545511859 |
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -5,7 +5,7 @@ on: [workflow_dispatch]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
- name: Build And Prepare For Release
|
||||
id: build
|
||||
run: |
|
||||
git clone https://github.com/ShawkTeam/pmt-renovated -b main ./pmt && cd pmt
|
||||
git clone https://git.yzbruh.space/${{ github.repository }} -b main ./pmt && cd pmt
|
||||
export ANDROID_NDK="${{ github.workspace }}/android-ndk-r28c"
|
||||
bash build.sh clean
|
||||
bash build.sh build -DCMAKE_BUILD_TYPE=Release
|
||||
@@ -50,8 +50,8 @@ jobs:
|
||||
echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
|
||||
echo "BUILD=${{ github.workspace }}/pmt" >> $GITHUB_ENV
|
||||
cd ..
|
||||
echo -e "Read [Wiki - About Release Types](https://github.com/ShawkTeam/pmt-renovated/wiki/About-Release-Types) for getting more information.\n\n### Changes\n" > release.txt
|
||||
git log --since="2025-08-21" --pretty=format:" * %ad | [%s](https://github.com/ShawkTeam/pmt-renovated/commit/%H)" --date=short | sed 's/ -.*//' | grep -v cleanup >> release.txt
|
||||
echo -e "Read [Wiki - About Release Types](https://git.yzbruh.space/${{ github.repository }}/wiki/About-Release-Types) for getting more information.\n\n### Changes\n" > release.txt
|
||||
git log --since="2025-08-21" --pretty=format:" * %ad | [%s](https://git.yzbruh.space/${{ github.repository }}/commit/%H)" --date=short | sed 's/ -.*//' | grep -v cleanup >> release.txt
|
||||
working-directory: ${{ github.workspace }}
|
||||
|
||||
- name: Upload To GitHub Releases
|
||||
|
||||
25
.github/workflows/fetch-changes.yml
vendored
25
.github/workflows/fetch-changes.yml
vendored
@@ -1,25 +0,0 @@
|
||||
name: Mirror External Repo to GitHub
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 * * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
mirror:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Mirror external repo
|
||||
run: |
|
||||
git config --global user.name "github-actions"
|
||||
git config --global user.email "actions@github.com"
|
||||
git clone --mirror https://git.yzbruh.space/YZBruh/pmt-renovated.git temp-mirror
|
||||
cd temp-mirror
|
||||
git remote add github https://github.com/ShawkTeam/pmt-renovated.git
|
||||
git push --mirror github
|
||||
10
README.md
10
README.md
@@ -25,13 +25,13 @@ PMT is designed for developers, technicians, and Android enthusiasts who need fi
|
||||
|
||||
## Documentation
|
||||
|
||||
For all information about PMT, see the [wiki](https://github.com/ShawkTeam/pmt-renovated/wiki).\
|
||||
Read [Wiki - Using PMT via Termux or ADB](https://github.com/ShawkTeam/pmt-renovated/wiki/Using-PMT-via-Termux-or-ADB) for learn how to use PMT via Termux or ADB.\
|
||||
Detailed usage instructions and option references can be found in the [Wiki - Usage](https://github.com/ShawkTeam/pmt-renovated/wiki/Usage).\
|
||||
See [Wiki - How To Build](https://github.com/ShawkTeam/pmt-renovated/wiki/How-To-Build) to learn how to build.
|
||||
For all information about PMT, see the [wiki](https://git.yzbruh.space/YZBruh/pmt-renovated/wiki).\
|
||||
Read [Wiki - Using PMT via Termux or ADB](https://git.yzbruh.space/YZBruh/pmt-renovated/wiki/Using-PMT-via-Termux-or-ADB) for learn how to use PMT via Termux or ADB.\
|
||||
Detailed usage instructions and option references can be found in the [Wiki - Usage](https://git.yzbruh.space/YZBruh/pmt-renovated/wiki/Usage).\
|
||||
See [Wiki - How To Build](https://git.yzbruh.space/YZBruh/pmt-renovated/wiki/How-To-Build) to learn how to build.
|
||||
|
||||
## Bug Reporting
|
||||
Please submit bugs at [Issues](https://github.com/ShawkTeam/pmt-renovated/issues) page.
|
||||
Please submit bugs at [Issues](https://git.yzbruh.space/YZBruh/pmt-renovated/issues) page.
|
||||
|
||||
---
|
||||
|
||||
|
||||
7
build.sh
7
build.sh
@@ -61,9 +61,12 @@ build() {
|
||||
-DANDROID_STL=c++_static
|
||||
done
|
||||
|
||||
CORES=$(($(nproc --all) - 2))
|
||||
[ $CORES -eq 0 ] && CORES=2
|
||||
|
||||
for a in ${TARGET_ABI_LIST[@]}; do
|
||||
echo "Building $a artifacts... Using $(($(nproc) - 2)) thread."
|
||||
cmake --build build_$a -j$(($(nproc) - 2))
|
||||
echo "Building $a artifacts... Using $CORES thread."
|
||||
cmake --build build_$a -j$CORES
|
||||
echo "$a build complete, artifacts: $PWD/build_$a"
|
||||
done
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ if [ $# -eq 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! basename -a ${PREFIX}/bin/* | grep "termux" &>/dev/null; then
|
||||
if ! echo ${HOME} | grep "com.termux" &>/dev/null; then
|
||||
echo "This script only for termux!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user