@@ -17,6 +17,7 @@ SYSTEMS=(
1717 [armv7l-linux]=linux-armv7l
1818 [aarch64-linux]=linux-arm64
1919 [x86_64-darwin]=darwin-x64
20+ [aarch64-darwin]=darwin-arm64
2021)
2122
2223hashfile="$(nix-prefetch-url --print-path "https://github.com/electron/electron/releases/download/v${VERSION}/SHASUMS256.txt" 2>/dev/null | tail -n1)"
@@ -27,8 +28,10 @@ headers="$(nix-prefetch-url "https://atom.io/download/electron/v${VERSION}/node-
2728echo " electron_${VERSION%%.*} = mkElectron \"${VERSION}\" {"
2829
2930for S in "${!SYSTEMS[@]}"; do
30− hash="$(grep " *electron-v${VERSION}-${SYSTEMS[$S]}.zip$" "$hashfile"|cut -f1 -d' ')"
31− echo " $S = \"$hash\";"
31+ hash="$(grep " *electron-v${VERSION}-${SYSTEMS[$S]}.zip$" "$hashfile"|cut -f1 -d' ' || :)"
32+ if [[ -n $hash ]]; then
33+ echo " $S = \"$hash\";"
34+ fi
3235done
3336
3437echo " headers = \"$headers\";"