Use MicaSetup to create .exe-type installer

Check out how it works here: https://github.com/lemutec/MicaSetup
This commit is contained in:
ema
2024-12-15 11:45:39 +08:00
parent dc67ab0065
commit aa53627902
6 changed files with 61 additions and 1 deletions

16
Scripts/pack-setup.ps1 Normal file
View File

@@ -0,0 +1,16 @@
Set-Location ../Build
Remove-Item .\QuickLook.7z -ErrorAction SilentlyContinue
7z a QuickLook.7z .\Package\* -t7z -mx=5 -mf=BCJ2 -r -y
makemica micasetup.json
Write-Output "This file makes QuickLook portable." >> .\Package\portable.lock
7z a QuickLook.7z .\Package\portable.lock -t7z -mx=5 -mf=BCJ2 -r -y
$version = git describe --always --tags --exclude latest
Remove-Item .\QuickLook-$version.7z -ErrorAction SilentlyContinue
Rename-Item .\QuickLook.7z QuickLook-$version.7z
Remove-Item .\QuickLook-$version.exe -ErrorAction SilentlyContinue
Rename-Item .\QuickLook.exe QuickLook-$version.exe
pause