diff --git a/CHANGELOG.md b/CHANGELOG.md index a7a54eb..98ad3b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ Figgy Changelog: +## 0.0.49 +- Forcing mac installs to `/usr/local/bin/figgy`. + +There is no good work-around that I have found that prevents issues with automatic upgrade symlink chaining on MacOs. +Essentialy `os.path.dirname(sys.executable)` does not return the directory of the symlink on MacOs +like it does on Windows/Linux. It instead follows the chain of links and returns actual executable's directory. Which +seems like the right thing to do, except I'd prefer to locate the link instead. + ## 0.0.48 - More testing for auto-upgrade. diff --git a/src/figcli/commands/help/upgrade.py b/src/figcli/commands/help/upgrade.py index 64c084b..db4e646 100644 --- a/src/figcli/commands/help/upgrade.py +++ b/src/figcli/commands/help/upgrade.py @@ -95,7 +95,6 @@ def install_mac(self, latest_version: FiggyVersionDetails) -> bool: selection = Input.y_n_input(f"Continue? ", default_yes=True) else: - install_path = self.upgrade_mgr.install_path selection = True if selection: diff --git a/src/figcli/config/constants.py b/src/figcli/config/constants.py index 0f97c59..e1e16e3 100644 --- a/src/figcli/config/constants.py +++ b/src/figcli/config/constants.py @@ -1,6 +1,6 @@ from pathlib import Path -VERSION = '0.0.48' +VERSION = '0.0.49' CLI_NAME = 'figgy' PROJECT_NAME = 'figgy' diff --git a/src/figcli/svcs/upgrade_manager.py b/src/figcli/svcs/upgrade_manager.py index 6370b87..4b4a246 100644 --- a/src/figcli/svcs/upgrade_manager.py +++ b/src/figcli/svcs/upgrade_manager.py @@ -92,7 +92,6 @@ def install_onedir(self, install_path: str, latest_version: str, platform: str): os.symlink(executable_path, install_path) - def _get_executable_path(self): return