diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e71dcf1..8891f02 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -111,6 +111,12 @@ jobs: with: name: Paarrot-Windows-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: runs-on: ubuntu-latest @@ -165,6 +171,12 @@ jobs: with: name: Paarrot-Linux-x64.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: runs-on: ubuntu-latest @@ -222,7 +234,7 @@ jobs: - name: Prepare release files run: | 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/ - name: Create or Update Release diff --git a/config.json b/config.json index 57c577a..c9b3dcc 100644 --- a/config.json +++ b/config.json @@ -11,7 +11,7 @@ "allowCustomHomeservers": true, "calling": { - "livekitServiceUrl": "https://b.ruv.wtf/matrix-rtc/livekit/jwt" + "livekitServiceUrl": "" }, "featuredCommunities": { diff --git a/electron-builder.json5 b/electron-builder.json5 index 8363d30..21e02b1 100644 --- a/electron-builder.json5 +++ b/electron-builder.json5 @@ -32,6 +32,10 @@ ], "linux": { "target": [ + { + "target": "AppImage", + "arch": ["x64"] + }, { "target": "deb", "arch": ["x64"] @@ -96,5 +100,11 @@ "createStartMenuShortcut": true, "shortcutName": "Paarrot" }, - "publish": null + "publish": { + "provider": "github", + "owner": "litruv", + "repo": "cinny-desktop", + "host": "synbox.ruv.wtf:8418", + "protocol": "http" + } } diff --git a/electron/main.js b/electron/main.js index 5f14543..b0fa9cd 100644 --- a/electron/main.js +++ b/electron/main.js @@ -476,6 +476,11 @@ ipcMain.handle('window:start-drag', () => { 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 ipcMain.handle('open-external-url', async (event, url) => { try {