Skip to content

Commit

Permalink
Next try to debug DMG extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
marceltaeumel committed Jan 4, 2022
1 parent 016d696 commit 346e786
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
9 changes: 9 additions & 0 deletions helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,16 @@ download_and_extract_vm() {
local volume=$(hdiutil attach "${filepath}" | tail -1 | awk '{print $3}')
mkdir -p "${target}"
cp -R "${volume}/"* "${target}/"
echo "Extracted into ${target}/ from ${volume}/"
pushd ${volume}
ls -lisa
popd
pushd ${target}
ls -lisa
popd

diskutil unmount "${volume}"

else
echo "Unknown archive format." && exit 77
fi
Expand Down
4 changes: 2 additions & 2 deletions helpers_bundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ download_and_extract_all_vms_rc() {
if is_64bit; then
download_and_extract_vm "macOS (x64)" \
"${VM_RC_BASE}/${VM_RC_TAG}/squeak.cog.spur_macos64x64.dmg" \
"${TMP_PATH}/${VM_MAC_X86}/Squeak.app"
"${TMP_PATH}/${VM_MAC_X86}"
download_and_extract_vm "macOS (ARMv8)" \
"${VM_RC_BASE}/${VM_RC_TAG}/squeak.cog.spur_macos64ARMv8.dmg" \
"${TMP_PATH}/${VM_MAC_ARM}/Squeak.app"
"${TMP_PATH}/${VM_MAC_ARM}"
download_and_extract_vm "Linux (x64)" \
"${VM_RC_BASE}/${VM_RC_TAG}/squeak.cog.spur_linux64x64.tar.gz" \
"${TMP_PATH}/${VM_LIN_X86}"
Expand Down
10 changes: 0 additions & 10 deletions prepare_bundle_macos_x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ else
echo "Unable to locate macOS VM." && exit 1
fi

pushd "${APP_PATH}"
ls -lisa
popd
pushd "${CONTENTS_PATH}"
ls -lisa
popd
pushd "${RESOURCES_PATH}"
ls -lisa
popd

copy_resources "${RESOURCES_PATH}"

echo "...merging template..."
Expand Down

0 comments on commit 346e786

Please sign in to comment.