Files
QuickLook/Scripts/pack-7z.ps1
2025-05-14 02:18:01 +08:00

11 lines
351 B
PowerShell

$version = git describe --always --tags --exclude latest
Set-Location ../Build
Write-Output "This file makes QuickLook portable." >> .\Package\portable.lock
Remove-Item .\QuickLook-$version.7z -ErrorAction SilentlyContinue
7z.exe a .\QuickLook-$version.7z .\Package\* -t7z -mx=9 -ms=on -m0=lzma2 -mf=BCJ2 -r -y
Remove-Item .\Package\portable.lock