Add RPM target for Linux, install 7z fallback on Windows
- Add rpm to bundle targets and install rpm on Linux CI - Upload both .deb and .rpm from Linux build - Install 7-Zip via choco if not already available on Windows runner Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -133,7 +133,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils
|
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf xdg-utils rpm
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@@ -163,7 +163,7 @@ jobs:
|
|||||||
|
|
||||||
echo "Release ID: ${RELEASE_ID}"
|
echo "Release ID: ${RELEASE_ID}"
|
||||||
|
|
||||||
find src-tauri/target/release/bundle -type f -name "*.deb" | while IFS= read -r file; do
|
find src-tauri/target/release/bundle -type f \( -name "*.deb" -o -name "*.rpm" \) | while IFS= read -r file; do
|
||||||
filename=$(basename "$file")
|
filename=$(basename "$file")
|
||||||
encoded_name=$(echo "$filename" | sed 's/ /%20/g')
|
encoded_name=$(echo "$filename" | sed 's/ /%20/g')
|
||||||
echo "Uploading ${filename} ($(du -h "$file" | cut -f1))..."
|
echo "Uploading ${filename} ($(du -h "$file" | cut -f1))..."
|
||||||
@@ -223,6 +223,9 @@ jobs:
|
|||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
# Compress-Archive has a 2GB limit; use 7z for CUDA builds
|
# Compress-Archive has a 2GB limit; use 7z for CUDA builds
|
||||||
|
if (-not (Get-Command 7z -ErrorAction SilentlyContinue)) {
|
||||||
|
choco install 7zip -y
|
||||||
|
}
|
||||||
7z a -tzip -mx=5 src-tauri\sidecar.zip .\python\dist\voice-to-notes-sidecar\*
|
7z a -tzip -mx=5 src-tauri\sidecar.zip .\python\dist\voice-to-notes-sidecar\*
|
||||||
|
|
||||||
# ── Tauri app ──
|
# ── Tauri app ──
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
},
|
},
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"targets": ["deb", "msi", "dmg"],
|
"targets": ["deb", "rpm", "msi", "dmg"],
|
||||||
"icon": [
|
"icon": [
|
||||||
"icons/32x32.png",
|
"icons/32x32.png",
|
||||||
"icons/128x128.png",
|
"icons/128x128.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user