Add wezterm.desktop file to the debian package

This makes it a bit more convenient to launch wezterm, especially
on eg: a chromebook
This commit is contained in:
Wez Furlong committed 2019-11-20 06:37:32 +00:00
1 parent d397976acf
commit cdc77840b7
3 files changed
+11 -1

No files matched your search

+1
View File
@@ -2,6 +2,7 @@
/docs/_site
/WezTerm*.zip
/wezterm*.deb
/wezterm*.tar.xz
/pkg
/Cargo.lock
/target/
+7
View File
@@ -0,0 +1,7 @@
[Desktop Entry]
Name=WezTerm
Comment=Wez's Terminal Emulator
Icon=/usr/share/wezterm/terminal.png
Exec=wezterm
Type=Application
Categories=Terminal
+3 -1
View File
@@ -55,7 +55,7 @@ case $OSTYPE in
case `lsb_release -ds` in
Ubuntu*|Debian*)
rm -rf pkg
mkdir -p pkg/debian/usr/bin pkg/debian/DEBIAN
mkdir -p pkg/debian/usr/bin pkg/debian/DEBIAN pkg/debian/usr/share/{applications,wezterm}
cat > pkg/debian/DEBIAN/control <<EOF
Package: wezterm
Version: ${TAG_NAME#nightly-}
@@ -71,6 +71,8 @@ Description: Wez's Terminal Emulator.
Depends: libc6, libegl-mesa0, libxcb-icccm4, libxcb-ewmh2, libxcb-keysyms1, libxcb-xkb1, libxkbcommon0, libxkbcommon-x11-0, libfontconfig1, xdg-utils, libxcb-render0, libxcb-shape0, libx11-6, libegl1
EOF
install -Dsm755 target/release/wezterm pkg/debian/usr/bin
install -Dm644 assets/icon/terminal.png pkg/debian/usr/share/wezterm/terminal.png
install -Dm644 assets/wezterm.desktop pkg/debian/usr/share/applications/wezterm.desktop
if [[ "$BUILD_REASON" == "Schedule" ]] ; then
debname=wezterm-nightly
else