Package tauri linux multi-target and zip windows app folder

This commit is contained in:
Shantur Rathore
2025-11-21 20:15:23 +00:00
parent d9adab3022
commit 08f3d75015
2 changed files with 10 additions and 4 deletions

View File

@@ -280,10 +280,10 @@ jobs:
$artifactDir = "packages/tauri-app/release-tauri" $artifactDir = "packages/tauri-app/release-tauri"
if (Test-Path $artifactDir) { Remove-Item $artifactDir -Recurse -Force } if (Test-Path $artifactDir) { Remove-Item $artifactDir -Recurse -Force }
New-Item -ItemType Directory -Path $artifactDir | Out-Null New-Item -ItemType Directory -Path $artifactDir | Out-Null
$artifact = Get-ChildItem -Path $bundleRoot -Recurse -File | Where-Object { $_.Extension -in '.exe', '.msi' } | Select-Object -First 1 $exe = Get-ChildItem -Path $bundleRoot -Recurse -File -Filter *.exe | Select-Object -First 1
if ($null -ne $artifact) { if ($null -ne $exe) {
$dest = Join-Path $artifactDir ("CodeNomad-Tauri-$env:VERSION-windows-x64.zip") $dest = Join-Path $artifactDir ("CodeNomad-Tauri-$env:VERSION-windows-x64.zip")
Compress-Archive -Path $artifact.FullName -DestinationPath $dest -Force Compress-Archive -Path $exe.Directory.FullName -DestinationPath $dest -Force
} }
- name: Upload Tauri release assets (Windows) - name: Upload Tauri release assets (Windows)

View File

@@ -39,6 +39,12 @@
"resources/server" "resources/server"
], ],
"icon": ["icon.icns", "icon.ico", "icon.png"], "icon": ["icon.icns", "icon.ico", "icon.png"],
"targets": ["appimage"] "targets": ["appimage", "deb", "rpm"],
"linux": {
"targets": ["appimage", "deb", "rpm"]
},
"windows": {
"targets": ["app"]
}
} }
} }