diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 318d958..bd1934d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -128,6 +128,12 @@ jobs: phishingclub \ phishingclub.sig + # create legacy-named package (amd64) for backward compatibility with pre-arm versions + tar -czf packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz \ + -C build/amd64 \ + phishingclub \ + phishingclub.sig + - name: Build and push multi-arch Docker image uses: docker/build-push-action@v5 with: @@ -186,6 +192,7 @@ jobs: gh release create ${{ steps.get_version.outputs.TAG }} \ ./packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_amd64.tar.gz \ ./packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_arm64.tar.gz \ + ./packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz \ --title "PhishingClub ${{ steps.get_version.outputs.TAG }}" \ --notes "${{ steps.get_release_notes.outputs.NOTES }}" diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index dbe81c1..a72fdba 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -150,6 +150,20 @@ jobs: echo "✅ ARM64 package created without signature" fi + # create legacy-named package (amd64) for backward compatibility with pre-arm versions + if [ -f build/amd64/phishingclub.sig ]; then + tar -czf packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz \ + -C build/amd64 \ + phishingclub \ + phishingclub.sig + echo "✅ Legacy package created with signature" + else + tar -czf packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz \ + -C build/amd64 \ + phishingclub + echo "✅ Legacy package created without signature" + fi + - name: Build and push test multi-arch Docker image uses: docker/build-push-action@v5 with: @@ -210,4 +224,5 @@ jobs: build/arm64/phishingclub.sig packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_amd64.tar.gz packages/phishingclub_${{ steps.get_version.outputs.VERSION }}_linux_arm64.tar.gz + packages/phishingclub_${{ steps.get_version.outputs.VERSION }}.tar.gz retention-days: 2