Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunrisepeak committed Jan 21, 2025
1 parent 121e052 commit 359873a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/d/dotnet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ end
function install()
local install_cmd = ""
if is_host("windows") then
install_cmd = pkginfo.install_file ..
install_cmd = [[powershell -ExecutionPolicy Bypass -File ]] .. pkginfo.install_file ..
" -Channel " .. pkginfo.version ..
" -InstallDir " .. pkginfo.install_dir
else
Expand Down
3 changes: 2 additions & 1 deletion pkgs/v/vscode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ function install()
if os.host() == "windows" then
-- unzip the stable by powershell
os.mv("stable", "stable.zip")
os.exec(string.format([[powershell -Command "Expand-Archive -Path stable.zip -DestinationPath %s -Force"]], pkginfo.install_dir))
-- avoid warning info by -ExecutionPolicy Bypass
os.exec(string.format([[powershell -ExecutionPolicy Bypass -Command "Expand-Archive -Path stable.zip -DestinationPath %s -Force"]], pkginfo.install_dir))
os.tryrm("stable.zip")
else
os.exec("tar -xvf stable")
Expand Down

0 comments on commit 359873a

Please sign in to comment.