-
-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from KingAkeem/dev
Adding ability to turn torBot into a single executable
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Makes directory for dependencies and executable to be installed | ||
mkdir -p tmp_build | ||
mkdir -p tmp_dist | ||
|
||
# Creates executable file and sends dependences to the recently created directories | ||
pyinstaller --onefile --workpath ./tmp_build --distpath ./tmp_dist torBot.py | ||
|
||
# Puts the executable in the current directory | ||
mv tmp_dist/torBot . | ||
|
||
# Removes both directories and unneeded file | ||
rm -r tmp_build tmp_dist | ||
rm torBot.spec |