Created
January 24, 2025 06:53
-
-
Save OnCloud125252/25d0c2ab5f43f7d4c811954c3421663a to your computer and use it in GitHub Desktop.
Check if app is based on Electron on macOS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scan_dir="/Applications" && find "$scan_dir" -name "*.app" -prune -exec sh -c ' | |
app_path="$1" | |
if [ -d "$app_path/Contents/Frameworks" ]; then | |
if strings "$app_path/Contents/Resources/app.asar" 2>/dev/null | grep -q "electron"; then | |
echo "$app_path is an Electron app (based on App/Contents/Resources/app.asar)" | |
elif ls "$app_path/Contents/Frameworks/"* 2>/dev/null | grep -qi "Electron Framework"; then | |
echo "$app_path is an Electron app (based on App/Contents/Frameworks/)" | |
fi | |
fi | |
' _ {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment