- Leave the downloaded file in Downloads, without extracting or renaming it. Wait for the download to finish.
- Open Terminal: press ⌘ + Space, type Terminal and press Return.
- Copy the entire block, paste it into the terminal and press Enter. It only calculates and compares the hash; it does not install or open the App.
- Read the result below the pasted block. This may take a few seconds.
The block contains the command to paste. The OK or KO result appears after you run it.
Paste this entire block
sh <<'CUVEX_LOCAL_CHECK'
set -u
folder="$HOME/Downloads"
file="$folder/"Cuvex-Mirror-1.0.0-beta.8-Android-EQUIPO.apk
expected=bebdf0247a2f2926b5ee3f9948ab98f2d5e1c466f43b68af89f1228c1ff091e8
printf "%s\n" 'CHECKING YOUR CUVEX DOWNLOAD…'
printf "%s\n" "Downloaded file: $file"
if [ ! -f "$file" ]; then
printf "%s\n" 'KO (FAIL) — FILE NOT FOUND'
printf "%s\n" 'Check that the download is complete and the file is in Downloads with its original name.'
exit 1
fi
if command -v sha256sum >/dev/null 2>&1; then
actual=$(sha256sum -- "$file" 2>/dev/null | awk '{print $1}')
elif command -v shasum >/dev/null 2>&1; then
actual=$(shasum -a 256 -- "$file" 2>/dev/null | awk '{print $1}')
else
printf "%s\n" 'KO (FAIL) — DO NOT OPEN THIS FILE'
printf "%s\n" 'The file does not match the published hash. Download it again from Cuvex and repeat the check. If it fails again, contact sato@cuvex.io.'
exit 1
fi
printf "\n========================================\n"
printf "%s\n" 'CUVEX VERIFICATION RESULT'
if [ "$actual" = "$expected" ]; then
printf "%s\n" 'OK — FILE VERIFIED'
printf "%s\n" 'The file matches the SHA-256 we published for this version. The integrity check completed successfully.'
exit 0
fi
printf "%s\n" 'KO (FAIL) — DO NOT OPEN THIS FILE'
printf "%s\n" 'The file does not match the published hash. Download it again from Cuvex and repeat the check. If it fails again, contact sato@cuvex.io.'
exit 1
CUVEX_LOCAL_CHECK
Expected result after running
OK — FILE VERIFIEDThe file matches the SHA-256 we published for this version. The integrity check completed successfully.
KO (FAIL) — DO NOT OPEN THIS FILEThe file does not match the published hash. Download it again from Cuvex and repeat the check. If it fails again, contact sato@cuvex.io.
