Skip to content

About

Sample extension using Touch ID

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Raycast Extension touch-id-sample

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.

Installation

Using Shipped Binaries For arm64

  1. Clone this repository:

    git clone https://github.com/vkhitrin/raycast-touch-id-sample
  2. Install dependencies:

    cd raycast-touch-id-sample
    npm install
  3. Install development extension:

    npm run dev
    <CTRL+C>
  4. Copy Binaries To Raycast Development Extension:

    cp -r prebuilds $HOME/.config/raycast/extensions/touch-id-sample
    
  5. Re-launch development:

    npm run dev
    

Compiling Binaries Yourself

Tested on [email protected] and [email protected], please ensure you are using these versions when compiling.

  1. Clone this repository:

    git clone https://github.com/vkhitrin/raycast-touch-id-sample
  2. Install dependencies:

    cd raycast-touch-id-sample
    npm install
  3. Install development extension:

    npm run dev
    <CTRL+C>
  4. Clone macos-touchid:

    git clone https://github.com/emilbayes/macos-touchid /tmp/macos-touchid
  5. Install dependencies:

    cd /tmp/macos-touchid
    npm install
  6. 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
  7. Build binaries:

    npm run prebuild
  8. Copy Binaries To Raycast Development Extension:

    cp -r prebuilds $HOME/.config/raycast/extensions/touch-id-sample
    
  9. Re-launch development:

    npm run dev
    

About

Sample extension using Touch ID

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages