Skip to content

Commit 11a2132

Browse files
committed
add win_install_flutter
1 parent 95a1127 commit 11a2132

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

os/win.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@ function win_install_vlc() {
150150
win_startmenu_add_lnk_to_allapps "$env:LOCALAPPDATA\Programs\$pkg_name\vlc.exe"
151151
}
152152

153+
function win_install_flutter() {
154+
if (Test-Path "$env:LOCALAPPDATA\Programs\flutter\bin\flutter.bat") { return; }
155+
$url = "https://storage.googleapis.com/flutter_infra_release/releases/stable/windows/flutter_windows_3.41.6-stable.zip"
156+
win_install_exe_from_zip $url "$env:LOCALAPPDATA\Programs\flutter" "bin\flutter.bat"
157+
win_path_add "$env:LOCALAPPDATA\Programs\flutter\bin"
158+
}
159+
153160
function win_install_obs() {
154161
if (Test-Path "$env:LOCALAPPDATA\Programs\OBS\bin\64bit\obs64.exe") { return; }
155162
$api_url = "https://api.github.com/repos/obsproject/obs-studio/releases/latest"

0 commit comments

Comments
 (0)