From 53ff66c3173257cec84d5a0c314957122d1173a7 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Mon, 18 Apr 2022 00:41:43 +0200 Subject: [PATCH 1/3] fix: update files for relase workflow --- .github/workflows/trigger_release.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/trigger_release.yml b/.github/workflows/trigger_release.yml index 149cb632..cea7bc6c 100644 --- a/.github/workflows/trigger_release.yml +++ b/.github/workflows/trigger_release.yml @@ -33,6 +33,7 @@ jobs: - name: Package artifacts properly run: | mv ${{ github.workspace }}/PolyMC-source PolyMC-${{ env.VERSION }} + mv PolyMC-Linux-Portable*/PolyMC-portable.tar.gz PolyMC-Linux-Portable-{{env.VERSION}}.tar.gz mv PolyMC-Linux*/PolyMC.tar.gz PolyMC-Linux-${{ env.VERSION }}.tar.gz mv PolyMC-*.AppImage/PolyMC-*.AppImage PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage mv PolyMC-macOS*/PolyMC.tar.gz PolyMC-macOS-${{ env.VERSION }}.tar.gz @@ -42,9 +43,9 @@ jobs: for d in PolyMC-Windows-*; do cd "${d}" || continue ARCH="$(echo -n ${d} | cut -d '-' -f 3)" - PORT="$(echo -n ${d} | grep -o portable || true)" + PORT="$(echo -n ${d} | grep -o Portable || true)" NAME="PolyMC-Windows-${ARCH}" - test -z "${PORT}" || NAME="${NAME}-portable" + test -z "${PORT}" || NAME="${NAME}-Portable" zip -r -9 "../${NAME}-${{ env.VERSION }}.zip" * cd .. done @@ -61,10 +62,11 @@ jobs: prerelease: false files: | PolyMC-Linux-${{ env.VERSION }}.tar.gz + PolyMC-Linux-Portable-${{ env.VERSION }}.tar.gz PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage PolyMC-Windows-i686-${{ env.VERSION }}.zip - PolyMC-Windows-i686-portable-${{ env.VERSION }}.zip + PolyMC-Windows-i686-Portable-${{ env.VERSION }}.zip PolyMC-Windows-x86_64-${{ env.VERSION }}.zip - PolyMC-Windows-x86_64-portable-${{ env.VERSION }}.zip + PolyMC-Windows-x86_64-Portable-${{ env.VERSION }}.zip PolyMC-macOS-${{ env.VERSION }}.tar.gz PolyMC-${{ env.VERSION }}.tar.gz From c3524a9d5706f09502f3d69175b867920248f2ba Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Mon, 18 Apr 2022 12:45:25 +0200 Subject: [PATCH 2/3] fix: bundle binary tarball as user root --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c22baed3..3f2c07a5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -171,7 +171,7 @@ jobs: cmake --install ${{ env.BUILD_DIR }} --prefix ${{ env.INSTALL_DIR }} cd ${{ env.INSTALL_DIR }} - tar -czf ../PolyMC.tar.gz * + tar --owner root --group root -czf ../PolyMC.tar.gz * - name: Package (Linux, portable) if: runner.os == 'Linux' From 4a3d94aaf9092a5f4b53690568a29597a41a3619 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Tue, 19 Apr 2022 19:06:17 +0200 Subject: [PATCH 3/3] fix: fix filename of linux portable --- .github/workflows/trigger_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/trigger_release.yml b/.github/workflows/trigger_release.yml index cea7bc6c..ff0d2b3f 100644 --- a/.github/workflows/trigger_release.yml +++ b/.github/workflows/trigger_release.yml @@ -33,7 +33,7 @@ jobs: - name: Package artifacts properly run: | mv ${{ github.workspace }}/PolyMC-source PolyMC-${{ env.VERSION }} - mv PolyMC-Linux-Portable*/PolyMC-portable.tar.gz PolyMC-Linux-Portable-{{env.VERSION}}.tar.gz + mv PolyMC-Linux-Portable*/PolyMC-portable.tar.gz PolyMC-Linux-Portable-${{ env.VERSION }}.tar.gz mv PolyMC-Linux*/PolyMC.tar.gz PolyMC-Linux-${{ env.VERSION }}.tar.gz mv PolyMC-*.AppImage/PolyMC-*.AppImage PolyMC-Linux-${{ env.VERSION }}-x86_64.AppImage mv PolyMC-macOS*/PolyMC.tar.gz PolyMC-macOS-${{ env.VERSION }}.tar.gz