fix: correct yaml syntax in workflow

This commit is contained in:
jegly 2026-03-27 13:46:20 +11:00
commit 0d778c0c53

View file

@ -71,16 +71,7 @@ jobs:
run: |
mkdir -p build
if [ ! -f build/appicon.png ]; then
python3 -c "
import struct, zlib
def png(w, h, color):
def chunk(name, data):
c = zlib.crc32(name + data) & 0xffffffff
return struct.pack('>I', len(data)) + name + data + struct.pack('>I', c)
raw = b''.join(b'\x00' + bytes(color) * w for _ in range(h))
return b'\x89PNG\r\n\x1a\n' + chunk(b'IHDR', struct.pack('>IIBBBBB', w, h, 8, 2, 0, 0, 0)) + chunk(b'IDAT', zlib.compress(raw)) + chunk(b'IEND', b'')
open('build/appicon.png', 'wb').write(png(256, 256, [34, 197, 94]))
"
python3 -c "import struct,zlib; chunk=lambda n,d: struct.pack('>I',len(d))+n+d+struct.pack('>I',zlib.crc32(n+d)&0xffffffff); raw=b''.join(b'\x00'+bytes([34,197,94])*256 for _ in range(256)); open('build/appicon.png','wb').write(b'\x89PNG\r\n\x1a\n'+chunk(b'IHDR',struct.pack('>IIBBBBB',256,256,8,2,0,0,0))+chunk(b'IDAT',zlib.compress(raw))+chunk(b'IEND',b''))"
fi
if [ ! -f build/atk.desktop ]; then
printf '[Desktop Entry]\nType=Application\nName=ATK\nGenericName=Android Toolkit\nComment=All-in-one ADB GUI for Android power users and bug hunters\nExec=/opt/atk/ATK\nIcon=atk\nCategories=Development;Utility;\nTerminal=false\nStartupWMClass=ATK\nKeywords=android;adb;fastboot;debloat;logcat;flash;\n' > build/atk.desktop
@ -89,37 +80,22 @@ jobs:
- name: Package .deb
run: |
nfpm pkg --packager deb --target build/
# Rename to include version
mv build/atk_*.deb build/ATK-${{ github.ref_name }}-amd64.deb
mv build/atk_*.deb "build/ATK-${{ github.ref_name }}-amd64.deb" || true
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: "atk-linux-${{ github.ref_name }}"
path: |
build/bin/ATK
build/*.deb
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: ATK ${{ github.ref_name }}
body: |
## ATK — Android Toolkit ${{ github.ref_name }}
An all-in-one ADB GUI for Android power users, security researchers, and bug hunters.
### Install
**Debian/Ubuntu (.deb):**
```bash
sudo dpkg -i ATK-${{ github.ref_name }}-amd64.deb
atk
```
**Or run the binary directly:**
```bash
chmod +x ATK
./ATK
```
### Requirements
```bash
sudo apt install adb fastboot libwebkit2gtk-4.1-0
```
name: "ATK ${{ github.ref_name }}"
body: "ATK Android Toolkit ${{ github.ref_name }} - Install: sudo dpkg -i ATK-${{ github.ref_name }}-amd64.deb && atk - Requires: sudo apt install adb fastboot libwebkit2gtk-4.1-0"
files: |
build/ATK-${{ github.ref_name }}-amd64.deb
build/bin/ATK