feat: add metadata upload for Windows and Linux updates, update release file handling, and implement app version retrieval
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"allowCustomHomeservers": true,
|
||||
|
||||
"calling": {
|
||||
"livekitServiceUrl": "https://b.ruv.wtf/matrix-rtc/livekit/jwt"
|
||||
"livekitServiceUrl": ""
|
||||
},
|
||||
|
||||
"featuredCommunities": {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user