Merge branch 'master' of https://codealvin.xyz/Alvin-Zilverstand/clipforge-game-clipper
This commit is contained in:
commit
c0769dab0d
2 files changed
+3
-10
No files matched your search
@@ -1,8 +0,0 @@
|
|||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: cargo
|
|
||||||
directory: /src-tauri
|
|
||||||
schedule:
|
|
||||||
interval: weekly
|
|
||||||
ignore:
|
|
||||||
- dependency-name: glib
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
param(
|
param(
|
||||||
[string]$Destination = "$PSScriptRoot\..\src-tauri\binaries\ffmpeg-x86_64-pc-windows-msvc.exe",
|
[string]$Destination = "$PSScriptRoot\..\src-tauri\binaries\ffmpeg-x86_64-pc-windows-msvc.exe",
|
||||||
[string]$DownloadUrl = "https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip"
|
[string]$DownloadUrl = "https://codealvin.xyz/Alvin-Zilverstand/smt/raw/branch/main/ffmpeg-9.0.2-essentials_build.zip"
|
||||||
)
|
)
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
@@ -27,7 +27,8 @@ New-Item -ItemType Directory -Force $tempRoot | Out-Null
|
|||||||
try {
|
try {
|
||||||
Write-Host "Downloading FFmpeg essentials build..."
|
Write-Host "Downloading FFmpeg essentials build..."
|
||||||
Invoke-WebRequest -UseBasicParsing -Uri $DownloadUrl -OutFile $zipPath
|
Invoke-WebRequest -UseBasicParsing -Uri $DownloadUrl -OutFile $zipPath
|
||||||
Expand-Archive -LiteralPath $zipPath -DestinationPath $tempRoot -Force
|
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||||
|
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipPath, $tempRoot)
|
||||||
$ffmpeg = Get-ChildItem -Path $tempRoot -Recurse -Filter ffmpeg.exe | Select-Object -First 1
|
$ffmpeg = Get-ChildItem -Path $tempRoot -Recurse -Filter ffmpeg.exe | Select-Object -First 1
|
||||||
if (-not $ffmpeg) {
|
if (-not $ffmpeg) {
|
||||||
throw "Downloaded archive did not contain ffmpeg.exe"
|
throw "Downloaded archive did not contain ffmpeg.exe"
|
||||||
|
|||||||
Reference in new issue
Block a user