Skip to content

Commit

Permalink
chore: removes tokens from built version for smaller executables
Browse files Browse the repository at this point in the history
  • Loading branch information
smallhadroncollider committed Feb 3, 2020
1 parent ee0634d commit 095dafd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ mkdir -p "releases/$1/taskell"
# Mac
stack build --work-dir "$workDir" --ghc-options -O3

strip "$(stack path --local-install-root --work-dir $workDir)/bin/taskell" # remove tokens

tar -czvf "releases/$1/taskell-$1_x86-64-mac.tar.gz" --directory="$(stack path --local-install-root --work-dir $workDir)/bin" "taskell"


Expand All @@ -55,6 +57,8 @@ stack build --work-dir "$workDir" --docker --ghc-options -O3
LINUX_FULL_PATH=$(find "$workDir" -path "*linux*" -and -path "*bin/taskell")
LINUX_PATH=${LINUX_FULL_PATH%"taskell"}

strip "$LINUX_FULL_PATH" # remove tokens

tar -czvf "releases/$1/taskell-$1_x86-64-linux.tar.gz" --directory="$LINUX_PATH" "taskell"

mkdir -p "releases/$1/taskell/DEBIAN"
Expand Down

0 comments on commit 095dafd

Please sign in to comment.