Merge pull request #899 from netbirdio/feature/create_macos_pkg_on_release

Adding static files for pkg creation for Mac
This commit is contained in:
pascal-fischer 2023-05-26 17:48:08 +02:00 committed by GitHub
commit d2db6bd03e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 41 additions and 1 deletions

View File

@ -9,7 +9,7 @@ on:
pull_request:
env:
SIGN_PIPE_VER: "v0.0.6"
SIGN_PIPE_VER: "v0.0.7"
GORELEASER_VER: "v1.14.1"
concurrency:

View File

@ -0,0 +1,32 @@
#!/bin/sh
APP=/Applications/NetBird.app
AGENT=/usr/local/bin/netbird
LOG_FILE=/var/log/netbird/client_install.log
{
echo "Installing NetBird..."
if test -d $APP; then
echo "NetBird app copied successfully."
else
echo "NetBird app could not be copied to the Applications folder."
exit 1
fi
ln -s $APP/Contents/MacOS/netbird $AGENT
if test -f $AGENT; then
echo "NetBird binary linked successfully."
else
echo "NetBird could not create symlink to /usr/local/bin"
exit 1
fi
$AGENT service install
$AGENT service start
open $APP
echo "Finished Netbird installation successfully"
exit 0 # all good
} &> $LOG_FILE

View File

@ -0,0 +1,8 @@
#!/bin/sh
LOG_FILE=/var/log/netbird/client_install.log
{
echo "Preinstall complete"
exit 0 # all good
} &> $LOG_FILE