feat: add metadata upload for Windows and Linux updates, update release file handling, and implement app version retrieval

This commit is contained in:
litruv
2026-02-22 00:13:00 +11:00
parent 00080782a3
commit e076bde9b0
4 changed files with 30 additions and 3 deletions

View File

@@ -112,6 +112,12 @@ jobs:
name: Paarrot-Windows-x64-portable.exe name: Paarrot-Windows-x64-portable.exe
path: dist-electron/Paarrot-*-win-x64.portable.exe path: dist-electron/Paarrot-*-win-x64.portable.exe
- name: Upload Windows update metadata
uses: actions/upload-artifact@v3
with:
name: latest.yml
path: dist-electron/latest.yml
build-linux: build-linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: increment-version needs: increment-version
@@ -166,6 +172,12 @@ jobs:
name: Paarrot-Linux-x64.rpm name: Paarrot-Linux-x64.rpm
path: dist-electron/Paarrot-*-linux-x86_64.rpm path: dist-electron/Paarrot-*-linux-x86_64.rpm
- name: Upload Linux update metadata
uses: actions/upload-artifact@v3
with:
name: latest-linux.yml
path: dist-electron/latest-linux.yml
create-release: create-release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [increment-version, build-windows, build-linux] needs: [increment-version, build-windows, build-linux]
@@ -222,7 +234,7 @@ jobs:
- name: Prepare release files - name: Prepare release files
run: | run: |
mkdir -p release-files mkdir -p release-files
find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.rpm" -o -name "*.dmg" -o -name "*.zip" \) -exec cp {} release-files/ \; find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.deb" -o -name "*.rpm" -o -name "*.dmg" -o -name "*.zip" -o -name "*.yml" \) -exec cp {} release-files/ \;
ls -la release-files/ ls -la release-files/
- name: Create or Update Release - name: Create or Update Release

View File

@@ -11,7 +11,7 @@
"allowCustomHomeservers": true, "allowCustomHomeservers": true,
"calling": { "calling": {
"livekitServiceUrl": "https://b.ruv.wtf/matrix-rtc/livekit/jwt" "livekitServiceUrl": ""
}, },
"featuredCommunities": { "featuredCommunities": {

View File

@@ -32,6 +32,10 @@
], ],
"linux": { "linux": {
"target": [ "target": [
{
"target": "AppImage",
"arch": ["x64"]
},
{ {
"target": "deb", "target": "deb",
"arch": ["x64"] "arch": ["x64"]
@@ -96,5 +100,11 @@
"createStartMenuShortcut": true, "createStartMenuShortcut": true,
"shortcutName": "Paarrot" "shortcutName": "Paarrot"
}, },
"publish": null "publish": {
"provider": "github",
"owner": "litruv",
"repo": "cinny-desktop",
"host": "synbox.ruv.wtf:8418",
"protocol": "http"
}
} }

View File

@@ -476,6 +476,11 @@ ipcMain.handle('window:start-drag', () => {
if (mainWindow) mainWindow.webContents.startDrag({ file: '', icon: nativeImage.createEmpty() }); if (mainWindow) mainWindow.webContents.startDrag({ file: '', icon: nativeImage.createEmpty() });
}); });
// Get app version (Tauri-compatible API)
ipcMain.handle('plugin:app|version', () => {
return app.getVersion();
});
// Open external URL // Open external URL
ipcMain.handle('open-external-url', async (event, url) => { ipcMain.handle('open-external-url', async (event, url) => {
try { try {