From 8d270229b32b629ddee3fed9dd12a660102ad0d2 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov Date: Tue, 3 Nov 2020 11:04:47 +0300 Subject: [PATCH 1/3] install pwsh using dotnet tool --- images/linux/scripts/installers/powershellcore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/linux/scripts/installers/powershellcore.sh b/images/linux/scripts/installers/powershellcore.sh index 0ac52072..4f700fbc 100644 --- a/images/linux/scripts/installers/powershellcore.sh +++ b/images/linux/scripts/installers/powershellcore.sh @@ -9,7 +9,8 @@ source $HELPER_SCRIPTS/os.sh # Install Powershell if isUbuntu20 ; then - snap install powershell --classic --channel=edge/useedge + dotnet tool install --tool-path /opt/microsoft/powershell/7 powershell + ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh fi if isUbuntu16 || isUbuntu18 ; then From d511b0d2da53ec9a1fb9af3224d55607240da7b6 Mon Sep 17 00:00:00 2001 From: Sergey Dolin Date: Tue, 3 Nov 2020 17:58:18 +0500 Subject: [PATCH 2/3] [windows] give full access to Temp folder (#1959) Co-authored-by: Sergey Dolin --- images/win/scripts/Installers/Finalize-VM.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Finalize-VM.ps1 b/images/win/scripts/Installers/Finalize-VM.ps1 index d0bb3d26..8e29dbe2 100644 --- a/images/win/scripts/Installers/Finalize-VM.ps1 +++ b/images/win/scripts/Installers/Finalize-VM.ps1 @@ -33,4 +33,8 @@ Remove-Item $profile.AllUsersAllHosts -Force # Clean yarn and npm cache yarn cache clean -npm cache clean --force \ No newline at end of file +npm cache clean --force + +# allow msi to write to temp folder +# see https://github.com/actions/virtual-environments/issues/1704 +icacls "C:\Windows\Temp" /q /c /t /grant Users:F /T From 2842ad4c0074b39cbb320a891acce1c50d086b45 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Wed, 4 Nov 2020 14:29:44 +0300 Subject: [PATCH 3/3] Revert "[Ubuntu] Install pwsh using dotnet tool" (#1979) --- images/linux/scripts/installers/powershellcore.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/images/linux/scripts/installers/powershellcore.sh b/images/linux/scripts/installers/powershellcore.sh index 4f700fbc..0ac52072 100644 --- a/images/linux/scripts/installers/powershellcore.sh +++ b/images/linux/scripts/installers/powershellcore.sh @@ -9,8 +9,7 @@ source $HELPER_SCRIPTS/os.sh # Install Powershell if isUbuntu20 ; then - dotnet tool install --tool-path /opt/microsoft/powershell/7 powershell - ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh + snap install powershell --classic --channel=edge/useedge fi if isUbuntu16 || isUbuntu18 ; then