No, no dragging would need to be required. A script can mount the dmg, then copy the contents from the mount location, typically: /Volumes/pdextern-1.2.3/

Something like:

    mkdir  ~/Documents/Pd/externals/pdextern-1.2.3/
    hdituil mount pdextern-1.2.3.dmg
    cp -R  /Volumes/pdextern-1.2.3/* ~/Documents/Pd/externals/pdextern-1.2.3/
    hdiutil unmount  /Volumes/pdextern-1.2.3

It's a couple more steps than unzipping a zip file, but results in the same thing.

The important part is that the dmg needs to have its volume name set the same as the filename since the volume name is used when mounting.

On Nov 27, 2022, at 3:46 PM, Alexandre Torres Porres <porres@gmail.com> wrote:

Em dom., 27 de nov. de 2022 às 08:53, Dan Wilcox <danomatika@gmail.com> escreveu:
I assume deken cannot currently extract DMGs but it might be good if we can offer that as an option, ie. zip the dmg into the .dek, then the dmg is unzipped, then mounted using the system's hdiutil.

We'd need then to drag the folder from the mounted dmg to the 'externals' folder, right? That does not seem optimal :/ 



 

On Nov 27, 2022, at 12:00 PM, pd-list-request@lists.iem.at wrote:

Message: 1
Date: Sat, 26 Nov 2022 15:36:28 +0100
From: KHM Mail <t.hartmann@khm.de>
To: IOhannes m zm?lnig <zmoelnig@iem.at>
Cc: pd-list@lists.iem.at
Subject: Re: [PD] http get/post request in pd. how to?
Message-ID: <7A28C93B-343F-4D88-9E95-1F5EECC99326@khm.de>
Content-Type: text/plain; charset="utf-8"

thanks! Installation works. 

Installed this package:
304_2022-11-20_purest_json[v2.0.0-alpha](Darwin-amd64-32)(Darwin-arm64-32).dek

It?s quite some work to confirm all security warnings  (MacOS 12.5.1) ? hihi



_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list

--------
Dan Wilcox
@danomatika
danomatika.com
robotcowboy.com