forked from olcxjas-softworks/LarpixClient
update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
25
electron/node_modules/app-builder-lib/templates/linux/after-remove.tpl
generated
vendored
25
electron/node_modules/app-builder-lib/templates/linux/after-remove.tpl
generated
vendored
|
|
@ -1,4 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Delete the link to the binary
|
||||
rm -f '/usr/bin/${executable}'
|
||||
# update-alternatives --remove <name> <path>: 'path' must be the registered alternative binary,
|
||||
# not the generic symlink — see https://man7.org/linux/man-pages/man1/update-alternatives.1.html
|
||||
if type update-alternatives >/dev/null 2>&1; then
|
||||
update-alternatives --remove '${executable}' '/opt/${sanitizedProductName}/${executable}'
|
||||
else
|
||||
rm -f '/usr/bin/${executable}'
|
||||
fi
|
||||
|
||||
APPARMOR_PROFILE_DEST='/etc/apparmor.d/${executable}'
|
||||
|
||||
# Remove and unload apparmor profile.
|
||||
if [ -f "$APPARMOR_PROFILE_DEST" ]; then
|
||||
# Unload the profile from the running kernel before deleting the file so the
|
||||
# policy is not left enforced until the next reboot. Mirror the chroot guard
|
||||
# used in the after-install script — live AppArmor operations are not
|
||||
# meaningful inside a chroot.
|
||||
# https://wiki.debian.org/AppArmor/HowToUse
|
||||
if apparmor_status --enabled > /dev/null 2>&1; then
|
||||
if ! { [ -x '/usr/bin/ischroot' ] && /usr/bin/ischroot; } && hash apparmor_parser 2>/dev/null; then
|
||||
apparmor_parser --remove "$APPARMOR_PROFILE_DEST" || true
|
||||
fi
|
||||
fi
|
||||
rm -f "$APPARMOR_PROFILE_DEST"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue