Skip to content

Commit

Permalink
Add exe buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar1ky committed May 8, 2024
1 parent 2bedbe0 commit 0d849ce
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflow/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy (Windows)

on: [push, pull_request]

jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Package
run: |
pip install pyinstaller
pyinstaller --onefile -n FriendsRemover main.py
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: FriendsRemover
path: dist/win/FriendsRemover.exe
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run(self):
friends_count = self.get_friend_count()
self.delete_friends()

self.console.print(f"[green]Removed {friends_count} friends! [yellow]You can kill all sessions to reset token.")
self.console.print(f"[green bold]Removed {friends_count} friends![/green bold] [yellow]You can kill all sessions to reset token.")

def create_token(self): # Reference: https://github.com/MixV2/EpicResearch/blob/master/docs/auth/grant_types/client_credentials.md
headers = {
Expand Down

0 comments on commit 0d849ce

Please sign in to comment.