From cd93f287fdce6ba3e86a15ea5acf531d68099d08 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 24 Mar 2019 17:49:28 -0700 Subject: [PATCH] Ask travis to build and publish a .deb to a github release --- .gitignore | 2 ++ .travis.yml | 4 +++- ci/deploy.sh | 26 ++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ca2f4c4a8..3dc657b0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .DS_Store /wezterm*.snap /WezTerm*.zip +/wezterm*.deb +/pkg /Cargo.lock /target/ **/*.rs.bk diff --git a/.travis.yml b/.travis.yml index ac79184d3..c12f35a4b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -54,7 +54,9 @@ deploy: api_key: secure: IfuwRuR0rXgdxnBcjFzOgKwxWMs/xpB5J1WpSdgBJjbA6AGdB2K5FUqWAEm6XxWD/M9QRAT4JrYgQR/+bKXOhXDAL8bOCsG9RAQirfGZ0Ne7TvrJKHqmx3CrCPo5OB49Fh12Q8f6wjOnwT8MMmdVHIreKVlj9A+EjJYgyNZKhrXDZH/IB8zXKAeVI6bUs0e3bIpfKGDYzIkEJV37115Hi7FnU781q8EQYnadMq4YYQRQpuTspD7GQ/Thur+x/+mExmQ+LG1vBY07Fu/H+p7ikrLMVmIuaUKRC/X09xGKABP3lKVw8lzpQtwlSWRVt1qQYDqNR1dklPD6LcR8jrDDtN+bOCgD6SXQc1kU9iQJizng0a3fibbJmAj2Om9kTRW73OfMbDgX1jDKhA9Swt/CJ6nbHqrRVdczhkdIzFdV3ceNkCSBMrlDnOsvrZWVp9foQFjTa0Ij6q5C1yLW8D8hkoY6lJJeGuzFqBPcPBhHe463/Fgs77xAVrfA8JLOEZbt6yMwGv0dNcsJihr39zVyNlRLeaLEl2wDTDfL2L4j98YM8hR7vo81awls1ZGwWBKqTw4dt2XQmsfY6Rn0WZJBqdiEPOS+C31Bqcq2dFfbJyKswrQQsoNxxl2KiKNo4VWS9xNmRvaQlNdKfxk2osM4nbf+YpNK4DKuqX15DdgVtrE= file_glob: true - file: WezTerm*.zip + file: + - WezTerm*.zip + - wezterm*.deb skip_cleanup: true on: repo: wez/wezterm diff --git a/ci/deploy.sh b/ci/deploy.sh index 87c0c41ba..6982c3453 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -31,6 +31,32 @@ case $OSTYPE in mkdir $zipdir cp target/release/wezterm.exe target/release/wezterm.pdb $zipdir 7z a -tzip $zipdir.zip $zipdir + ;; + linux-gnu) + case `lsb_release -ds` in + Ubuntu*|Debian*) + rm -rf pkg + mkdir -p pkg/debian/usr/bin pkg/debian/DEBIAN + cat > pkg/debian/DEBIAN/control < +Section: utils +Priority: optional +Homepage: https://github.com/wez/wezterm +Description: Wez's Terminal Emulator. + wezterm is a terminal emulator with support for modern features + such as fonts with ligatures, hyperlinks, tabs and multiple + windows. +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 + cp target/release/wezterm pkg/debian/usr/bin + fakeroot dpkg-deb --build pkg/debian wezterm-$TAG_NAME.deb + rm -rf pkg + ;; + esac + ;; *) ;;