From 8a0ba77c36ed5d9f6eb77ebdff4174b3d14903b5 Mon Sep 17 00:00:00 2001 From: mlsmaycon Date: Sat, 21 May 2022 00:29:12 +0200 Subject: [PATCH] AMD and ARM URLs --- client/ui/netbird-ui.rb.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/ui/netbird-ui.rb.tmpl b/client/ui/netbird-ui.rb.tmpl index 2438439f6..a8926e47f 100644 --- a/client/ui/netbird-ui.rb.tmpl +++ b/client/ui/netbird-ui.rb.tmpl @@ -1,14 +1,15 @@ {{ $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 "file:////Users/maycon/projects/mls-netbird/dist/{{ $amdFile }}" + url "{{ $amdURL }}" sha256 "{{ crypto.SHA256 $amdFileBytes }}" else - url "file:////Users/maycon/projects/mls-netbird/dist/{{ $armFile }}" + url "{{ $armURL }}" sha256 "{{ crypto.SHA256 $armFileBytes }}" end