Skip to content

Commit a6d0662

Browse files
Adds support for mac M1. Closes #529 (#534)
1 parent e5471ec commit a6d0662

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- win-x86
1515
- linux-x64
1616
- osx-x64
17+
- osx-arm64
1718
env:
1819
release: 'dev-proxy-${{ matrix.architecture }}-${{ github.ref_name }}'
1920
steps:

scripts/setup-beta.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ if ($os -match "Windows") {
6262
} elseif ($os -match "Darwin") {
6363
if ($arch -eq "X64") {
6464
$url = "$base_url-osx-x64-$version.zip"
65+
} elseif ($arch -eq "Arm64") {
66+
$url = "$base_url-osx-arm64-$version.zip"
6567
} else {
6668
Write-Host "Unsupported architecture $arch. Aborting"
6769
exit 1

scripts/setup-beta.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ base_url="https://github.com/microsoft/dev-proxy/releases/download/$version/dev-
4949
if [ "$(uname)" == "Darwin" ]; then
5050
ARCH="$(uname -m)"
5151
if [ ${ARCH} == "arm64" ]; then
52-
echo "unsupported architecture ${ARCH}. Aborting"; exit 1;
52+
curl -sL -o ./devproxy.zip "$base_url-osx-arm64-$version.zip" || { echo "Cannot install Dev Proxy. Aborting"; exit 1; }
5353
elif [ ${ARCH} == "x86_64" ]; then
5454
curl -sL -o ./devproxy.zip "$base_url-osx-x64-$version.zip" || { echo "Cannot install Dev Proxy. Aborting"; exit 1; }
5555
else

scripts/setup.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ if ($os -match "Windows") {
6161
} elseif ($os -match "Darwin") {
6262
if ($arch -eq "X64") {
6363
$url = "$base_url-osx-x64-$version.zip"
64+
} elseif ($arch -eq "Arm64") {
65+
$url = "$base_url-osx-arm64-$version.zip"
6466
} else {
6567
Write-Host "Unsupported architecture $arch. Aborting"
6668
exit 1

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ base_url="https://github.com/microsoft/dev-proxy/releases/download/$version/dev-
4848
if [ "$(uname)" == "Darwin" ]; then
4949
ARCH="$(uname -m)"
5050
if [ ${ARCH} == "arm64" ]; then
51-
echo "unsupported architecture ${ARCH}. Aborting"; exit 1;
51+
curl -sL -o ./devproxy.zip "$base_url-osx-arm64-$version.zip" || { echo "Cannot install Dev Proxy. Aborting"; exit 1; }
5252
elif [ ${ARCH} == "x86_64" ]; then
5353
curl -sL -o ./devproxy.zip "$base_url-osx-x64-$version.zip" || { echo "Cannot install Dev Proxy. Aborting"; exit 1; }
5454
else

0 commit comments

Comments
 (0)