Commit 4724ab5 1 parent 2d6e8f5 commit 4724ab5 Copy full SHA for 4724ab5
File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if type update-alternatives 2> /dev/null >&1 ; then
4
+ # Remove previous link if it doesn't use update-alternatives
5
+ if [ -L ' /usr/bin/mihomo-party' -a -e ' /usr/bin/mihomo-party' -a " ` readlink ' /usr/bin/mihomo-party' ` " != ' /etc/alternatives/mihomo-party' ]; then
6
+ rm -f ' /usr/bin/mihomo-party'
7
+ fi
8
+ update-alternatives --install ' /usr/bin/mihomo-party' ' mihomo-party' ' /opt/mihomo-party/mihomo-party' 100 || ln -sf ' /opt/mihomo-party/mihomo-party' ' /usr/bin/mihomo-party'
9
+ else
10
+ ln -sf ' /opt/mihomo-party/mihomo-party' ' /usr/bin/mihomo-party'
11
+ fi
12
+
13
+ chmod 4755 ' /opt/mihomo-party/chrome-sandbox' || true
14
+
15
+ if hash update-mime-database 2> /dev/null; then
16
+ update-mime-database /usr/share/mime || true
17
+ fi
18
+
19
+ if hash update-desktop-database 2> /dev/null; then
20
+ update-desktop-database /usr/share/applications || true
21
+ fi
Original file line number Diff line number Diff line change 58
58
maintainer : mihomo-party
59
59
category : Utility
60
60
artifactName : ${name}-linux-${version}-${arch}.${ext}
61
+ deb :
62
+ afterInstall : " build/linux/deb/postinst"
61
63
npmRebuild : true
62
64
publish : []
You can’t perform that action at this time.
0 commit comments