Enable macOS universal builds (#52)

* enable universal builds (x86_64/arm64) on macOS

* rename macOS build artifact filename

* update README.md
This commit is contained in:
Andre Fonseca 2023-08-28 11:25:41 +02:00 committed by GitHub
parent c41d128e73
commit 7a85414ece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 1 deletions

View File

@ -42,7 +42,7 @@ jobs:
- name: Upload results
uses: actions/upload-artifact@v3
with:
name: blips-apple-x86_64.zip
name: blips-apple-universal.zip
path: |
build/tools/blisp/blisp
if-no-files-found: error

View File

@ -1,4 +1,5 @@
cmake_minimum_required(VERSION 3.16)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
project(blisp C)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_STANDARD 11)

View File

@ -94,3 +94,20 @@ Because this is done at the lowest level of serial communication, the
displays aren't packet-aware or know about the chip's command set or such.
This is really only useful for debugging systems-level issues withing
the device or blisp itself.
## Troubleshooting
### macOS
Depending on your current system security settings, modern versions of macOS requires all software to be notarised before you are able to execute it. This is specially true for software that is downloaded directly from the internet.
If that is the case, you will get an error that looks like the following:
> **“blisp” cannot be opened because the developer cannot be verified.**
>
> macOS cannot verify that this app is free from malware.
In that case, you will need to remove the *quarantine* flag that macOS adds to the executable. After that you should be able to run **blisp** as normal.
```bash
xattr -d com.apple.quarantine blisp
```