Compare commits

23 Commits

Author SHA1 Message Date
KOWX712
84b7bd9f4e release v2.6 2024-11-30 21:08:04 +08:00
KOWX712
9fa022bad6 workflow fix 4 2024-11-30 21:06:46 +08:00
KOWX712
ec024a2936 workflow fix 3 2024-11-30 21:02:45 +08:00
KOWX712
72d505dec5 fix release workflow 2024-11-30 20:58:48 +08:00
KOWX712
0e06ea4902 Update module.prop 2024-11-30 20:53:26 +08:00
KOWX712
45657574d2 test run workflow 2024-11-30 20:51:41 +08:00
KOWX712
315f254123 fix multiple zip 2024-11-30 20:51:14 +08:00
KOWX712
4772755965 workflow test 2024-11-30 20:48:45 +08:00
KOWX712
18968a4fcb fix workflow 2 2024-11-30 20:42:16 +08:00
KOWX712
457c771cfa fix workflow 2024-11-30 20:37:12 +08:00
KOWX712
c5804fabdc revert 2024-11-30 20:33:11 +08:00
KOWX712
60ae2e42f9 limit to module folder only 2024-11-30 20:24:40 +08:00
KOWX712
04394ca65d Update README.md 2024-11-30 20:18:34 +08:00
KOWX712
3f8ef22b83 Update update.json 2024-11-30 20:16:43 +08:00
KOWX712
71e6d7ec8b Update module.prop 2024-11-30 20:14:50 +08:00
KOWX712
01300c9524 Update changelog.md 2024-11-30 20:14:08 +08:00
KOWX712
8747df3969 v2.6 changelog 2024-11-30 20:12:18 +08:00
KOWX712
792e5a15a1 push v2.6 stable 2024-11-30 20:12:09 +08:00
KOWX712
df7167dc55 workflow test 2024-11-30 20:09:11 +08:00
KOWX712
ffa0aa461d migrate to main 2024-11-30 04:08:19 +08:00
KOWX712
3926980b28 Update README.md 2024-11-30 03:57:56 +08:00
KOWX712
a92928838b Update README.md 2024-11-28 19:19:20 +08:00
KOWX712
fd837d41e8 beta3 2024-11-28 19:17:50 +08:00
10 changed files with 166 additions and 17 deletions

40
.github/workflows/canary.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: canary
on:
push:
branches:
- main
paths:
- 'module/**'
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Extract Module Info
id: extract_info
run: |
# Extract module name and version
MODULE_NAME=$(grep -oP '^name=\K.*' module/module.prop | tr ' ' '_')
MODULE_VERSION=$(grep -oP '^version=\K.*' module/module.prop)
# Generate build count based on GitHub Actions run number
BUILD_COUNT=$((1000 + ${{ github.run_number }}))
# Combine for artifact name
ARTIFACT_NAME="${MODULE_NAME}-${MODULE_VERSION}-${BUILD_COUNT}"
echo "MODULE_NAME=${MODULE_NAME}" >> $GITHUB_ENV
echo "MODULE_VERSION=${MODULE_VERSION}" >> $GITHUB_ENV
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
- name: Upload Artifact (without zipping)
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT_NAME }}
path: module/

95
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,95 @@
name: release
on:
push:
paths:
- 'module/module.prop'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Get the version from module.prop
id: get_version
run: |
VERSION=$(grep '^version=' module/module.prop | sed 's/version=//')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Check if version is already tagged
id: check_version
run: |
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "none")
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
if [ "$LATEST_TAG" == "none" ]; then
echo "skip=false" >> $GITHUB_ENV
elif [ "$LATEST_TAG" == "$VERSION" ]; then
echo "skip=true" >> $GITHUB_ENV
else
echo "skip=false" >> $GITHUB_ENV
fi
- name: Configure Git user
if: env.skip == 'false'
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Create a new tag (if version changed)
if: env.skip == 'false'
run: |
git tag -a "$VERSION" -m "Release version $VERSION"
git push origin "$VERSION"
- name: Set release variables
if: env.skip == 'false'
id: setup
run: |
CURRENT_TAG="$VERSION"
RELEASE_NOTES=$(awk -v tag="### $CURRENT_TAG" '
$0 == tag {flag=1; next}
/^###/ && flag {exit}
flag {print}
' changelog.md)
FORMATTED_RELEASE_NOTES=$(printf "### Tricky Addon module\n%s\n---\n### Tricky Addon Lite - script only\n- Check on [changelog](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/tree/main/lite-script_only#tricky-addon-lite-update-target-list-script)" "$RELEASE_NOTES")
echo "$FORMATTED_RELEASE_NOTES" > release_notes.txt
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
cat release_notes.txt >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "CURRENT_TAG=$CURRENT_TAG" >> $GITHUB_ENV
echo "ZIP_NAME=TrickyAddonModule-${VERSION}.zip" >> $GITHUB_ENV
echo "ZIP_PATH=module" >> $GITHUB_ENV
echo "LITE_SCRIPT_ONLY_ZIP_NAME=TrickyAddonLite_ScriptOnly_Extract-${VERSION}.zip" >> $GITHUB_ENV
echo "LITE_SCRIPT_ONLY_PATH=lite-script_only" >> $GITHUB_ENV
- name: Compress the module folder
if: env.skip == 'false'
run: |
cd "${{ env.ZIP_PATH }}" && zip -r "../${{ env.ZIP_NAME }}" ./*
echo "Created zip file: ${{ env.ZIP_NAME }}"
- name: Compress the lite-script_only folder
if: env.skip == 'false'
run: |
cd "${{ env.LITE_SCRIPT_ONLY_PATH }}" && zip -r "../${{ env.LITE_SCRIPT_ONLY_ZIP_NAME }}" ./*
echo "Created zip file: ${{ env.LITE_SCRIPT_ONLY_ZIP_NAME }}"
- name: Create release
if: env.skip == 'false'
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ env.ZIP_NAME }},${{ env.LITE_SCRIPT_ONLY_ZIP_NAME }}
tag_name: ${{ env.CURRENT_TAG }}
name: ${{ env.CURRENT_TAG }}
body: ${{ env.RELEASE_NOTES }}
draft: false
prerelease: false

View File

@@ -30,7 +30,7 @@ A **KSU WebUI** to configure tricky store target.txt
- MT manager is recommened for this method
## Translation
- Read [Translation Guide](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/tree/master/module/webroot/locales/A-translate.md)
- Read [Translation Guide](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/main/module/webroot/locales/A-translate.md)
## Acknowledgement
- [j-hc/zygisk-detach](https://github.com/j-hc/zygisk-detach) - KSU WebUI template
@@ -38,4 +38,6 @@ A **KSU WebUI** to configure tricky store target.txt
## Links
Download: [GitHub release](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases)
Update log: Read [ChangeLog](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/blob/main/changelog.md)
Telegram channel: [KOW's Little World](https://t.me/kowchannel)

View File

@@ -1,8 +1,6 @@
### Tricky Addon: Update Target List
A **KSU WebUI** to configure tricky store target.txt
Requirement: Tricky Store module installed
This module is not a part of Tricky Store, DO NOT report to Tricky Store if you encounter any issue.
GitHub release: [Tricky Addon: Update Target List](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/latest)
@@ -10,6 +8,20 @@ GitHub release: [Tricky Addon: Update Target List](https://github.com/KOWX712/Tr
Telegram channel: [KOW's Little World](https://t.me/kowchannel)
## Changelog
### v2.6
- Invisible module, intergrate action button & webui on tricky store card. You can stil use visible option if you found any issue with invisble module. Thanks for idea from @backslashxx.
- To uninstall invisble module, scroll down to the bottom of WebUI and press Uninstall WebUI.
- Add update prompt if found new version in webui, and show module if found an update. (invisible)
- Reduced WebUI loading time
- Added feature to save verifiedBootHash
- New way to detect Xposed module, now can catch all Xposed module apk package name in Deselect Unnecessary option, feedback in [Telegram](https://t.me/kowchannel) or [create issue](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/issues) if missed any.
- **Initial support for multiple languages**
- Language available: **en-US**, **ru-RU**, **tl-PH**, **zh-CN**, **zh-TW**
- Add language or fix translation error? [Read here](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/tree/master/module/webroot/locales/A-translate.md).
### v2.6-beta.3
- Check in [release notes](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/tag/v2.6-beta.3).
### v2.6-beta.2
- Check in [release notes](https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/tag/v2.6-beta.2).
@@ -39,7 +51,7 @@ Telegram channel: [KOW's Little World](https://t.me/kowchannel)
### v2.2
**KSU WebUI:**
- Added help menu
- Added extra [unnecessary app](https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/more-excldue.json) exclude option
- Added extra [unnecessary app](https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/more-excldue.json) exclude option
- Added no Internet connection prompt
### v2.1

View File

@@ -4,7 +4,7 @@
- Recommend to run with MT manager
## Changelog
### v2.1, v2.2, v2.3, v2.4, v2.5
### v2.1, v2.2, v2.3, v2.4, v2.5, v2.6
- Remain same with v2.0
### v2.0

View File

@@ -11,7 +11,7 @@ find_busybox
check_wget
# Fetch additional package names
wget --no-check-certificate -q -O - "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/more-excldue.json" 2>/dev/null | \
wget --no-check-certificate -q -O - "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/more-excldue.json" 2>/dev/null | \
grep -o '"package-name": *"[^"]*"' | \
awk -F'"' '{print $4}' > "$OUTPUT"
@@ -30,14 +30,14 @@ pm list packages -3 </dev/null 2>&1 | cat | awk -F: '{print $2}' | while read -
done
if [ "$skipfetch" != "true" ]; then
wget --no-check-certificate -qO "$KBOUTPUT" "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/.extra"
wget --no-check-certificate -qO "$KBOUTPUT" "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/.extra"
if [ ! -s "$KBOUTPUT" ]; then
rm -f "$KBOUTPUT"
fi
if [ -d "$MODPATH/temp" ]; then
JSON=$(wget --no-check-certificate -q -O - "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/update.json")
JSON=$(wget --no-check-certificate -q -O - "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/update.json")
REMOTE_VERSION=$(echo "$JSON" | grep -o '"versionCode": *[0-9]*' | awk -F: '{print $2}' | tr -d ' ')
LOCAL_VERSION=$(grep -o 'versionCode=[0-9]*' "$MODPATH/temp/module.prop" | awk -F= '{print $2}')
if [ "$REMOTE_VERSION" -gt "$LOCAL_VERSION" ]; then
@@ -46,4 +46,4 @@ if [ "$skipfetch" != "true" ]; then
fi
else
exit 1
fi
fi

View File

@@ -1,7 +1,7 @@
id=TA_utl
name=Tricky Addon - Update Target List
version=v2.6-beta.2
versionCode=250
version=v2.6
versionCode=260
author=KOWX712
description=A WebUI to conifgure tricky store target.txt
updateJson=https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/update.json
description=A WebUI to conifgure tricky store target.txt
updateJson=https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/update.json

View File

@@ -78,4 +78,4 @@ else
fi
done
. "$SCRIPT_DIR/UpdateTargetList.sh"
fi
fi

View File

@@ -1,7 +1,7 @@
{
"description": "Unnecessary app list",
"repo-link": "https://github.com/KOWX712/Tricky-Addon-Update-Target-List",
"json-link": "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/more-excldue.json",
"json-link": "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/more-excldue.json",
"data": [
{
"info": "Root manager",

View File

@@ -1,6 +1,6 @@
{
"versionCode": 250,
"version": "v2.5",
"zipUrl": "https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/download/v2.5/TrickyAddonModule-v2.5.zip",
"changelog": "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/master/changelog.md"
"zipUrl": "https://github.com/KOWX712/Tricky-Addon-Update-Target-List/releases/download/v2.6/TrickyAddonModule-v2.6.zip",
"changelog": "https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/changelog.md"
}