-
-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3701 from telepresenceio/thallgren/move-brew-tap
Move brew-tap for telepresence-oss to telepresenceio
- Loading branch information
Showing
5 changed files
with
44 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,13 @@ echo "Working in ${WORK_DIR}" | |
|
||
BUILD_HOMEBREW_DIR=${WORK_DIR}/homebrew | ||
if [ "${PACKAGE_NAME}" == 'tel2' ]; then | ||
FORMULA="${BUILD_HOMEBREW_DIR}/Formula/telepresence.rb" | ||
FORMULA_NAME="Telepresence" | ||
FORMULA_FILE="packaging/homebrew-formula.rb" | ||
FORMULA="${BUILD_HOMEBREW_DIR}/Formula/telepresence.rb" | ||
elif [ "${PACKAGE_NAME}" == 'tel2oss' ]; then | ||
FORMULA="${BUILD_HOMEBREW_DIR}/Formula/telepresence-oss.rb" | ||
FORMULA_NAME="Telepresence OSS" | ||
FORMULA_NAME="TelepresenceOss" | ||
FORMULA_FILE="packaging/homebrew-oss-formula.rb" | ||
FORMULA="${BUILD_HOMEBREW_DIR}/Formula/telepresence-oss.rb" | ||
fi | ||
|
||
for this_os in "${OS[@]}"; do | ||
|
@@ -38,7 +38,7 @@ for this_os in "${OS[@]}"; do | |
# We should only be updating homebrew with a version of telepresence that | ||
# already exists, so let's download it | ||
if [ "${PACKAGE_NAME}" == 'tel2' ]; then | ||
DOWNLOAD_PATH="/download/${PACKAGE_NAME}/${this_os}/${this_arch}/${VERSION}/telepresence" | ||
DOWNLOAD_PATH="/download/${PACKAGE_NAME}/${this_os}/${this_arch}/v${VERSION}/telepresence" | ||
elif [ "${PACKAGE_NAME}" == 'tel2oss' ]; then | ||
DOWNLOAD_PATH="/download/${PACKAGE_NAME}/releases/download/v${VERSION}/telepresence-${this_os}-${this_arch}" | ||
fi | ||
|
@@ -79,11 +79,12 @@ if [ "${HASH_ERRORS}" -gt 0 ]; then | |
exit 1 | ||
fi | ||
|
||
# Clone blackbird-homebrew: | ||
# Clone telepresenceio-homebrew: | ||
echo "Cloning into ${BUILD_HOMEBREW_DIR}..." | ||
git clone https://github.com/datawire/homebrew-blackbird.git "${BUILD_HOMEBREW_DIR}" | ||
git clone https://github.com/telepresenceio/homebrew-telepresence.git "${BUILD_HOMEBREW_DIR}" | ||
|
||
# Update recipe | ||
mkdir -p "$(dirname "${FORMULA}")" | ||
cp "${FORMULA_FILE}" "${FORMULA}" | ||
|
||
sed -i'' -e "s/__FORMULA_NAME__/${FORMULA_NAME}/g" "${FORMULA}" | ||
|
@@ -104,10 +105,6 @@ done | |
chmod 644 "${FORMULA}" | ||
cd "${BUILD_HOMEBREW_DIR}" | ||
|
||
# Use the correct machine user for committing | ||
git config user.email "[email protected]" | ||
git config user.name "d6e automaton" | ||
|
||
git add "${FORMULA}" | ||
git commit -m "Release ${VERSION}" | ||
|
||
|
@@ -116,7 +113,7 @@ git commit -m "Release ${VERSION}" | |
# the change. Once we know the automation is working, we can | ||
# remove it. | ||
cat "${FORMULA}" | ||
git push origin master | ||
git push origin main | ||
|
||
# Clean up the working directory | ||
rm -rf "${WORK_DIR}" |