diff --git a/.github/workflows/build-appimage.yml b/.github/workflows/build-appimage.yml index 0d8e146..37bac0e 100644 --- a/.github/workflows/build-appimage.yml +++ b/.github/workflows/build-appimage.yml @@ -8,7 +8,10 @@ on: branches: [ main ] paths: [ 'AppImage/**' ] workflow_dispatch: - + +permissions: + contents: write + jobs: build: runs-on: ubuntu-22.04 @@ -54,3 +57,30 @@ jobs: name: ProxMenux-${{ steps.version.outputs.VERSION }}-AppImage path: AppImage/dist/*.AppImage retention-days: 30 + + - name: Generate SHA256 checksum + run: | + cd AppImage/dist + sha256sum *.AppImage > ProxMenux-Monitor.AppImage.sha256 + echo "Generated SHA256:" + cat ProxMenux-Monitor.AppImage.sha256 + + - name: Upload AppImage and checksum to /AppImage folder in main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + git fetch origin main + git checkout main + + rm -f AppImage/*.AppImage AppImage/*.sha256 || true + + # Copy new files + cp AppImage/dist/*.AppImage AppImage/ + cp AppImage/dist/ProxMenux-Monitor.AppImage.sha256 AppImage/ + + git add AppImage/*.AppImage AppImage/*.sha256 + git commit -m "Update AppImage build ($(date +'%Y-%m-%d %H:%M:%S'))" || echo "No changes to commit" + git push origin main diff --git a/AppImage/ProxMenux-1.0.0.AppImage b/AppImage/ProxMenux-1.0.0.AppImage new file mode 100755 index 0000000..631302f Binary files /dev/null and b/AppImage/ProxMenux-1.0.0.AppImage differ diff --git a/AppImage/ProxMenux-Monitor.AppImage.sha256 b/AppImage/ProxMenux-Monitor.AppImage.sha256 new file mode 100644 index 0000000..e322e6e --- /dev/null +++ b/AppImage/ProxMenux-Monitor.AppImage.sha256 @@ -0,0 +1 @@ +e896eb10de4bf990d31c1d8357289f64cbce481921647f2be53efb850d0b73b2 ProxMenux-1.0.0.AppImage