dfrankland / nur-packages

My personal NUR repository
MIT License
2 stars 0 forks source link

Google Chrome DMG won't open with `undmg` #29

Closed dfrankland closed 1 year ago

dfrankland commented 1 year ago

Use https://github.com/jacekszymanski/nixcasks/blob/b1dbcbabb04bfb434002eaee687ada37bfab0051/unpackdmg.sh ?

#!/bin/bash

# from https://discourse.nixos.org/t/help-with-error-only-hfs-file-systems-are-supported-on-ventura/25873/8
echo "File to unpack: $src"
if ! [[ "$src" =~ \.[Dd][Mm][Gg]$ ]]; then exit 1; fi

mnt=$(mktemp -d -t ci-XXXXXXXXXX)

function finish {
  rm -rf $mnt
}
trap finish EXIT

if ! "$sevenzip"/bin/7zz t $src >/dev/null 2>&1; then

  cnv=$mnt/$(basename $src)

  echo "converting $mnt"
  /usr/bin/hdiutil convert -format UDBZ -o $cnv $src
  src=$cnv

fi
echo "unpacking $src"
"$sevenzip"/bin/7zz  -snld x $src
dfrankland commented 1 year ago

unblocked by https://github.com/dfrankland/nur-packages/commit/547f500dc20b4952e9b92c20a03823b85c160977

fixed by https://github.com/dfrankland/nur-packages/commit/dd9f726f59da4d9487b8f107080d0d840f923756