String () { StringBuilder baseUrl = new StringBuilder("https://github.com/mvdan/sh/releases/download/") .append(SHFMT_VERSION) .append('/') .append(SHFMT) .append('_') .append(SHFMT_VERSION); if (SystemInfo.isMac) { baseUrl.append(MAC); } else if (SystemInfo.isLinux) { baseUrl.append(LINUX); } else if (SystemInfo.isWindows) { baseUrl.append(WINDOWS); } else if (SystemInfo.isFreeBSD) { baseUrl.append(FREE_BSD); } if (CpuArch.isIntel64()) { baseUrl.append(ARCH_x86_64); } if (CpuArch.isIntel32()) { baseUrl.append(ARCH_i386); } else if (CpuArch.isArm64()) { baseUrl.append(ARCH_ARM64); } if (SystemInfo.isWindows) { baseUrl.append(WINDOWS_EXTENSION); } return baseUrl.toString(); }