mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
fix(linux): package AppArmor profile in CEF deb
This commit is contained in:
5 files changed
+18
-10
No files matched your search
@@ -715,6 +715,11 @@ jobs:
|
||||
mise run cef:package "$VERSION" \
|
||||
src-tauri/target/release/sable "$DISPLAY_NAME"
|
||||
|
||||
DEB="src-tauri/target/release/bundle/deb/Sable-${VERSION}-linux-x86_64.deb"
|
||||
dpkg-deb --contents "$DEB" | grep -q 'etc/apparmor.d/sable$'
|
||||
dpkg-deb --ctrl-tarfile "$DEB" | tar -t | grep -qx './postinst'
|
||||
dpkg-deb --ctrl-tarfile "$DEB" | tar -t | grep -qx './prerm'
|
||||
|
||||
RELEASE_DIR="src-tauri/target/release/cef-pkg/release"
|
||||
mkdir -p "$RELEASE_DIR"
|
||||
cp src-tauri/target/release/sable "$RELEASE_DIR/sable"
|
||||
|
||||
@@ -20,10 +20,18 @@ contents:
|
||||
dst: /usr
|
||||
type: tree
|
||||
expand: true
|
||||
- src: src-tauri/packaging/deb/apparmor/sable
|
||||
dst: /etc/apparmor.d/sable
|
||||
type: config
|
||||
packager: deb
|
||||
|
||||
overrides:
|
||||
deb:
|
||||
scripts:
|
||||
postinstall: src-tauri/packaging/deb/postinst
|
||||
preremove: src-tauri/packaging/deb/prerm
|
||||
depends:
|
||||
- apparmor
|
||||
- libgtk-3-0
|
||||
- libnss3
|
||||
- libnspr4
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$1" = purge ] && command -v apparmor_parser >/dev/null 2>&1; then
|
||||
apparmor_parser -R /etc/apparmor.d/sable || true
|
||||
fi
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if command -v apparmor_parser >/dev/null 2>&1; then
|
||||
apparmor_parser -R /etc/apparmor.d/sable || true
|
||||
fi
|
||||
@@ -34,11 +34,6 @@
|
||||
},
|
||||
"linux": {
|
||||
"deb": {
|
||||
"files": {
|
||||
"/etc/apparmor.d/sable": "packaging/deb/apparmor/sable"
|
||||
},
|
||||
"postInstallScript": "packaging/deb/postinst",
|
||||
"postRemoveScript": "packaging/deb/postrm",
|
||||
"depends": [
|
||||
"xwayland",
|
||||
"gstreamer1.0-plugins-good",
|
||||
|
||||
Reference in new issue
Block a user