Skip to content

Commit

Permalink
avisynth_filter: change installer and uninstaller scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Youxikong committed Jun 13, 2024
1 parent 9945f56 commit e53d75d
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions bucket/avisynth_filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,26 @@
"hash": "082db652513a931ffc81c173d266f87c39afbdb00eb8b6d2e66e25c50acf3fa0",
"installer": {
"script": [
"if (-not ((Get-Command sudo) -or $global) ) {Write-Host \"Install globally please\"}",
"if ($architecture -eq \"64bit\") {",
" sudo regsvr32 /s \"$dir\\avisynth_filter_64.ax\"",
" sudo regsvr32 /s \"$dir\\vapoursynth_filter_64.ax\"",
" Start-Process regsvr32.exe -ArgumentList \"/s\", $dir\\avisynth_filter_64.ax -Verb RunAs -Wait",
" Start-Process regsvr32.exe -ArgumentList \"/s\", $dir\\vapoursynth_filter_64.ax -Verb RunAs -Wait",
"}",
"elseif ($architecture -eq \"32bit\") {",
" sudo regsvr32 /s \"$dir\\avisynth_filter_32.ax\"",
" sudo regsvr32 /s \"$dir\\vapoursynth_filter_32.ax\"",
" Start-Process regsvr32.exe -ArgumentList \"/s\", $dir\\avisynth_filter_32.ax -Verb RunAs -Wait",
" Start-Process regsvr32.exe -ArgumentList \"/s\", $dir\\vapoursynth_filter_32.ax -Verb RunAs -Wait",
"}",
"else {",
" Write-Host \"No appropriate version\"",
" break",
" Write-Host \"No appropriate version\"",
" break",
"}"
]
},
"uninstaller": {
"script": [
"sudo regsvr32 /s /u \"$dir\\avisynth_filter_64.ax\"",
"sudo regsvr32 /s /u \"$dir\\vapoursynth_filter_64.ax\"",
"sudo regsvr32 /s /u \"$dir\\avisynth_filter_32.ax\"",
"sudo regsvr32 /s /u \"$dir\\vapoursynth_filter_32.ax\""
"Start-Process regsvr32.exe -ArgumentList \"/u /s\", $dir\\avisynth_filter_64.ax -Verb RunAs -Wait",
"Start-Process regsvr32.exe -ArgumentList \"/u /s\", $dir\\vapoursynth_filter_64.ax -Verb RunAs -Wait",
"Start-Process regsvr32.exe -ArgumentList \"/u /s\", $dir\\avisynth_filter_32.ax -Verb RunAs -Wait",
"Start-Process regsvr32.exe -ArgumentList \"/u /s\", $dir\\vapoursynth_filter_32.ax -Verb RunAs -Wait"
]
},
"checkver": {
Expand Down

0 comments on commit e53d75d

Please sign in to comment.