From 4a3fde8e49e4118801402a4afb770c2f81ee3769 Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 22 Jan 2025 10:43:11 +0000 Subject: [PATCH] Add mac post install script to add to path --- packager/deb-resources/postinstall | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packager/deb-resources/postinstall diff --git a/packager/deb-resources/postinstall b/packager/deb-resources/postinstall new file mode 100644 index 00000000..fad5d0f1 --- /dev/null +++ b/packager/deb-resources/postinstall @@ -0,0 +1,12 @@ +#!/usr/bin/env sh + +TARGET_DIR="/usr/local/bin" + +if [ ! -d $TARGET_DIR ] +then + mkdir -p $TARGET_DIR +fi + +ln -Ffs "$2/Peergos.app/Contents/MacOS/Peergos" "$TARGET_DIR/peergos" + +exit 0 \ No newline at end of file