Skip to main content
Question

Access Console installer macOS to .pkg format

  • May 26, 2026
  • 1 reply
  • 5 views

Forum|alt.badge.img+3

Good afternoon community,

I would like to ask a question regarding the installation of BeyondTrust Access Console on macOS devices.

Currently, the Access Console installer for macOS is only available for download in .dmg format. We contacted BeyondTrust directly, and they confirmed that there is currently no native .pkg version officially available.

However, they also mentioned that some customers have successfully created their own conversions to .pkg format for corporate deployments, although BeyondTrust does not provide support for that process.

I would like to know if anyone in the community has previously completed this process and could share any recommendations, experiences, or best practices for correctly generating the .pkg file and deploying it while avoiding corruption issues or installation failures.

I look forward to your comments, and thank you very much in advance.

 

1 reply

Forum|alt.badge.img+4
  • Guru
  • May 27, 2026

Hi ​@Josmay 

I would assume since others have done it, this could work using Apple’s own pkgbuild tool.

1. 
mkdir -p payload/Applications

2.
cp -R MyApp.app payload/Applications/

3.
pkgbuild \
--root payload \
--identifier com.yourcompany.myapp \
--version 1.0.0 \
MyApp.pkg

Scripting it.

#!/bin/bash

set -e

# -----------------------------
# convert-app-to-pkg.sh
# Converts any .app bundle into a .pkg installer
# -----------------------------

if [ -z "$1" ]; then
echo "Usage: $0 /path/to/MyApp.app"
exit 1
fi

APP_PATH="$1"

# Validate input
if [ ! -d "$APP_PATH" ] || [[ "$APP_PATH" != *.app ]]; then
echo "Error: '$APP_PATH' is not a valid .app bundle"
exit 1
fi

APP_NAME=$(basename "$APP_PATH" .app)
PKG_NAME="${APP_NAME}.pkg"

# Extract version from Info.plist (fallback to 1.0)
VERSION=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" \
"$APP_PATH/Contents/Info.plist" 2>/dev/null || echo "1.0")

IDENTIFIER="com.$USER.${APP_NAME,,}"

# Create temp payload directory
WORKDIR=$(mktemp -d)
mkdir -p "$WORKDIR/Applications"

echo "Copying app bundle..."
cp -R "$APP_PATH" "$WORKDIR/Applications/"

echo "Building PKG..."
pkgbuild \
--root "$WORKDIR" \
--identifier "$IDENTIFIER" \
--version "$VERSION" \
--install-location "/" \
"$PKG_NAME"

echo "Cleaning up..."
rm -rf "$WORKDIR"

echo "----------------------------------------"
echo "PKG created successfully:"
echo " $PKG_NAME"
echo "Identifier: $IDENTIFIER"
echo "Version: $VERSION"
echo "----------------------------------------"

KR Jens