Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use SHA256SUMS for release checksums

Manav Rathic5557781fa2c
diff --git a/.github/workflows/auth-build.yml b/.github/workflows/auth-build.yml
index 88547991f0..4d933e4e20 100644
--- a/.github/workflows/auth-build.yml
+++ b/.github/workflows/auth-build.yml
@@ -165,13 +165,13 @@ jobs:
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD_AUTH }}
- name: Generate checksums
- run: sha256sum artifacts/ente-auth-*.apk > artifacts/sha256sum-apk
+ run: cd artifacts && sha256sum ente-auth-*.apk > SHA256SUMS-android
- name: Upload checksum snippet
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
- name: auth-sha256sum-android
- path: mobile/apps/auth/artifacts/sha256sum-apk
+ name: auth-SHA256SUMS-android
+ path: mobile/apps/auth/artifacts/SHA256SUMS-android
- name: Mint nightly token
id: nightly_token
@@ -294,13 +294,13 @@ jobs:
mv dist/**/*-*-linux.deb "artifacts/${ARTIFACT_STEM}-x86_64.deb"
- name: Generate checksums
- run: sha256sum artifacts/ente-auth-*.deb artifacts/ente-auth-*.rpm artifacts/ente-auth-*.AppImage > artifacts/sha256sum-linux
+ run: cd artifacts && sha256sum ente-auth-*.deb ente-auth-*.rpm ente-auth-*.AppImage > SHA256SUMS-linux
- name: Upload checksum snippet
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
- name: auth-sha256sum-linux
- path: mobile/apps/auth/artifacts/sha256sum-linux
+ name: auth-SHA256SUMS-linux
+ path: mobile/apps/auth/artifacts/SHA256SUMS-linux
- name: Mint nightly token
id: nightly_token
@@ -446,14 +446,14 @@ jobs:
shell: pwsh
- name: Generate checksums
- run: sha256sum artifacts/ente-auth-* > artifacts/sha256sum-windows
+ run: cd artifacts && sha256sum ente-auth-* > SHA256SUMS-windows
shell: bash
- name: Upload checksum snippet
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
- name: auth-sha256sum-windows
- path: mobile/apps/auth/artifacts/sha256sum-windows
+ name: auth-SHA256SUMS-windows
+ path: mobile/apps/auth/artifacts/SHA256SUMS-windows
- name: Mint nightly token
id: nightly_token
@@ -597,13 +597,13 @@ jobs:
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
- name: Generate checksums
- run: shasum -a 256 artifacts/ente-auth-* > artifacts/sha256sum-macos
+ run: cd artifacts && shasum -a 256 ente-auth-* > SHA256SUMS-macos
- name: Upload checksum snippet
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
- name: auth-sha256sum-macos
- path: mobile/apps/auth/artifacts/sha256sum-macos
+ name: auth-SHA256SUMS-macos
+ path: mobile/apps/auth/artifacts/SHA256SUMS-macos
- name: Mint nightly token
id: nightly_token
@@ -739,12 +739,12 @@ jobs:
- name: Download checksum snippets
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
- pattern: auth-sha256sum-*
+ pattern: auth-SHA256SUMS-*
path: checksums
merge-multiple: true
- name: Combine checksums
- run: cat checksums/sha256sum-* > sha256sum
+ run: sort -k2 checksums/SHA256SUMS-* > SHA256SUMS
- name: Point release tag at the successfully built commit
env:
@@ -767,14 +767,14 @@ jobs:
env:
GH_TOKEN: ${{ steps.nightly_token.outputs.token }}
RELEASE_TAG: ${{ needs.build-metadata.outputs.release_tag }}
- run: gh release upload "${RELEASE_TAG}" sha256sum --clobber --repo ente-io/nightly
+ run: gh release upload "${RELEASE_TAG}" SHA256SUMS --clobber --repo ente-io/nightly
- name: Upload checksum to RC draft
if: startsWith(github.ref_name, 'release/')
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ needs.build-metadata.outputs.release_tag }}
- run: gh release upload "${RELEASE_TAG}" sha256sum --clobber
+ run: gh release upload "${RELEASE_TAG}" SHA256SUMS --clobber
- name: Notify Discord
continue-on-error: true
diff --git a/.github/workflows/locker-build.yml b/.github/workflows/locker-build.yml
index 6c4232f8ce..2030ad8535 100644
--- a/.github/workflows/locker-build.yml
+++ b/.github/workflows/locker-build.yml
@@ -166,13 +166,13 @@ jobs:
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD_LOCKER }}
- name: Generate checksums
- run: sha256sum artifacts/ente-locker-*.apk > artifacts/sha256sum-apk
+ run: cd artifacts && sha256sum ente-locker-*.apk > SHA256SUMS-android
- name: Upload checksum snippet
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
- name: locker-sha256sum-android
- path: mobile/apps/locker/artifacts/sha256sum-apk
+ name: locker-SHA256SUMS-android
+ path: mobile/apps/locker/artifacts/SHA256SUMS-android
- name: Mint nightly token
id: nightly_token
@@ -323,12 +323,12 @@ jobs:
- name: Download checksum snippets
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
- pattern: locker-sha256sum-*
+ pattern: locker-SHA256SUMS-*
path: checksums
merge-multiple: true
- name: Combine checksums
- run: cat checksums/sha256sum-* > sha256sum
+ run: sort -k2 checksums/SHA256SUMS-* > SHA256SUMS
- name: Point release tag at the successfully built commit
env:
@@ -351,14 +351,14 @@ jobs:
env:
GH_TOKEN: ${{ steps.nightly_token.outputs.token }}
RELEASE_TAG: ${{ needs.build-metadata.outputs.release_tag }}
- run: gh release upload "${RELEASE_TAG}" sha256sum --clobber --repo ente-io/nightly
+ run: gh release upload "${RELEASE_TAG}" SHA256SUMS --clobber --repo ente-io/nightly
- name: Upload checksum to RC draft
if: startsWith(github.ref_name, 'release/')
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ needs.build-metadata.outputs.release_tag }}
- run: gh release upload "${RELEASE_TAG}" sha256sum --clobber
+ run: gh release upload "${RELEASE_TAG}" SHA256SUMS --clobber
- name: Notify Discord
continue-on-error: true
diff --git a/.github/workflows/photos-build.yml b/.github/workflows/photos-build.yml
index 25591ceaca..6ce055760d 100644
--- a/.github/workflows/photos-build.yml
+++ b/.github/workflows/photos-build.yml
@@ -162,13 +162,13 @@ jobs:
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD_PHOTOS }}
- name: Generate checksums
- run: sha256sum artifacts/ente-photos-*.apk > artifacts/sha256sum-apk
+ run: cd artifacts && sha256sum ente-photos-*.apk > SHA256SUMS-android
- name: Upload checksum snippet
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
- name: photos-sha256sum-android
- path: mobile/apps/photos/artifacts/sha256sum-apk
+ name: photos-SHA256SUMS-android
+ path: mobile/apps/photos/artifacts/SHA256SUMS-android
- name: Mint nightly token
id: nightly_token
@@ -321,12 +321,12 @@ jobs:
- name: Download checksum snippets
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
- pattern: photos-sha256sum-*
+ pattern: photos-SHA256SUMS-*
path: checksums
merge-multiple: true
- name: Combine checksums
- run: cat checksums/sha256sum-* > sha256sum
+ run: sort -k2 checksums/SHA256SUMS-* > SHA256SUMS
- name: Point release tag at the successfully built commit
env:
@@ -349,14 +349,14 @@ jobs:
env:
GH_TOKEN: ${{ steps.nightly_token.outputs.token }}
RELEASE_TAG: ${{ needs.build-metadata.outputs.release_tag }}
- run: gh release upload "${RELEASE_TAG}" sha256sum --clobber --repo ente-io/nightly
+ run: gh release upload "${RELEASE_TAG}" SHA256SUMS --clobber --repo ente-io/nightly
- name: Upload checksum to RC draft
if: startsWith(github.ref_name, 'release/')
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ needs.build-metadata.outputs.release_tag }}
- run: gh release upload "${RELEASE_TAG}" sha256sum --clobber
+ run: gh release upload "${RELEASE_TAG}" SHA256SUMS --clobber
- name: Notify Discord
continue-on-error: true