building intel mac app (#878)
Co-authored-by: Max Novich <mnovich@squareup.com>
This commit is contained in:
@@ -37,6 +37,12 @@ release-windows:
|
||||
fi
|
||||
echo "Windows executable and required DLLs created at ./target/x86_64-pc-windows-gnu/release/"
|
||||
|
||||
# Build for Intel Mac
|
||||
release-intel:
|
||||
@echo "Building release version for Intel Mac..."
|
||||
cargo build --release --target x86_64-apple-darwin
|
||||
@just copy-binary-intel
|
||||
|
||||
copy-binary BUILD_MODE="release":
|
||||
@if [ -f ./target/{{BUILD_MODE}}/goosed ]; then \
|
||||
echo "Copying goosed binary from target/{{BUILD_MODE}}..."; \
|
||||
@@ -46,6 +52,16 @@ copy-binary BUILD_MODE="release":
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
# Copy binary command for Intel build
|
||||
copy-binary-intel:
|
||||
@if [ -f ./target/x86_64-apple-darwin/release/goosed ]; then \
|
||||
echo "Copying Intel goosed binary to ui/desktop/src/bin with permissions preserved..."; \
|
||||
cp -p ./target/x86_64-apple-darwin/release/goosed ./ui/desktop/src/bin/; \
|
||||
else \
|
||||
echo "Intel release binary not found."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
# Copy Windows binary command
|
||||
copy-binary-windows:
|
||||
@powershell.exe -Command "if (Test-Path ./target/x86_64-pc-windows-gnu/release/goosed.exe) { \
|
||||
@@ -111,6 +127,11 @@ make-ui-windows:
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
# make GUI with latest binary
|
||||
make-ui-intel:
|
||||
@just release-intel
|
||||
cd ui/desktop && npm run bundle:intel
|
||||
|
||||
# Setup langfuse server
|
||||
langfuse-server:
|
||||
#!/usr/bin/env bash
|
||||
|
||||
Reference in New Issue
Block a user