Skip to content

Commit

Permalink
fix: fix uninstaller generation
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Nov 2, 2024
1 parent 475974f commit cc3a113
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions installer_osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ echo "**** QPEP OSX INSTALLER BUILDER ****"
echo "************************************"
echo

echo [Prerequisites check: MAC OS]
echo [Prerequisites check: PLATFORM MAC]
uname -a | grep Darwin
if [[ ! "$?" -eq "0" ]]; then
fail "Not found"
Expand Down Expand Up @@ -65,6 +65,8 @@ mkdir -p QPep.app/Contents/MacOS/config
cp ../build/qpep QPep.app/Contents/MacOS/
cp ../build/qpep-tray QPep.app/Contents/MacOS/

mkdir -p Uninstaller.app/Contents/MacOS/

export QPEP_GATEWAY=192.168.1.100
export QPEP_ADDRESS=0.0.0.0
export QPEP_PORT=1443
Expand All @@ -74,8 +76,10 @@ export QPEP_SLOWSTART=search
envsubst < ./qpep.yml.tpl > QPep.app/Contents/MacOS/config/qpep.yml
cp ./server_cert.pem QPep.app/Contents/MacOS/server_cert.pem

echo [Generate Bundle]
echo [Generate Install Bundle]
pkgbuild --root "QPep.app" --identifier com.project-faster.qpep --scripts Scripts --install-location "/Applications/QPep.app" DistributionInstall.pkg

echo [Generate Uninstall Bundle]
pkgbuild --root "Uninstaller.app" --identifier com.project-faster.qpep --scripts UninstallScripts --install-location "/Applications" DistributionUninstall.pkg

# for reference if needed to recreate the xml
Expand Down

0 comments on commit cc3a113

Please sign in to comment.