Skip to content

Commit

Permalink
Added building, changed to .pyw
Browse files Browse the repository at this point in the history
  • Loading branch information
Biksell committed Aug 22, 2024
1 parent e8362e6 commit b54674d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
builds/
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@ pip install -r requirements.txt
python main.py <MONITOR_INDEX> <RATE1,RATE2,...>
```

Or if you're using the .exe
```
RefreshRateSwitcher.exe <MONITOR_INDEX> <RATE1,RATE2,...>
```

## Example

``python main.py 0 60,144,165``
```
python main.py 0 60,144,165
```
OR
```
RefreshRateSwitcher.exe 0 60,144,165
```

## Startup

If you want to start the program on Windows startup:
- Create a shortcut of the .bat file
- `Win+R` -> `shell:startup`
- Place the shortcut in the Startup folder
6 changes: 6 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import py2exe

py2exe.freeze(
windows=[{"script": "main.pyw", "dest_base": "RefreshRateSwitcher"}],
options={"bundle_files": 1}
)
File renamed without changes.

0 comments on commit b54674d

Please sign in to comment.