Warning: This is just a proof of concept for development purposes.
This example repo relies on compiled macos-touchid for [email protected].
Compiled binaries for arm64 will be shipped in this directory, a guide to compile on your own will be included.
Discussion: raycast/utils#14
touch_id_raycast_sample.mov
(Ignore typos in the video 😢)
A sample extension using macos-touchid to add Touch ID to Raycast extension.
-
Clone this repository:
git clone https://github.com/vkhitrin/raycast-touch-id-sample
-
Install dependencies:
cd raycast-touch-id-sample npm install -
Install development extension:
npm run dev <CTRL+C>
-
Copy Binaries To Raycast Development Extension:
cp -r prebuilds $HOME/.config/raycast/extensions/touch-id-sample -
Re-launch development:
npm run dev
Tested on [email protected] and [email protected], please ensure you are using these versions when compiling.
-
Clone this repository:
git clone https://github.com/vkhitrin/raycast-touch-id-sample
-
Install dependencies:
cd raycast-touch-id-sample npm install -
Install development extension:
npm run dev <CTRL+C>
-
Clone
macos-touchid:git clone https://github.com/emilbayes/macos-touchid /tmp/macos-touchid
-
Install dependencies:
cd /tmp/macos-touchid npm install -
Apply git patch:
git apply << EOF diff --git a/binding.gyp b/binding.gyp index d28d6b1..b4adf49 100644 --- a/binding.gyp +++ b/binding.gyp @@ -1,4 +1,7 @@ { + 'variables': { + 'openssl_fips': '' + }, 'targets': [ { 'target_name': 'macos_touchid', diff --git a/package.json b/package.json index d19a51d..35c1efb 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "node-gyp": "^5.0.0", - "prebuildify": "^3.0.0", + "prebuildify": "^5.0.1", "standard": "^12.0.1", "tape": "^4.10.2" }, @@ -22,7 +22,7 @@ "dev": "node-gyp rebuild", "clean": "rm -rf build", "install": "node-gyp-build", - "prebuild": "prebuildify --napi --strip" + "prebuild": "prebuildify --napi --strip; prebuildify --napi --strip --target='[email protected]'" }, "repository": { "type": "git", EOF
-
Build binaries:
npm run prebuild
-
Copy Binaries To Raycast Development Extension:
cp -r prebuilds $HOME/.config/raycast/extensions/touch-id-sample -
Re-launch development:
npm run dev