mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
workarounds for fluter
This commit is contained in:
+2
-1
@@ -211,7 +211,8 @@ webi_path_add() {
|
||||
|
||||
# in case pathman was recently installed and the PATH not updated
|
||||
mkdir -p "$_webi_tmp"
|
||||
"$HOME/.local/bin/pathman" add "$1" | grep "export" >> "$_webi_tmp/.PATH.env" || true
|
||||
# prevent "too few arguments" output on bash when there are 0 lines of stdout
|
||||
"$HOME/.local/bin/pathman" add "$1" | grep "export" 2>/dev/null >> "$_webi_tmp/.PATH.env" || true
|
||||
}
|
||||
|
||||
# group common pre-install tasks as default
|
||||
|
||||
@@ -10,8 +10,18 @@ set -u
|
||||
#
|
||||
# Their defaults are defined in _webi/template.sh at https://github.com/webinstall/packages
|
||||
|
||||
# Every package should define these 6 variables
|
||||
pkg_cmd_name="flutter"
|
||||
|
||||
pkg_dst_cmd="$HOME/.local/opt/flutter/bin/flutter"
|
||||
pkg_dst_dir="$HOME/.local/opt/flutter"
|
||||
pkg_dst="$pkg_dst_dir"
|
||||
|
||||
pkg_src_cmd="$HOME/.local/opt/flutter-v$WEBI_VERSION/bin/flutter"
|
||||
pkg_src_dir="$HOME/.local/opt/flutter-v$WEBI_VERSION"
|
||||
pkg_src="$pkg_src_dir"
|
||||
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user