diff --git a/.gitignore b/.gitignore index a007fea..7155c41 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build/* +dist/* diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..05d323b --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +mkdir -p build +cd build +pyinstaller --distpath=../dist --workpath=../build ../src/have_I_b33n_pwned.py diff --git a/compile.sh b/compile.sh deleted file mode 100644 index 2185f64..0000000 --- a/compile.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -python -m pyinstaller --distpath=dist --workpath=build src/have_I_b€€n_pwned.py diff --git a/dist/foo b/dist/foo deleted file mode 100644 index e69de29..0000000 diff --git a/have_I_b33n_pwned.spec b/have_I_b33n_pwned.spec new file mode 100644 index 0000000..f2ab5d7 --- /dev/null +++ b/have_I_b33n_pwned.spec @@ -0,0 +1,36 @@ +# -*- mode: python -*- + +block_cipher = None + + +a = Analysis(['..\\src\\have_I_b33n_pwned.py'], + pathex=['C:\\Users\\AmP\\have_i_b33n_pwned'], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + [], + exclude_binaries=True, + name='have_I_b33n_pwned', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=True ) +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + name='have_I_b33n_pwned') diff --git a/src/have_I_b33n_pwned.py b/src/have_I_b33n_pwned.py index 5f598ad..57f6449 100644 --- a/src/have_I_b33n_pwned.py +++ b/src/have_I_b33n_pwned.py @@ -27,7 +27,7 @@ -from sys import argv, stdout +from sys import argv, stdout, exit from hashlib import sha1 from getpass import getpass from requests import get diff --git a/tests/foo b/tests/foo deleted file mode 100644 index e69de29..0000000