Skip to content

Commit

Permalink
feat: remove upx because it doesn't reduce so much the package size
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmet2mir committed Apr 15, 2021
1 parent b4e58b1 commit a937eb1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ syntax: poetry.lock
poetry run flake8 wildq --count --exit-zero --statistics
poetry run bandit -r wildq

upx:
@echo "Target upx"
curl -sL https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz | tar -xJ -C .
mv ./upx-3.96-amd64_linux upx
# upx:
# @echo "Target upx"
# curl -sL https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz | tar -xJ -C .
# mv ./upx-3.96-amd64_linux upx

build: poetry.lock
@echo "Target build"
Expand All @@ -72,15 +72,13 @@ build: poetry.lock
mkdir -p artifacts/rpm
poetry build

binary-linux: upx build
binary-linux: build
@echo "Target binary-linux"
poetry run pyinstaller --upx-dir=upx --distpath artifacts/binaries --clean --onefile --name wildq wildq/__main__.py
poetry run pyinstaller --distpath artifacts/binaries --clean --onefile --name wildq wildq/__main__.py

binary-macos: build
@echo "Target binary-macos"
brew install upx
ls /usr/local/Cellar/upx/3.96/bin
poetry run pyinstaller --upx-dir=/usr/local/Cellar/upx/3.96/bin --distpath artifacts/binaries --clean --onefile --name wildq wildq/__main__.py
poetry run pyinstaller --distpath artifacts/binaries --clean --onefile --name wildq wildq/__main__.py

binary-copy:
chmod +x artifacts/binaries/wildq
Expand Down

0 comments on commit a937eb1

Please sign in to comment.