mirror of
https://github.com/mas-cli/mas
synced 2024-11-24 20:43:10 +00:00
a4b7a64e0d
Partial #638 Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
26 lines
485 B
Bash
Executable file
26 lines
485 B
Bash
Executable file
#!/bin/bash -e
|
|
#
|
|
# script/package_install
|
|
# mas
|
|
#
|
|
# Installs the mas distribution package. Requires sudo access.
|
|
#
|
|
|
|
mas_dir="$(readlink -fn "$(dirname "${BASH_SOURCE:-"${0}"}")/..")"
|
|
|
|
if ! cd -- "${mas_dir}"; then
|
|
printf $'Error: Could not cd into mas directory: %s\n' "${mas_dir}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
IDENTIFIER=com.mphys.mas-cli
|
|
|
|
echo '==> 📲 Installing mas'
|
|
|
|
sudo installer \
|
|
-pkg .build/mas.pkg \
|
|
-target /
|
|
|
|
pkgutil --pkg-info "${IDENTIFIER}"
|
|
|
|
pkgutil --files "${IDENTIFIER}"
|