Skip to content

Commit

Permalink
v1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Beelzebub2 committed Jul 2, 2024
1 parent 3c1c3b0 commit 6a4b589
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
include:
- os: windows-latest
TARGET: windows
CMD_BUILD: pyinstaller -F -n AutoBanana-win64 AutoBanana.py
CMD_BUILD: pyinstaller -F -n AutoBanana-win64 -i banana.ico AutoBanana.py
OUT_FILE_NAME: AutoBanana-win64.exe
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,4 @@ cython_debug/
usage_logged.txt
user_id.txt
test.py
Create Release.bat
18 changes: 18 additions & 0 deletions AutoBanana.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def register(self):
logging.error(f"{timestamp} - Failed to log usage.")
else:
print(f"{Fore.YELLOW}{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - {Fore.GREEN}Usage already logged.")


def main(self):
self.register()
Expand All @@ -282,8 +283,25 @@ def main(self):
self.game_open_count += 1
self.countdown(3 * 60 * 60)

def download_config():
base_url = f"https://raw.githubusercontent.com/Beelzebub2/AutoBanana/main/config.ini"
local_filename = os.path.join(os.getcwd(), os.path.basename("config.ini"))

try:
response = requests.get(base_url)
response.raise_for_status() # Check if the request was successful

with open(local_filename, 'wb') as file:
file.write(response.content)

print(f"Downloaded {local_filename}")

except requests.exceptions.RequestException as e:
print(f"Failed to download {"config.ini"} from GitHub: {e}")

if __name__ == "__main__":
if not os.path.exists("config.ini"):
download_config()
auto_banana = AutoBanana()
auto_banana.main()
input(Fore.CYAN + "\nPress Enter to exit..." + Style.RESET_ALL)
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Static Badge](https://img.shields.io/badge/Version-v1.6-8ebff1?style=for-the-badge&logo=v)
![Static Badge](https://img.shields.io/badge/Version-v1.7-8ebff1?style=for-the-badge&logo=v)
![Static Badge](https://img.shields.io/badge/Language-python-3776ab?style=for-the-badge&logo=python)
![Static Badge](https://img.shields.io/badge/Made%20by-Beelzebub2-851ebc?style=for-the-badge)
![User Count](https://img.shields.io/badge/Total%20Users-180-green?style=for-the-badge)
Expand Down Expand Up @@ -43,7 +43,7 @@ pip install -r requirements-dev.txt
### Manually Building

- **Navigate to the project directory:** `cd AutoBanana`
- **Build with pyinstaller:** `pyinstaller -F -n AutoBanana-win64 AutoBanana.py`
- **Build with pyinstaller:** `pyinstaller -F -n AutoBanana-win64 -i banana.ico AutoBanana.py`

### Releasing

Expand All @@ -55,6 +55,12 @@ pip install -r requirements-dev.txt
Pending Features:
! Autoupdater

v1.7 02/07/24

+ Now Downloads the config.ini if it's missing
+ Executable version available
+ Now adds icon to executable

v1.6 27/06/24 Thank you guys :)

+ Actually opens all games, thanks to @SavageCore
Expand Down
Binary file added banana.ico
Binary file not shown.
13 changes: 6 additions & 7 deletions logo.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
█████╗ ██╗ ██╗████████╗ ██████╗ ██████╗ █████╗ ███╗ ██╗ █████╗ ███╗ ██╗ █████╗ ██╗ ██╗ ██╗ ██████╗
██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔══██╗████╗ ██║██╔══██╗████╗ ██║██╔══██╗ ██║ ██║███║ ██╔════╝
███████║██║ ██║ ██║ ██║ ██║██████╔╝███████║██╔██╗ ██║███████║██╔██╗ ██║███████║ ██║ ██║╚██║ ███████╗
██╔══██║██║ ██║ ██║ ██║ ██║██╔══██╗██╔══██║██║╚██╗██║██╔══██║██║╚██╗██║██╔══██║ ╚██╗ ██╔╝ ██║ ██╔═══██╗
██║ ██║╚██████╔╝ ██║ ╚██████╔╝██████╔╝██║ ██║██║ ╚████║██║ ██║██║ ╚████║██║ ██║ ╚████╔╝ ██║██╗╚██████╔╝
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═════╝

█████╗ ██╗ ██╗████████╗ ██████╗ ██████╗ █████╗ ███╗ ██╗ █████╗ ███╗ ██╗ █████╗ ██╗ ██╗ ██╗███████╗
██╔══██╗██║ ██║╚══██╔══╝██╔═══██╗██╔══██╗██╔══██╗████╗ ██║██╔══██╗████╗ ██║██╔══██╗ ██║ ██║███║╚════██║
███████║██║ ██║ ██║ ██║ ██║██████╔╝███████║██╔██╗ ██║███████║██╔██╗ ██║███████║ ██║ ██║╚██║ ██╔╝
██╔══██║██║ ██║ ██║ ██║ ██║██╔══██╗██╔══██║██║╚██╗██║██╔══██║██║╚██╗██║██╔══██║ ╚██╗ ██╔╝ ██║ ██╔╝
██║ ██║╚██████╔╝ ██║ ╚██████╔╝██████╔╝██║ ██║██║ ╚████║██║ ██║██║ ╚████║██║ ██║ ╚████╔╝ ██║██╗██║
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═══╝ ╚═╝╚═╝╚═╝

0 comments on commit 6a4b589

Please sign in to comment.