mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🔨 Use real revision, write brew formula before testing
This commit is contained in:
parent
fc4ffae87f
commit
b8803ba230
1 changed files with 12 additions and 12 deletions
|
@ -68,12 +68,8 @@ echo "MAS_VERSION: ${MAS_VERSION}"
|
|||
if [[ -n "${2}" ]]; then
|
||||
REVISION="${2}"
|
||||
else
|
||||
if [[ $dry_run == '-d' ]]; then
|
||||
REVISION=fake-revision
|
||||
else
|
||||
# Derive revision from version. Fails if MAS_VERSION is not a tag.
|
||||
REVISION=$(git rev-parse "${MAS_VERSION}")
|
||||
fi
|
||||
# Derive revision from version. Fails if MAS_VERSION is not a tag.
|
||||
REVISION=$(git rev-parse "${MAS_VERSION}")
|
||||
fi
|
||||
|
||||
echo "REVISION: ${REVISION}"
|
||||
|
@ -85,8 +81,6 @@ echo "REVISION: ${REVISION}"
|
|||
|
||||
script/version_bump "${MAS_VERSION}" "$REVISION"
|
||||
|
||||
# cp -v "${LOCAL_MAS_FORMULA_PATH}" "${CORE_MAS_FORMULA_PATH}"
|
||||
|
||||
branch_name="releases/release-${MAS_VERSION}"
|
||||
$echo git branch "${branch_name}"
|
||||
$echo git switch "${branch_name}"
|
||||
|
@ -124,12 +118,18 @@ brew update
|
|||
# Build the formula for the current macOS version and architecture.
|
||||
#
|
||||
|
||||
# Force brew to use the local repository instead of the API.
|
||||
# Disable API before any install, reinstall or upgrade commands.
|
||||
export HOMEBREW_NO_INSTALL_FROM_API=1
|
||||
# Update mas formula in core
|
||||
cp -v "${LOCAL_MAS_FORMULA_PATH}" "${CORE_MAS_FORMULA_PATH}"
|
||||
|
||||
# Install mas from source
|
||||
brew reinstall mas
|
||||
# HOMEBREW_NO_INSTALL_FROM_API:
|
||||
# Force brew to use the local repository instead of the API.
|
||||
# Disable API before any install, reinstall or upgrade commands.
|
||||
|
||||
HOMEBREW_NO_INSTALL_FROM_API=1 \
|
||||
brew install mas \
|
||||
--build-from-source \
|
||||
--verbose
|
||||
|
||||
# Audit formula
|
||||
brew audit --strict mas-cli/tap/mas
|
||||
|
|
Loading…
Reference in a new issue