refractor: add missing MacOS depencies for tauri application
This commit is contained in:
@@ -21,6 +21,10 @@ case "${TARGET}" in
|
||||
OUTPUT_DIR="${BUNDLED_DIR}/macos-arm64"
|
||||
OUTPUT_NAME="nexavpn-tunnel-helper"
|
||||
;;
|
||||
x86_64-apple-darwin)
|
||||
OUTPUT_DIR="${BUNDLED_DIR}/macos-x64"
|
||||
OUTPUT_NAME="nexavpn-tunnel-helper"
|
||||
;;
|
||||
*)
|
||||
echo "unsupported target: ${TARGET}"
|
||||
exit 1
|
||||
@@ -49,12 +53,14 @@ if [ "${TARGET}" = "x86_64-pc-windows-msvc" ]; then
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ "${TARGET}" = "aarch64-apple-darwin" ] && [ "${HOST_OS}" != "Darwin" ]; then
|
||||
echo "macOS ARM helper builds must run on macOS."
|
||||
echo "Current host: ${HOST_OS}"
|
||||
echo "Use a Mac, then install the target with:"
|
||||
echo " rustup target add aarch64-apple-darwin"
|
||||
exit 1
|
||||
if [ "${TARGET}" = "aarch64-apple-darwin" ] || [ "${TARGET}" = "x86_64-apple-darwin" ]; then
|
||||
if [ "${HOST_OS}" != "Darwin" ]; then
|
||||
echo "macOS helper builds must run on macOS."
|
||||
echo "Current host: ${HOST_OS}"
|
||||
echo "Use a Mac, then install the target with:"
|
||||
echo " rustup target add ${TARGET}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! command -v rustup >/dev/null 2>&1; then
|
||||
@@ -100,7 +106,7 @@ if [ "${TARGET}" = "x86_64-pc-windows-msvc" ]; then
|
||||
curl -fsSL "${MSI_URL}" -o "${OUTPUT_DIR}/wireguard-installer.msi"
|
||||
fi
|
||||
|
||||
if [ "${TARGET}" = "aarch64-apple-darwin" ]; then
|
||||
if [ "${TARGET}" = "aarch64-apple-darwin" ] || [ "${TARGET}" = "x86_64-apple-darwin" ]; then
|
||||
WG_BIN="$(command -v wg || true)"
|
||||
WG_QUICK_BIN="$(command -v wg-quick || true)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user