agent-ecosystem/resources/afterInstall.sh
matt e570bbebde
feat(package): add afterInstall script for chrome-sandbox permissions (#27) (#28)
- Updated package.json to include an afterInstall script that adjusts permissions for the chrome-sandbox on Linux.
- Added new afterInstall.sh script to ensure proper ownership and permissions for the sandbox file, enhancing security and functionality.
2026-02-20 01:27:10 +09:00

10 lines
282 B
Bash
Executable file

#!/bin/bash
# Fix chrome-sandbox permissions for SUID sandbox on Linux
# See: https://github.com/electron/electron/issues/17972
SANDBOX_PATH="/opt/${productFilename}/chrome-sandbox"
if [ -f "$SANDBOX_PATH" ]; then
chown root:root "$SANDBOX_PATH"
chmod 4755 "$SANDBOX_PATH"
fi