Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
chore: add install-rust-targets step for macOS universal builds
Minh1411206959329fd6d6
diff --git a/.github/workflows/template-tauri-build-macos-external.yml b/.github/workflows/template-tauri-build-macos-external.ymlindex e69e298a6..8f61b86fa 100644--- a/.github/workflows/template-tauri-build-macos-external.yml+++ b/.github/workflows/template-tauri-build-macos-external.yml@@ -89,7 +89,6 @@ jobs:- name: Build apprun: |- rustup target add x86_64-apple-darwinmake buildenv:APP_PATH: '.'diff --git a/.github/workflows/template-tauri-build-macos.yml b/.github/workflows/template-tauri-build-macos.ymlindex 40cf4e839..332ecc42f 100644--- a/.github/workflows/template-tauri-build-macos.yml+++ b/.github/workflows/template-tauri-build-macos.yml@@ -167,7 +167,6 @@ jobs:- name: Build apprun: |- rustup target add x86_64-apple-darwinmake buildenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}diff --git a/Makefile b/Makefileindex 457f314ef..65fc67fc4 100644--- a/Makefile+++ b/Makefile@@ -30,6 +30,17 @@ endifyarn build:coreyarn build:extensions && yarn build:extensions-web+# Install required Rust targets for macOS universal builds+install-rust-targets:+ifeq ($(shell uname -s),Darwin)+ @echo "Detected macOS, installing universal build targets..."+ rustup target add x86_64-apple-darwin+ rustup target add aarch64-apple-darwin+ @echo "Rust targets installed successfully!"+else+ @echo "Not macOS; skipping Rust target installation."+endif+dev: install-and-buildyarn download:binyarn download:lib@@ -68,11 +79,12 @@ test: lintcargo test --manifest-path src-tauri/utils/Cargo.toml# Builds and publishes the app-build-and-publish: install-and-build+build-and-publish: install-and-build install-rust-targetsyarn build# Build-build: install-and-build+build: install-and-build install-rust-targets+ install-rust-targetsyarn download:libyarn build