Skip to content

xenodium/homebrew-macosrec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

macosrec Homebrew recipe

This is the Homebrew recipe for macosrec, a utility to take screenshots/videos/ocr of macOS windows/regions from the command line.

brew install xenodium/macosrec/macosrec

Hashing

You can ignore this space. The following snippet is used to generate the recipe hash from via org babel.

import CommonCrypto
import Foundation

func sha256HashForURL(_ url: URL) -> String? {
  guard let fileData = try? Data(contentsOf: url) else {
    return nil
  }

  var digest = [UInt8](repeating: 0, count: Int(CC_SHA256_DIGEST_LENGTH))
  fileData.withUnsafeBytes {
    _ = CC_SHA256($0.baseAddress, CC_LONG(fileData.count), &digest)
  }

  return digest.map { String(format: "%02x", $0) }.joined()
}

if let url = URL(string: "https://github.com/xenodium/macosrec/archive/refs/tags/macosrec-0.7.3.tar.gz") {
  if let shaHash = sha256HashForURL(url) {
    print("SHA-256 hash: \(shaHash)")
  } else {
    print("Failed to compute the SHA-256 hash.")
  }
} else {
  print("Invalid URL")
}

About

macosrec formula for the Homebrew package manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages