Skip to content

Commit 38ab103

Browse files
committed
Add back support for Xcode 8, 9
macOS Sierra, High Sierra
1 parent a735729 commit 38ab103

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

applesimutils/applesimutils.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
290290
GCC_WARN_UNUSED_FUNCTION = YES;
291291
GCC_WARN_UNUSED_VARIABLE = YES;
292-
MACOSX_DEPLOYMENT_TARGET = 10.14;
292+
MACOSX_DEPLOYMENT_TARGET = 10.12;
293293
MTL_ENABLE_DEBUG_INFO = YES;
294294
ONLY_ACTIVE_ARCH = YES;
295295
SDKROOT = macosx;
@@ -340,7 +340,7 @@
340340
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
341341
GCC_WARN_UNUSED_FUNCTION = YES;
342342
GCC_WARN_UNUSED_VARIABLE = YES;
343-
MACOSX_DEPLOYMENT_TARGET = 10.14;
343+
MACOSX_DEPLOYMENT_TARGET = 10.12;
344344
MTL_ENABLE_DEBUG_INFO = NO;
345345
SDKROOT = macosx;
346346
};

homebrew-brew

releaseVersion.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ SRC_TGZ_FILE="AppleSimulatorUtils-${VERSION}.tar.gz"
5050
mkdir -p build
5151
tar --exclude="releaseVersion.sh" --exclude=".git" --exclude="build" --exclude="bottle" --exclude "_tmp_release_notes.md" --exclude=".github" --exclude="homebrew-brew" -cvzf "build/${SRC_TGZ_FILE}" .
5252

53-
echo -e "\033[1;34mCreating a homebrew bottle"
53+
echo -e "\033[1;34mCreating Homebrew bottles"
5454

5555
BOTTLE_TGZ_FILE="applesimutils-${VERSION}.mojave.bottle.tar.gz"
56+
BOTTLE_TGZ_FILE_HSIERRA="applesimutils-${VERSION}.high_sierra.bottle.tar.gz"
57+
BOTTLE_TGZ_FILE_SIERRA="applesimutils-${VERSION}.sierra.bottle.tar.gz"
5658

5759
rm -fr bottle
5860
BOTTLE_DIR="bottle/applesimutils/${VERSION}/"
@@ -61,6 +63,9 @@ mkdir -p "${BOTTLE_DIR}"
6163
pushd .
6264
cd bottle
6365
tar -cvzf "${BOTTLE_TGZ_FILE}" applesimutils
66+
67+
cp "${BOTTLE_TGZ_FILE}" "${BOTTLE_TGZ_FILE_HSIERRA}"
68+
cp "${BOTTLE_TGZ_FILE}" "${BOTTLE_TGZ_FILE_SIERRA}"
6469
popd
6570

6671
echo -e "\033[1;34mUpdating brew repository with latest tarball and update applesimutils.rb\033[0m"
@@ -72,8 +77,10 @@ git fetch
7277
git pull --rebase
7378
sed -i '' -e 's/^\ \ url .*/\ \ url '"'https:\/\/github.com\/wix\/AppleSimulatorUtils\/releases\/download\/${VERSION}\/${SRC_TGZ_FILE}'"'/g' applesimutils.rb
7479
sed -i '' -e 's/^\ \ \ \ root\_url .*/\ \ \ \ root\_url '"'https:\/\/github.com\/wix\/AppleSimulatorUtils\/releases\/download\/${VERSION}'"'/g' applesimutils.rb
75-
sed -i '' -e 's/^\ \ sha256 .*/\ \ sha256 '"'"$(shasum -b -a 256 ../build/${SRC_TGZ_FILE} | awk '{ print ${VERSION} }')"'"'/g' applesimutils.rb
76-
sed -i '' -e 's/^\ \ \ \ sha256 .*/\ \ \ \ sha256 '"'"$(shasum -b -a 256 ../bottle/${BOTTLE_TGZ_FILE} | awk '{ print ${VERSION} }')"'"'\ \=\>\ \:mojave/g' applesimutils.rb
80+
sed -i '' -e 's/^\ \ sha256 .*/\ \ sha256 '"'"$(shasum -b -a 256 ../build/${SRC_TGZ_FILE} | awk '{ print $1 }')"'"'/g' applesimutils.rb
81+
sed -i '' -e 's/^ sha256 .* => :mojave/ sha256 '"'"$(shasum -b -a 256 ../bottle/${BOTTLE_TGZ_FILE} | awk '{ print $1 }')"'"' => :mojave/g' applesimutils.rb
82+
sed -i '' -e 's/^ sha256 .* => :high_sierra/ sha256 '"'"$(shasum -b -a 256 ../bottle/${BOTTLE_TGZ_FILE} | awk '{ print $1 }')"'"' => :high_sierra/g' applesimutils.rb
83+
sed -i '' -e 's/^ sha256 .* => :sierra/ sha256 '"'"$(shasum -b -a 256 ../bottle/${BOTTLE_TGZ_FILE} | awk '{ print $1 }')"'"' => :sierra/g' applesimutils.rb
7784
git add -A
7885
git commit -m "Apple Simulator Utils ${VERSION}"
7986
git push
@@ -100,6 +107,8 @@ echo -e "\033[1;34mUploading attachments to release\033[0m"
100107

101108
curl -s --data-binary @"build/${SRC_TGZ_FILE}" -H "Content-Type: application/octet-stream" "https://uploads.github.com/repos/wix/AppleSimulatorUtils/releases/${RELEASE_ID}/assets?name=$(basename ${SRC_TGZ_FILE})&access_token=${GITHUB_RELEASES_TOKEN}" | jq "."
102109
curl -s --data-binary @"bottle/${BOTTLE_TGZ_FILE}" -H "Content-Type: application/octet-stream" "https://uploads.github.com/repos/wix/AppleSimulatorUtils/releases/${RELEASE_ID}/assets?name=$(basename ${BOTTLE_TGZ_FILE})&access_token=${GITHUB_RELEASES_TOKEN}" | jq "."
110+
curl -s --data-binary @"bottle/${BOTTLE_TGZ_FILE_HSIERRA}" -H "Content-Type: application/octet-stream" "https://uploads.github.com/repos/wix/AppleSimulatorUtils/releases/${RELEASE_ID}/assets?name=$(basename ${BOTTLE_TGZ_FILE_HSIERRA})&access_token=${GITHUB_RELEASES_TOKEN}" | jq "."
111+
curl -s --data-binary @"bottle/${BOTTLE_TGZ_FILE_SIERRA}" -H "Content-Type: application/octet-stream" "https://uploads.github.com/repos/wix/AppleSimulatorUtils/releases/${RELEASE_ID}/assets?name=$(basename ${BOTTLE_TGZ_FILE_SIERRA})&access_token=${GITHUB_RELEASES_TOKEN}" | jq "."
103112

104113
rm -fr build
105114
rm -fr bottle

0 commit comments

Comments
 (0)