Skip to content

Commit

Permalink
Moved uninstall script to amber
Browse files Browse the repository at this point in the history
  • Loading branch information
KrosFire committed Dec 21, 2024
1 parent d7321ee commit c7644c6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ install-path = "CARGO_HOME"
# Whether to install an updater program
install-updater = true
# Extra static files to include in each App (path relative to this Cargo.toml's dir)
include = ["std", "assets", "uninstall.sh"]
include = ["std", "assets", "uninstall.ab"]
# Success installation message
custom-success-msg = "Amber has been installed successfully. 🎉\n> Now you can use amber by typing `amber` in your terminal."
12 changes: 12 additions & 0 deletions uninstall.ab
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

let amber_path = $command -v amber$ failed {
echo "Amber is not in $PATH."
exit 1
}

let amber_installation_dir= trust $dirname "\$(readlink -f {amber_path})"$

echo "Uninstalling Amber..."
trust $rm -f {amber_path}$
trust $rm -rf {amber_installation_dir}$
echo "Amber uninstalled. See you later, 🐊"
14 changes: 0 additions & 14 deletions uninstall.sh

This file was deleted.

0 comments on commit c7644c6

Please sign in to comment.