mirror of
https://github.com/github/codeql-action.git
synced 2025-12-26 17:20:10 +08:00
6 lines
372 B
JavaScript
6 lines
372 B
JavaScript
import {runAppleScriptAsync} from 'run-applescript';
|
|
|
|
export default async function bundleName(bundleId) {
|
|
return runAppleScriptAsync(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
|
|
}
|