]> git.lizzy.rs Git - micro.git/commitdiff
Improve packaging
authorZachary Yedidia <zyedidia@gmail.com>
Mon, 6 Jul 2020 03:13:02 +0000 (03:13 +0000)
committerZachary Yedidia <zyedidia@gmail.com>
Mon, 6 Jul 2020 03:13:02 +0000 (03:13 +0000)
Slight improvements to the man page, and the man page is now
provided in prebuilt binary tarballs. Also a .deb file is now
provided as an asset along with prebuilt binary tarballs.

assets/packaging/micro.1
tools/cross-compile.sh
tools/nightly-release.sh
tools/package-deb.sh [new file with mode: 0644]
tools/pre-release.sh
tools/release.sh

index 811ba0d7dca194f9c3fe0b1f5e7b5a43429a2079..4581c12dc3d533e5d7a2fbc4c4cf69d6da057323 100644 (file)
@@ -14,6 +14,8 @@ of modern terminals. It comes as one single, batteries-included, static binary w
 As the name indicates, micro aims to be somewhat of a successor to the nano editor by being easy to install and use in a pinch, but micro also aims to be
 enjoyable to use full time, whether you work in the terminal because you prefer it (like me), or because you need to (over ssh).
 
+Use Ctrl-q to quit, Ctrl-s to save, and Ctrl-g to open the in-editor help menu.
+
 .SH OPTIONS
 .PP
 \-clean
@@ -51,7 +53,7 @@ Enable debug mode (enables logging to ./log.txt)
 Show the version number and information
 .RE
 
-Micro's plugin's can be managed at the command line with the following commands.
+Micro's plugins can be managed at the command line with the following commands.
 .RS 4
 
 .PP
@@ -119,5 +121,5 @@ and to report any newly encountered bugs you may find. We strive to correct
 bugs as swiftly as possible.
 
 .SH COPYRIGHT
-Copyright \(co 2020 Zachary Yedidia, et al.
-See /usr/share/doc/micro/LICENSE and /usr/share/doc/micro/AUTHORS for more information.
+Copyright \(co 2020 Zachary Yedidia, et al. MIT license.
+See \fBhttps://github.com/zyedidia/micro\fP for details.
index 083a10aee803298b808dafa793987bbca54b7194..8c8b39d4c53fec69fa8b12d19560b633c737c370 100755 (executable)
@@ -6,6 +6,7 @@ mkdir -p micro-$1
 cp LICENSE micro-$1
 cp README.md micro-$1
 cp LICENSE-THIRD-PARTY micro-$1
+cp assets/packaging/micro.1 micro-$1
 
 HASH="$(git rev-parse --short HEAD)"
 VERSION="$(go run tools/build-version.go)"
@@ -22,6 +23,9 @@ mv micro-$1-osx.tar.gz binaries
 # Linux
 echo "Linux 64"
 GOOS=linux GOARCH=amd64 make build
+./package-deb.sh $1
+mv micro_$1_amd64.deb binaries
+
 mv micro micro-$1
 tar -czf micro-$1-linux64.tar.gz micro-$1
 mv micro-$1-linux64.tar.gz binaries
index cb52b43e49c87e3385bf5bfe33cb7629033e095f..7cc4dcf8d5f9fe6092dd93339c7219013ad6e2cd 100755 (executable)
@@ -30,6 +30,7 @@ hub release edit nightly \
     --attach "binaries/micro-$1-osx.tar.gz" \
     --attach "binaries/micro-$1-linux64.tar.gz" \
     --attach "binaries/micro-$1-linux64-static.tar.gz" \
+    --attach "binaries/micro_$1_amd64.deb" \
     --attach "binaries/micro-$1-linux32.tar.gz" \
     --attach "binaries/micro-$1-linux-arm.tar.gz" \
     --attach "binaries/micro-$1-linux-arm64.tar.gz" \
diff --git a/tools/package-deb.sh b/tools/package-deb.sh
new file mode 100644 (file)
index 0000000..8919057
--- /dev/null
@@ -0,0 +1 @@
+fpm -s dir  -t deb --name micro --version $1 --deb-recommends xclip --description "A modern and intuitive terminal-based text editor" ./micro=/usr/bin/micro ./assets/packaging/micro.1=/usr/share/man/man1/micro.1
index 4cdbb3319ec4b5edbb62dcb1dbac2494691e4951..1ff3e1440735b2c088148ba0116987275ff72591 100755 (executable)
@@ -23,6 +23,7 @@ hub release create $tag \
     --attach "binaries/micro-$1-osx.tar.gz" \
     --attach "binaries/micro-$1-linux64.tar.gz" \
     --attach "binaries/micro-$1-linux64-static.tar.gz" \
+    --attach "binaries/micro_$1_amd64.deb" \
     --attach "binaries/micro-$1-linux32.tar.gz" \
     --attach "binaries/micro-$1-linux-arm.tar.gz" \
     --attach "binaries/micro-$1-linux-arm64.tar.gz" \
index 66ec7344c589e08c7698a332a07a0e49decdab25..d032d1e6268642446ce1b3dcb69578add78edb4e 100755 (executable)
@@ -22,6 +22,7 @@ hub release create $tag \
     --attach "binaries/micro-$1-osx.tar.gz" \
     --attach "binaries/micro-$1-linux64.tar.gz" \
     --attach "binaries/micro-$1-linux64-static.tar.gz" \
+    --attach "binaries/micro_$1_amd64.deb" \
     --attach "binaries/micro-$1-linux32.tar.gz" \
     --attach "binaries/micro-$1-linux-arm.tar.gz" \
     --attach "binaries/micro-$1-linux-arm64.tar.gz" \