Browse Source

remove upx from dist

master
Schneider 5 years ago
parent
commit
0a16923672
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 8
      justfile

8
justfile

@ -29,9 +29,6 @@ strip_flags := "--strip-unneeded"
# Set this if you need to override it for a cross-compiling `sstrip`
sstrip_bin := "sstrip"
# Flags passed to [UPX](https://upx.github.io/)
upx_flags := "--ultra-brute"
# Example for OpenPandora cross-compilation
# strip_bin = `echo $HOME/opt/pandora-dev/arm-2011.09/bin/pandora-strip`
@ -240,15 +237,11 @@ build-dist:
{{strip_bin}} {{strip_flags}} "{{_rls_bin_path}}.stripped"
@# Allow sstrip to fail because it can't be installed via "just install-deps"
{{sstrip_bin}} "{{_rls_bin_path}}.stripped" || true
@# Allow upx to fail in case the user wants to force no UPXing by leaving it uninstalled
cp "{{_rls_bin_path}}.stripped" "{{_rls_bin_path}}.packed"
upx {{upx_flags}} "{{_rls_bin_path}}.packed" || true
@# Display the resulting file sizes so we can keep an eye on them
@# (Separate `ls` invocations are used to force the display ordering)
@printf "\n--== Final Result ==--\n"
@ls -1sh "{{_rls_bin_path}}"
@ls -1sh "{{_rls_bin_path}}.stripped"
@ls -1sh "{{_rls_bin_path}}.packed"
@printf "\n"
@ -269,7 +262,6 @@ dist-supplemental:
# Call `dist-supplemental` and `build-dist` and copy the packed binary to `dist/`
dist: build-dist dist-supplemental
@# Copy the packed command to dist/
cp "{{ _rls_bin_path }}.packed" dist/{{ _pkgname }} || \
cp "{{ _rls_bin_path }}.stripped" dist/{{ _pkgname }}
# -- Dependencies --

Loading…
Cancel
Save