Skip to content

Commit 3b5adc7

Browse files
committed
Move setup icons to Assets and update packaging
1 parent 3403d56 commit 3b5adc7

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

build/micasetup.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"TargetFramework": "net472",
1111
"Guid": "BB667EAD-0F00-4B04-8CAE-0CD7A1F1D755",
1212
"Favicon": "../branding/Logo.png",
13-
"Icon": "./FaviconSetup.png",
14-
"UnIcon": "./FaviconUninst.png",
13+
"Icon": "./Assets/FaviconSetup.png",
14+
"UnIcon": "./Assets/FaviconUninst.png",
1515
"LicenseFile": "../LICENSE-GPL.txt",
1616
"License": null,
1717
"LicenseType": null,

build/pack-setup.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,17 @@ if (-not (Test-Path $makemicaPath)) {
2828
}
2929

3030
Set-Location $scriptRoot
31+
$releaseDir = Join-Path $scriptRoot "Release"
32+
33+
if (-not (Test-Path $releaseDir)) {
34+
throw "Release output folder not found: $releaseDir"
35+
}
36+
3137
Remove-Item .\Package.7z -ErrorAction SilentlyContinue
32-
& $sevenZip a Package.7z $scriptRoot\..\src\SecondaryClick\bin\Release\net48\* -t7z -mx=9 -ms=on -m0=lzma2 -mf=BCJ2 -r -y
38+
& $sevenZip a Package.7z "$releaseDir\*" -t7z -mx=9 -ms=on -m0=lzma2 -mf=BCJ2 -r -y
3339
& $makemicaPath micasetup.json
3440

35-
Compress-Archive $scriptRoot\..\src\SecondaryClick\bin\Release\net48\* SecondaryClick-$version.zip
41+
Compress-Archive "$releaseDir\*" SecondaryClick-$version.zip
3642
Rename-Item .\SecondaryClick.exe SecondaryClick-$version.exe
3743
Rename-Item .\Package.7z SecondaryClick-$version.7z
3844

0 commit comments

Comments
 (0)