feat: add post-installation and post-removal scripts for package management
This commit is contained in:
33
build-resources/entitlements.mac.plist
Normal file
33
build-resources/entitlements.mac.plist
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<!-- Allow JIT compilation for V8 JavaScript engine -->
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
|
||||
<!-- Allow unsigned executable memory (required for Electron) -->
|
||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
|
||||
<!-- Allow loading unsigned dylibs -->
|
||||
<key>com.apple.security.cs.disable-library-validation</key>
|
||||
<true/>
|
||||
|
||||
<!-- Network access for Matrix communication -->
|
||||
<key>com.apple.security.network.client</key>
|
||||
<true/>
|
||||
|
||||
<!-- Microphone access for voice/video calls -->
|
||||
<key>com.apple.security.device.audio-input</key>
|
||||
<true/>
|
||||
|
||||
<!-- Camera access for video calls -->
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
|
||||
<!-- Screen recording for screen sharing -->
|
||||
<key>com.apple.security.screen-recording</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
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
|
||||
Reference in New Issue
Block a user