From 0d778c0c53ef67499c042a23ea01b6d796dbd1af Mon Sep 17 00:00:00 2001 From: jegly Date: Fri, 27 Mar 2026 13:46:20 +1100 Subject: [PATCH] fix: correct yaml syntax in workflow --- .github/workflows/build.yml | 48 ++++++++++--------------------------- 1 file changed, 12 insertions(+), 36 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77a9292..ec0f7c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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