mostly update comments, fix gitea releases.js
[webi-installers/.git] / flutter / install.bash
index 3223a99fd2b8a43943216d0207a148c76d25792f..5962242c308c5798cf9776a662285e7aaa962bcb 100644 (file)
@@ -21,6 +21,8 @@ set -u
 #
 # Their defaults are defined in webi/template.bash at https://github.com/webinstall/packages
 
+pkg_cmd_name="flutter"
+
 pkg_get_current_version() {
     # 'flutter --version' outputs a lot of information:
     #       Flutter 1.19.0-4.1.pre • channel beta • https://github.com/flutter/flutter.git
@@ -69,8 +71,9 @@ pkg_install() {
 }
 
 pkg_post_install() {
-    # web_path_add is defined in webi/template.bash at https://github.com/webinstall/packages
+    pkg_link_new_version
 
-    # Adds "$HOME/.local/opt/flutter-v$WEBI_VERSION" to PATH
+    # web_path_add is defined in webi/template.bash at https://github.com/webinstall/packages
+    # Adds "$HOME/.local/opt/flutter" to PATH
     webi_path_add "$pkg_common_bin"
 }