|
|
|
@ -30,10 +30,12 @@ getCpuType () {
@@ -30,10 +30,12 @@ getCpuType () {
|
|
|
|
|
getDockerDesktopDownloadUrl () { |
|
|
|
|
getCpuType |
|
|
|
|
cup_type=$? |
|
|
|
|
dmgLink="https://desktop.docker.com/mac/main/arm64/Docker.dmg" |
|
|
|
|
#原网址:https://desktop.docker.com/mac/main/arm64/Docker.dmg |
|
|
|
|
dmgLink="https://static.jialuoma.cn/docker_desktop/arm64.dmg" |
|
|
|
|
|
|
|
|
|
if [ $cup_type -eq 1 ]; then |
|
|
|
|
dmgLink="https://desktop.docker.com/mac/main/amd64/Docker.dmg" |
|
|
|
|
#原网址:https://desktop.docker.com/mac/main/amd64/Docker.dmg |
|
|
|
|
dmgLink="https://static.jialuoma.cn/docker_desktop/amd64.dmg" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
echo "${dmgLink}" |
|
|
|
|