Skip to content

Commit

Permalink
Fix permissions of included binaries
Browse files Browse the repository at this point in the history
Work done for #196
  • Loading branch information
atruskie committed Mar 12, 2020
1 parent 1dca915 commit 822c3ae
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build/set_permissions.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@


$tools = @(
"ffmpeg",
"ffprobe",
"sox",
"soxi",
"wvunpack"
)

foreach ($tool in $tools) {
$files = Get-ChildItem "$PSScriptRoot/../lib/audio-utils" -Include "$tool*" -Recurse -File
| Where-Object { $_.Name -in $tools -or $_.Extension -eq ".exe" }

foreach ($file in $files) {
if (!$IsWindows) {
chmod a+x $file
}

git update-index --chmod=+x $file

}
}

0 comments on commit 822c3ae

Please sign in to comment.