use direct sh shebang and stage location

This commit is contained in:
mlsmaycon
2022-05-25 10:11:09 +02:00
parent c5e66ebdaa
commit 68d02cc14f
3 changed files with 7 additions and 6 deletions

View File

@@ -15,17 +15,18 @@ cask "{{ $projectName }}" do
app "netbird_ui_darwin_arm64", target: "Netbird UI.app"
end
depends_on formula: "netbird"
postflight do
set_permissions "/Applications/netclient", '0755'
end
installer script: {
executable: "installer.sh",
executable: "#{staged_path}/netbird_ui_darwin_amd64/installer.sh",
sudo: true,
must_succeed: false,
}
uninstall script: {
executable: "uninstaller.sh",
args: ["service","stop"],
executable: "#{staged_path}/netbird_ui_darwin_amd64/uninstaller.sh",
}
name "Netbird UI"

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# check if wiretrustee is installed
WT_BIN=$(which wiretrustee)

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/bin/sh
# check if netbird is installed
NB_BIN=$(which netbird)