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:
|
with:
|
||||||
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
|
||||||
@@ -165,6 +171,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
"allowCustomHomeservers": true,
|
"allowCustomHomeservers": true,
|
||||||
|
|
||||||
"calling": {
|
"calling": {
|
||||||
"livekitServiceUrl": "https://b.ruv.wtf/matrix-rtc/livekit/jwt"
|
"livekitServiceUrl": ""
|
||||||
},
|
},
|
||||||
|
|
||||||
"featuredCommunities": {
|
"featuredCommunities": {
|
||||||
|
|||||||
@@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user