From d491ce9f3e77dc1d7f949805b0bc3a8afb1ea85a Mon Sep 17 00:00:00 2001 From: Hong Minhee Date: Mon, 1 May 2017 22:52:31 +0900 Subject: [PATCH] Compress the static binary using UPX --- .travis.yml | 1 + nicovideo-translator.cabal | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9474095..64a2804 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ before_deploy: - mkdir -p /tmp/sbuild - export NIGHTLY_BINARY_PATH="/tmp/sbuild/nicovideo-translator-$(uname -s | tr '[A-Z]' '[a-z]')-$(uname -m)" - cp "$(stack path --local-bin-path)/nicovideo-translator" "$NIGHTLY_BINARY_PATH" +- upx-ucl -9 "$NIGHTLY_BINARY_PATH" deploy: - provider: hackage username: hongminhee diff --git a/nicovideo-translator.cabal b/nicovideo-translator.cabal index 185d824..9e18c81 100644 --- a/nicovideo-translator.cabal +++ b/nicovideo-translator.cabal @@ -1,5 +1,5 @@ name: nicovideo-translator -version: 0.3.0.1 +version: 0.3.0.2 synopsis: Nico Nico Douga (ニコニコ動画) Comment Translator description: Translate comments (written in Japanese) on Nico Nico Douga (ニコニコ動画) to your language.