rancher-sandbox / rancher-desktop

Container Management and Kubernetes on the Desktop
https://rancherdesktop.io
Apache License 2.0
5.84k stars 272 forks source link

sudo-prompt requires Rosetta #7336

Closed jandubois closed 3 days ago

jandubois commented 1 month ago

We use sudo-prompt to ask for the users password when needed to execute privileged commands.

On macOS the module uses AppleScript to prompt for the password:

do shell script "./sudo-prompt-script" with administrator privileges

This script is compiled into an applet, but the applet does not include an aarch64 binary:

./MacOS/applet (for architecture i386): Mach-O executable i386
./MacOS/applet (for architecture x86_64):   Mach-O 64-bit executable x86_64

That means the script will fail unless Rosetta is installed:

/bin/sh: ./applet: Bad CPU type in executable

The NPM version hasn't been updated in 4 years, so maybe we need to build this module ourselves?

jandubois commented 1 month ago

The NPM version hasn't been updated in 4 years…

Also:

This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

jandubois commented 3 days ago

Fixed by #7415