Package tauri linux multi-target and zip windows app folder
This commit is contained in:
6
.github/workflows/build-and-upload.yml
vendored
6
.github/workflows/build-and-upload.yml
vendored
@@ -280,10 +280,10 @@ jobs:
|
||||
$artifactDir = "packages/tauri-app/release-tauri"
|
||||
if (Test-Path $artifactDir) { Remove-Item $artifactDir -Recurse -Force }
|
||||
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
|
||||
if ($null -ne $artifact) {
|
||||
$exe = Get-ChildItem -Path $bundleRoot -Recurse -File -Filter *.exe | Select-Object -First 1
|
||||
if ($null -ne $exe) {
|
||||
$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)
|
||||
|
||||
@@ -39,6 +39,12 @@
|
||||
"resources/server"
|
||||
],
|
||||
"icon": ["icon.icns", "icon.ico", "icon.png"],
|
||||
"targets": ["appimage"]
|
||||
"targets": ["appimage", "deb", "rpm"],
|
||||
"linux": {
|
||||
"targets": ["appimage", "deb", "rpm"]
|
||||
},
|
||||
"windows": {
|
||||
"targets": ["app"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user