Compare commits

..

2 Commits

Author SHA1 Message Date
litruv
72193d2490 fix: add linux build scripts, remove mac builds, disable auto-publish
Some checks failed
Build / increment-version (push) Successful in 7s
Build / build-linux (push) Failing after 1m52s
Build / build-windows (push) Successful in 3m9s
Build / create-release (push) Successful in 10s
2026-02-21 18:14:06 +11:00
litruv
62c42f7b63 feat: add post-installation and post-removal scripts for package management 2026-02-21 18:12:59 +11:00
4 changed files with 38 additions and 31 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
# Post-installation script for .deb and .rpm packages
# Update desktop database for the .desktop file
if command -v update-desktop-database &> /dev/null; then
update-desktop-database -q /usr/share/applications || true
fi
# Update icon cache
if command -v gtk-update-icon-cache &> /dev/null; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
fi
# Set appropriate permissions for chrome-sandbox (required for Electron)
SANDBOX_PATH="/opt/Paarrot/chrome-sandbox"
if [ -f "$SANDBOX_PATH" ]; then
chmod 4755 "$SANDBOX_PATH" || true
fi
exit 0

View File

@@ -0,0 +1,14 @@
#!/bin/bash
# Post-removal script for .deb and .rpm packages
# Update desktop database after removal
if command -v update-desktop-database &> /dev/null; then
update-desktop-database -q /usr/share/applications || true
fi
# Update icon cache
if command -v gtk-update-icon-cache &> /dev/null; then
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor || true
fi
exit 0

View File

@@ -103,31 +103,5 @@
"createStartMenuShortcut": true,
"shortcutName": "Paarrot"
},
"mac": {
"target": [
{
"target": "dmg",
"arch": ["x64", "arm64"]
},
{
"target": "zip",
"arch": ["x64", "arm64"]
}
],
"category": "public.app-category.social-networking",
"icon": "icons/icon.icns",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build-resources/entitlements.mac.plist",
"entitlementsInherit": "build-resources/entitlements.mac.plist"
},
"dmg": {
"sign": false,
"artifactName": "${productName}-${version}-${os}-${arch}.${ext}"
},
"publish": {
"provider": "github",
"owner": "litruv",
"repo": "cinny-desktop"
}
"publish": null
}

View File

@@ -1,6 +1,6 @@
{
"name": "paarrot",
"version": "4.10.3",
"version": "4.10.2",
"description": "Yet another matrix client",
"main": "electron/main.js",
"engines": {
@@ -10,10 +10,9 @@
"dev": "concurrently \"npm run dev:vite\" \"npm run dev:electron\"",
"dev:vite": "cd cinny && npm start",
"dev:electron": "wait-on http://localhost:8080 && NODE_ENV=development electron .",
"build": "node -e \"require('fs').copyFileSync('config.json', 'cinny/config.json')\" && cd cinny && npm run build && cd .. && electron-builder",
"build": "node -e \"require('fs').copyFileSync('config.json', 'cinny/config.json')\" && cd cinny && npm run build && cd .. && electron-builder --publish never",
"build:linux": "npm run build -- --linux",
"build:win": "npm run build -- --win",
"build:mac": "npm run build -- --mac"
"build:win": "npm run build -- --win"
},
"keywords": [],
"author": "Ajay Bura",