mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-26 20:26:39 +00:00
Generate app zip files and homebrew file
This commit is contained in:
10
client/ui/Info.plist
Normal file
10
client/ui/Info.plist
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>netbird-ui</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>Netbird</string>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
client/ui/Netbird.icns
Normal file
BIN
client/ui/Netbird.icns
Normal file
Binary file not shown.
20
client/ui/netbird-ui.rb.tmpl
Normal file
20
client/ui/netbird-ui.rb.tmpl
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ $projectName := env.Getenv "PROJECT" }}{{ $amdFilePath := env.Getenv "AMD" }}{{ $armFilePath := env.Getenv "ARM" }}
|
||||
{{ $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 }}"
|
||||
sha256 "{{ crypto.SHA256 $amdFileBytes }}"
|
||||
else
|
||||
url "file:////Users/maycon/projects/mls-netbird/dist/{{ $armFile }}"
|
||||
sha256 "{{ crypto.SHA256 $armFileBytes }}"
|
||||
end
|
||||
|
||||
name "Netbird UI"
|
||||
desc "Netbird UI Client"
|
||||
homepage "https://www.netbird.io/"
|
||||
|
||||
app "#{version}", target: "Netbird UI.app"
|
||||
end
|
||||
Reference in New Issue
Block a user