diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..242a3b2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +on: + push: + branches: [ $default-branch ] +jobs: + make-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: PyInstaller Action + uses: Martin005/pyinstaller-action@v1.2.0 + with: + spec: nuclearesrpc.py + requirements: requirements.txt + python_ver: 3.13 + upload_exe_with_name: nuclearesrpc.exe diff --git a/nuclearesrpc.py b/nuclearesrpc.py index 83e0da4..0ba1912 100644 --- a/nuclearesrpc.py +++ b/nuclearesrpc.py @@ -123,9 +123,9 @@ def find_nucleares() -> psutil.Process | None: else: details = f"Reactor Online: {round(dvars['CORE_TEMP'])}\u00B0C" pwr = round(dvars["GENERATOR_0_KW"] + dvars["GENERATOR_1_KW"] + dvars["GENERATOR_2_KW"]) - if 0 < pwr < 1000: + if 0 < pwr < 10000: status = f"Producing {pwr} kW" - elif pwr > 1000: + elif pwr > 10000: status = f"Producing {round(pwr/1000)} mW" else: status = "Generator Offline"