File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed
Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -1177,7 +1177,7 @@ function setup_nasm() {
11771177 }
11781178 elseif ($IsLinux ) {
11791179 if ($ (which dpkg)) {
1180- sudo apt install nasm
1180+ sudo apt- get install - y nasm
11811181 }
11821182 }
11831183 elseif ($IsMacOS ) {
@@ -1226,7 +1226,7 @@ function setup_unzip() {
12261226 if (! $unzip_cmd_info ) {
12271227 if ($IsLinux ) {
12281228 if ($ (which dpkg)) {
1229- sudo apt install unzip
1229+ sudo apt- get install - y unzip
12301230 }
12311231 elseif ($ (which pacman)) {
12321232 sudo pacman - S -- needed -- noconfirm unzip
@@ -1259,7 +1259,7 @@ function setup_7z() {
12591259 $1k.addpath ($7z_bin )
12601260 }
12611261 elseif ($IsLinux ) {
1262- if ($ (which dpkg)) { sudo apt install p7zip- full }
1262+ if ($ (which dpkg)) { sudo apt- get install - y p7zip- full }
12631263 }
12641264 elseif ($IsMacOS ) {
12651265 brew install p7zip
Original file line number Diff line number Diff line change @@ -67,12 +67,10 @@ elif [ $HOST_OS = 'Linux' ] ; then
6767
6868 sudo_cmd=$( which sudo)
6969 if ! command -v curl > /dev/null 2>&1 ; then
70- $sudo_cmd apt update
71- $sudo_cmd apt install --allow-unauthenticated --yes curl
70+ $sudo_cmd apt-get update
71+ $sudo_cmd apt-get install -y curl
7272 fi
73- # if uname -a | grep -q "Ubuntu"; then
74- # $sudo_cmd snap install powershell --classic
75- # else
73+
7674 pwsh_pkg=" powershell_$pwsh_ver -1.deb_$icu_arch .deb"
7775 pwsh_pkg_out=" $cacheDir /$pwsh_pkg "
7876 if [ ! -f " $pwsh_pkg_out " ] ; then
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ else {
334334 $webkit2gtk_dev = 'libwebkit2gtk-4.0-dev'
335335 }
336336
337- sudo apt update
337+ sudo apt-get update
338338 # for vm, libxxf86vm-dev also required
339339
340340 $DEPENDS = @()
@@ -359,13 +359,13 @@ else {
359359 $DEPENDS += 'libvlc-dev', 'libvlccore-dev', 'vlc'
360360
361361 # if vlc encouter codec error, install
362- # sudo apt install ubuntu-restricted-extras
362+ # sudo apt-get install ubuntu-restricted-extras
363363 println "Install packages: $DEPENDS ..."
364364 if ("$env:GITHUB_ACTIONS" -eq 'true') {
365- sudo apt install --allow-unauthenticated --yes $DEPENDS > /dev/null
365+ sudo apt-get install --allow-unauthenticated --yes $DEPENDS > /dev/null
366366 }
367367 else {
368- sudo apt install --allow-unauthenticated --yes $DEPENDS
368+ sudo apt-get install --allow-unauthenticated --yes $DEPENDS
369369 }
370370 }
371371 elseif ($LinuxDistro -eq 'Arch') {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ if (($stage -band 1)) {
1818
1919 if ($IsLinux -and $LinuxDistro -eq ' Debian' )
2020 {
21- sudo apt install python3- yaml python3- cheetah
21+ sudo apt- get install - y python3- yaml python3- cheetah
2222 }
2323 else
2424 {
You can’t perform that action at this time.
0 commit comments