Skip to content

Commit

Permalink
🐛fixed install script (dist zip files use a subfolder now)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-schneider committed Mar 21, 2023
1 parent 29dd847 commit 734f29b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$ErrorActionPreference = 'Stop';
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
. "$(Join-Path $toolsDir commonEnv.ps1)"

Expand All @@ -8,8 +8,11 @@ $packageArgs = @{
url = 'https://github.com/Genymobile/scrcpy/releases/download/v2.0/scrcpy-win64-v2.0.zip'
checksum = 'AE4C8D37A496B43F8974BA8F07F708E22A9570BA0CDDC3DC3A36EDBCCD4D2A20'
checksumType = 'sha256'
specificFolder = 'scrcpy-win64-v2.0'
}
Install-ChocolateyZipPackage @packageArgs
Move-Item "$(Join-Path $toolsDir scrcpy-win64-v2.0\*)" $toolsDir -Force
Remove-Item -Path "$(Join-Path $toolsDir scrcpy-win64-v2.0)"

$pp = Get-PackageParameters
if ($pp['ExcludeADB'] -eq 'true') {
Expand Down

0 comments on commit 734f29b

Please sign in to comment.