Compare commits
2 Commits
c272570878
...
72193d2490
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72193d2490 | ||
|
|
62c42f7b63 |
20
build-resources/linux/after-install.sh
Normal file
20
build-resources/linux/after-install.sh
Normal 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
|
||||||
14
build-resources/linux/after-remove.sh
Normal file
14
build-resources/linux/after-remove.sh
Normal 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
|
||||||
@@ -103,31 +103,5 @@
|
|||||||
"createStartMenuShortcut": true,
|
"createStartMenuShortcut": true,
|
||||||
"shortcutName": "Paarrot"
|
"shortcutName": "Paarrot"
|
||||||
},
|
},
|
||||||
"mac": {
|
"publish": null
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "paarrot",
|
"name": "paarrot",
|
||||||
"version": "4.10.3",
|
"version": "4.10.2",
|
||||||
"description": "Yet another matrix client",
|
"description": "Yet another matrix client",
|
||||||
"main": "electron/main.js",
|
"main": "electron/main.js",
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -10,10 +10,9 @@
|
|||||||
"dev": "concurrently \"npm run dev:vite\" \"npm run dev:electron\"",
|
"dev": "concurrently \"npm run dev:vite\" \"npm run dev:electron\"",
|
||||||
"dev:vite": "cd cinny && npm start",
|
"dev:vite": "cd cinny && npm start",
|
||||||
"dev:electron": "wait-on http://localhost:8080 && NODE_ENV=development electron .",
|
"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:linux": "npm run build -- --linux",
|
||||||
"build:win": "npm run build -- --win",
|
"build:win": "npm run build -- --win"
|
||||||
"build:mac": "npm run build -- --mac"
|
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Ajay Bura",
|
"author": "Ajay Bura",
|
||||||
|
|||||||
Reference in New Issue
Block a user