From bf06795962cdc6ebdc2e052cf68a03292218ebe2 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Wed, 17 May 2023 00:19:45 +0800 Subject: [PATCH] Add checksum on compiled binaries --- .github/workflows/compile-binary.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile-binary.yml b/.github/workflows/compile-binary.yml index 6bfe559..a8f99b4 100644 --- a/.github/workflows/compile-binary.yml +++ b/.github/workflows/compile-binary.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: '3.10' - name: Install dependencies @@ -26,6 +26,7 @@ jobs: run: | python -m nuitka --onefile --include-data-file=./Whatsapp_Chat_Exporter/whatsapp.html=./Whatsapp_Chat_Exporter/whatsapp.html --follow-imports Whatsapp_Chat_Exporter/__main__.py cp __main__.bin wtsexporter_linux_x64 + sha256sum wtsexporter_linux_x64 - uses: actions/upload-artifact@v3 with: name: binary-linux @@ -37,7 +38,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: '3.10' - name: Install dependencies @@ -49,6 +50,7 @@ jobs: run: | python -m nuitka --onefile --include-data-file=./Whatsapp_Chat_Exporter/whatsapp.html=./Whatsapp_Chat_Exporter/whatsapp.html --assume-yes-for-downloads --follow-imports Whatsapp_Chat_Exporter\__main__.py copy __main__.exe wtsexporter_x64.exe + Get-FileHash wtsexporter_x64.exe - uses: actions/upload-artifact@v3 with: name: binary-windows @@ -60,7 +62,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v4 with: python-version: '3.10' - name: Install dependencies @@ -72,6 +74,7 @@ jobs: run: | python -m nuitka --onefile --include-data-file=./Whatsapp_Chat_Exporter/whatsapp.html=./Whatsapp_Chat_Exporter/whatsapp.html --follow-imports Whatsapp_Chat_Exporter/__main__.py cp __main__.bin wtsexporter_macos_x64 + shasum -a 256 wtsexporter_macos_x64 - uses: actions/upload-artifact@v3 with: name: binary-macos