Skip to content

Commit

Permalink
Fix installation packages for mac and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmartin committed Nov 12, 2024
1 parent de0b587 commit 1bdf1b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package/scripts/linux_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ check_last_command () {
fi
}

pip uninstall psyneulinkviewer && pip cache purge
pip install -vv psyneulinkviewer --break-system-packages --use-pep517 && . ~/.profile && sudo chown root:root /usr/local/bin/psyneulinkviewer-linux-x64/chrome-sandbox && sudo chmod 4755 /usr/local/bin/psyneulinkviewer-linux-x64/chrome-sandbox
check_last_command

# Variables
APP_NAME="PsyneulinkViewer" # Name of the application
Expand Down
4 changes: 2 additions & 2 deletions package/scripts/mac_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ check_last_command () {
fi
}


pip uninstall psyneulinkviewer && pip cache purge
pip install -vv psyneulinkviewer --break-system-packages --use-pep517 && source ~/.bashrc_profile
check_last_command

Expand All @@ -30,9 +30,9 @@ ICON_FILE_PATH="$APP_SHORTCUT_PATH/Contents/Resources/$SHORTCUT_NAME.icns"
rm -rf "$APP_SHORTCUT_PATH"
mkdir -p "$APP_SHORTCUT_PATH/Contents/MacOS"
mkdir -p "$APP_SHORTCUT_PATH/Contents/Resources"

# Write the .command file that launches the app with conda environment
cat <<EOL > "$COMMAND_FILE_PATH"
#!/bin/bash
source ~/.bashrc_profile
source ~/miniconda3/etc/profile.d/conda.sh
Expand Down

0 comments on commit 1bdf1b2

Please sign in to comment.