Skip to content

Commit

Permalink
修改 ubuntu打包脚本;
Browse files Browse the repository at this point in the history
  • Loading branch information
RealChuan committed Dec 14, 2023
1 parent 4f66a4d commit 07d76e2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packaging/ubuntu/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: myapp
Version: 1.2.9
Version: 0.0.1
Architecture: amd64
Description: myapp
Maintainer: 1070753498@qq.com
4 changes: 4 additions & 0 deletions packaging/ubuntu/DEBIAN/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

rm -f /usr/share/applications/MyApp.desktop

if ["$1" = "purge"]; then
rm -rf ~/.config/MyApp
fi

exit 0
4 changes: 1 addition & 3 deletions packaging/ubuntu/DEBIAN/preinst
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/sh

if [ -f "/opt/MyApp/MyApp" ]; then
killall MyApp
fi
killall -q MyApp

exit 0
6 changes: 2 additions & 4 deletions packaging/ubuntu/DEBIAN/prerm
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/sh

if [ -f "/opt/MyApp/MyApp" ]; then
killall MyApp
fi
killall -q MyApp

rm -f /usr/share/applications/MyApp.desktop
rm -rf ~/.config/MyApp

exit 0

0 comments on commit 07d76e2

Please sign in to comment.