Skip to content

Commit 0974ef7

Browse files
committed
[refactor] Update script for Python3 and pipx
1 parent e5f9271 commit 0974ef7

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

exist-distribution/src/main/scripts/create-dmg-mac.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ if [[ -f "${output_dmg}" ]]; then
3737
rm -v "${output_dmg}"
3838
fi
3939

40+
# Make sure that pipx is installed
41+
if ! python3 -m pip show pipx > /dev/null 2>&1; then
42+
yes | python3 -m pip install --user pipx && python3 -m pipx ensurepath && source ~/.bashrc
43+
fi
44+
4045
# Make sure that dmgbuild is installed
41-
if ! pip show dmgbuild > /dev/null 2>&1; then
42-
yes | pip install dmgbuild
46+
if ! python3 -m pipx list | grep dmgbuild > /dev/null 2>&1; then
47+
yes | python3 -m pipx install dmgbuild
4348
fi
4449

4550
set -e

0 commit comments

Comments
 (0)