{{ $projectName := env.Getenv "PROJECT" }}{{ $amdFilePath := env.Getenv "AMD" }}{{ $armFilePath := env.Getenv "ARM" }} {{ $amdURL := env.Getenv "AMD_URL" }}{{ $armURL := env.Getenv "ARM_URL" }} {{ $amdFile := filepath.Base $amdFilePath }}{{ $armFile := filepath.Base $armFilePath }}{{ $amdFileBytes := file.Read $amdFilePath }} {{ $armFileBytes := file.Read $armFilePath }}# Netbird's UI Client Cask Formula cask "{{ $projectName }}" do version "{{ env.Getenv "VERSION" }}" if Hardware::CPU.intel? url "{{ $amdURL }}" sha256 "{{ crypto.SHA256 $amdFileBytes }}" else url "{{ $armURL }}" sha256 "{{ crypto.SHA256 $armFileBytes }}" end name "Netbird UI" desc "Netbird UI Client" homepage "https://www.netbird.io/" app "#{version}", target: "Netbird UI.app" end