Skip to content

Commit

Permalink
v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
syspwda authored Mar 4, 2024
1 parent f2ab083 commit 728bd79
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,30 @@ jobs:
- name: Setup Apt Dependencies
run: |
sudo apt update -y && sudo apt upgrade -y
sudo apt install zip unzip -y
sudo apt install zip unzip jq -y
- name: Make
shell: bash
run: |
zip -r "module.zip" * -x ".git" -x "README.md"
get_prop() { sed -n "s|^$1=||p" module.prop; }
ID="$(get_prop id)"
VERSION="$(get_prop version)"
VERSIONCODE="$(get_prop versionCode)"
zip -r "$ID-v$VERSION-($VERSIONCODE).zip" * -x ".git" -x "README.md"
- name: Update
shell: bash
run: |
get_prop() { sed -n "s|^$1=||p" module.prop; }
ID="$(get_prop id)"
VERSION="$(get_prop version)"
VERSIONCODE="$(get_prop versionCode)"
cat update.json | jq --arg vn $VERSION '. + {version: $vn}'
cat update.json | jq --arg vc $VERSIONCODE '. + {versionCode: $vc}'
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: 'module.zip'
files: '*-v*-(*).zip'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id=amtsmagisk
name=AntiAMTS for Magisk
version=1.2.5
versionCode=125
version=1.2.6
versionCode=126
author=Der_Googler & Sierra Community
description=AntiAMTS ist ein kostenloser AdBlocker, der von SierraDevoplers bereitgestellt wird.
support=https://github.com/DerGoogler/AntiAMTS-Magisk
6 changes: 6 additions & 0 deletions update.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": "1.2.5",
"versionCode": 125,
"zipUrl": "https://github.com/LittleDipshit/AntiAMTS-Magisk/releases/download/1.0/amtsmagisk-v1.2.5-(125).zip",
"changelog": "https://raw.githubusercontent.com/Googlers-Repo/AntiAMTS-Magisk/master/README.md"
}

0 comments on commit 728bd79

Please sign in to comment.