Skip to content
This repository has been archived by the owner on Jun 27, 2021. It is now read-only.

A helper app for Electrum and Electron Cash on macOS. This app emulates the 'zbar' functionality present on Windows and Linux for Electrum, on macOS.

License

Notifications You must be signed in to change notification settings

spesmilo/CalinsQRReader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calin's QR Reader

Author: Calin Culianu [email protected]


A helper app for Electrum. This app emulates the 'zbar' functionality present on Windows and Linux for Electrum.

It is a very small and lightweight app with no external dependencies other than what macOS provides in its own system libs for reading from the camera and detecting QR codes in video.

The app basically creates a window and reads from the default camera device on the system. It will continue to run until either the window is closed by the user or a QR image is read.

  1. If a QR image is scanned, it will print the decoded string to stdout and exit.
  2. If there is an error detecting the camera, it will show an error message and wait.
  3. If the user closes the window without having scanned a QR code (because of an error or s/he changed his/her mind), it will print nothing to stdout and exit.

Building

In order to build the app and have it actually work on deployed machines other than your developer machine, you need an Apple Developer Certificate (you have to join the Apple developer program), and you need to sign the app. Otherwise on newer macOS, camera access won't be granted to the app.

  1. Load included source code in Xcode.
  2. Hit build.

Or, if you prefer the command-line:

  1. Chdir to sources
  2. xcodebuild
  3. codesign -v -f -s MY_DEVELOPER_CERT build/Release/CalinsQRReader.app

See Also

About

A helper app for Electrum and Electron Cash on macOS. This app emulates the 'zbar' functionality present on Windows and Linux for Electrum, on macOS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%