Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mefgner committed Jul 2, 2024
2 parents b6fdadb + 07c4a30 commit 19425f0
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Compile the project
on:
workflow_dispatch:
inputs:
version:
description: 'File version (Without spaces and brackets) (Eg: 1.1.0.0, 1.1.0.0-pre)'
required: true
tagname:
description: 'TagName release (Without spaces and brackets) (Eg: 1.1.0.0-test)'
required: true
release_name:
description: 'Release name'
required: true
jobs:
Windows:
runs-on: windows-latest
steps:
- name: 'Checkout Repo'
uses: actions/checkout@v4

- name: Compile (based on Python x64)
run: |
pip install -r requirements.txt
pip install pyinstaller
pyinstaller --onefile --clean --noconsole main.py
Move-Item -Path .\dist\main.exe -Destination ".\SRR_v${{ github.event.inputs.version }}_win64.exe"
- name: Release
if: github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
with:
files: |
SRR_v${{ github.event.inputs.version }}_win64.exe
name: ${{ github.event.inputs.release_name }}
tag_name: v${{ github.event.inputs.tagname }}
draft: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SRR
# Smart Refresh Rate
### This small utility will automatically switch refresh rate of your screen you have chosen when you plug off your charger and sets it back when you plug it in

## Quick start
Expand All @@ -10,4 +10,4 @@ Just install exe and run it whethever you want and it will install it in user fo
Just go to path: `%localappdata%\SRR` and edit `config.json`(using notepad or whatever).

### What if i want to close this program&
Just press `right shift + backspace` to terminate Auto60HZ
Just press `right shift + backspace` to terminate SRR
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
psutil>=5.9.6
pynput>=1.7.6
pyinstaller>=6.2.0
psutil
pynput
winreglib

0 comments on commit 19425f0

Please sign in to comment.