Skip to content

Commit 44907e4

Browse files
committed
Release v1.0.1: Complete Patchwork rebrand with automated release workflow
1 parent f40c3b2 commit 44907e4

225 files changed

Lines changed: 1838 additions & 1482 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yaml

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
name: Build and Release APK
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
workflow_dispatch:
8+
inputs:
9+
version:
10+
description: 'Version tag (e.g., v1.0.1)'
11+
required: true
12+
default: 'v1.0.1'
13+
14+
jobs:
15+
build:
16+
name: Build Release APK
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Set up JDK 17
26+
uses: actions/setup-java@v4
27+
with:
28+
distribution: 'temurin'
29+
java-version: '17'
30+
cache: 'gradle'
31+
32+
- name: Grant execute permission for gradlew
33+
run: chmod +x gradlew
34+
35+
- name: Setup Android SDK
36+
uses: android-actions/setup-android@v3
37+
38+
- name: Build Release APK
39+
run: ./gradlew assembleRelease --no-daemon --stacktrace
40+
41+
- name: Sign APK
42+
id: sign_apk
43+
uses: r0adkll/sign-android-release@v1
44+
with:
45+
releaseDirectory: app/build/outputs/apk/release
46+
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
47+
alias: ${{ secrets.ALIAS }}
48+
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
49+
keyPassword: ${{ secrets.KEY_PASSWORD }}
50+
env:
51+
BUILD_TOOLS_VERSION: "34.0.0"
52+
53+
- name: Rename APK
54+
run: |
55+
VERSION="${{ github.ref_name }}"
56+
if [ -z "$VERSION" ]; then
57+
VERSION="${{ github.event.inputs.version }}"
58+
fi
59+
VERSION_NUM="${VERSION#v}"
60+
mv app/build/outputs/apk/release/app-release-unsigned-signed.apk "patchwork-${VERSION_NUM}.apk"
61+
62+
- name: Generate Changelog
63+
id: changelog
64+
run: |
65+
VERSION="${{ github.ref_name }}"
66+
if [ -z "$VERSION" ]; then
67+
VERSION="${{ github.event.inputs.version }}"
68+
fi
69+
70+
echo "## 🎉 Patchwork ${VERSION}" > CHANGELOG.md
71+
echo "" >> CHANGELOG.md
72+
echo "### What's New" >> CHANGELOG.md
73+
echo "" >> CHANGELOG.md
74+
75+
# Get commits since last tag
76+
LAST_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
77+
if [ -n "$LAST_TAG" ]; then
78+
git log ${LAST_TAG}..HEAD --pretty=format:"- %s" --no-merges >> CHANGELOG.md
79+
else
80+
echo "- Initial release of Patchwork! 🚀" >> CHANGELOG.md
81+
echo "- Complete Android power user toolkit" >> CHANGELOG.md
82+
echo "- 50+ features for customization and automation" >> CHANGELOG.md
83+
fi
84+
85+
echo "" >> CHANGELOG.md
86+
echo "" >> CHANGELOG.md
87+
echo "### 📱 Installation" >> CHANGELOG.md
88+
echo "" >> CHANGELOG.md
89+
echo "1. Download \`patchwork-${VERSION#v}.apk\`" >> CHANGELOG.md
90+
echo "2. Enable installation from unknown sources" >> CHANGELOG.md
91+
echo "3. Install and enjoy!" >> CHANGELOG.md
92+
echo "" >> CHANGELOG.md
93+
echo "### 📋 Requirements" >> CHANGELOG.md
94+
echo "" >> CHANGELOG.md
95+
echo "- Android 8.0 (Oreo) or higher" >> CHANGELOG.md
96+
echo "- Shizuku or Root (optional, for advanced features)" >> CHANGELOG.md
97+
echo "" >> CHANGELOG.md
98+
echo "### 🔗 Links" >> CHANGELOG.md
99+
echo "" >> CHANGELOG.md
100+
echo "- [Documentation](https://github.com/brittytino/patchwork#readme)" >> CHANGELOG.md
101+
echo "- [Telegram Community](https://t.me/tidwib)" >> CHANGELOG.md
102+
echo "- [Report Issues](https://github.com/brittytino/patchwork/issues)" >> CHANGELOG.md
103+
104+
cat CHANGELOG.md
105+
106+
- name: Create GitHub Release
107+
uses: softprops/action-gh-release@v1
108+
with:
109+
files: patchwork-*.apk
110+
body_path: CHANGELOG.md
111+
draft: false
112+
prerelease: false
113+
token: ${{ secrets.GITHUB_TOKEN }}
114+
tag_name: ${{ github.ref_name || github.event.inputs.version }}
115+
name: Patchwork ${{ github.ref_name || github.event.inputs.version }}
116+
117+
- name: Upload APK as Artifact
118+
uses: actions/upload-artifact@v4
119+
with:
120+
name: patchwork-apk
121+
path: patchwork-*.apk
122+
retention-days: 90

.github/workflows/release.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Build and Release APK
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: gradle
22+
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
26+
- name: Build Release APK
27+
run: ./gradlew assembleRelease --stacktrace
28+
29+
- name: Rename APK
30+
run: |
31+
mv app/build/outputs/apk/release/app-release-unsigned.apk app/build/outputs/apk/release/patchwork-${{ github.ref_name }}.apk
32+
33+
- name: Create Release
34+
uses: softprops/action-gh-release@v1
35+
with:
36+
files: app/build/outputs/apk/release/patchwork-${{ github.ref_name }}.apk
37+
generate_release_notes: true
38+
draft: false
39+
prerelease: false
40+
body: |
41+
## Patchwork ${{ github.ref_name }}
42+
43+
### What's New
44+
- First official release 🎉
45+
- Complete app rename from Essentials to Patchwork
46+
- All features fully functional
47+
- 30+ languages supported
48+
49+
### Features
50+
- 🛠️ **Productivity & Tools**: Maps Power Saving, Travel Alarm, DIY Automation, Button Remap, App Freezing, and more
51+
- 🔒 **Security & Privacy**: App Lock, Screen Locked Security
52+
- 🎨 **Visual Customization**: Status Bar Icons, Notification Lighting, Dynamic Night Light
53+
- ⚡ **Quick Settings Tiles**: 20+ useful system toggles
54+
- 🎹 **Bonus**: Custom keyboard, Watermark, Batteries monitor
55+
56+
### Requirements
57+
- Android 8.0 (Oreo) or higher
58+
- Recommended: Android 13+ for full feature support
59+
- Optional: Shizuku or Root for advanced features
60+
61+
### Installation
62+
1. Download `patchwork-${{ github.ref_name }}.apk` below
63+
2. Enable "Install from unknown sources" in your device settings
64+
3. Install the APK
65+
4. Grant permissions as needed for features you want to use
66+
67+
### Developer
68+
Built with ❤️ by [Tino Britty J](https://github.com/brittytino)
69+
70+
### Links
71+
- 📖 [Full Documentation](https://github.com/brittytino/patchwork/blob/main/README.md)
72+
- 💬 [Telegram Community](https://t.me/tidwib)
73+
- 🐛 [Report Issues](https://github.com/brittytino/patchwork/issues)
74+
75+
---
76+
77+
**Note**: This app uses advanced system APIs. While designed for safety, some features are experimental. Use responsibly.
78+
env:
79+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)