mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
AMD and ARM URLs
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
{{ $projectName := env.Getenv "PROJECT" }}{{ $amdFilePath := env.Getenv "AMD" }}{{ $armFilePath := env.Getenv "ARM" }}
|
{{ $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 }}
|
{{ $amdFile := filepath.Base $amdFilePath }}{{ $armFile := filepath.Base $armFilePath }}{{ $amdFileBytes := file.Read $amdFilePath }}
|
||||||
{{ $armFileBytes := file.Read $armFilePath }}# Netbird's UI Client Cask Formula
|
{{ $armFileBytes := file.Read $armFilePath }}# Netbird's UI Client Cask Formula
|
||||||
cask "{{ $projectName }}" do
|
cask "{{ $projectName }}" do
|
||||||
version "{{ env.Getenv "VERSION" }}"
|
version "{{ env.Getenv "VERSION" }}"
|
||||||
|
|
||||||
if Hardware::CPU.intel?
|
if Hardware::CPU.intel?
|
||||||
url "file:////Users/maycon/projects/mls-netbird/dist/{{ $amdFile }}"
|
url "{{ $amdURL }}"
|
||||||
sha256 "{{ crypto.SHA256 $amdFileBytes }}"
|
sha256 "{{ crypto.SHA256 $amdFileBytes }}"
|
||||||
else
|
else
|
||||||
url "file:////Users/maycon/projects/mls-netbird/dist/{{ $armFile }}"
|
url "{{ $armURL }}"
|
||||||
sha256 "{{ crypto.SHA256 $armFileBytes }}"
|
sha256 "{{ crypto.SHA256 $armFileBytes }}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user