Skip to content

Multiple Fixes/Tweaks - #87

Merged
MCMi460 merged 7 commits into
MCMi460:developmentfrom
HotaruBlaze:development
Jun 28, 2023
Merged

MCMi460 merged 7 commits into
MCMi460:developmentfrom
HotaruBlaze:development

Conversation

@HotaruBlaze

@HotaruBlaze HotaruBlaze commented Jun 26, 2023 •

Copy link
Copy Markdown
Contributor

This PR adds multiple small tweaks and some fixes discussed before on the Discord.

  1. Added autopep8: This is a simple code linter to make the formatting uniform throughout the code, however has some rules disabled to preserve preferences. This is configured via pyproject.toml

  2. Force NSO-RPC to always be in the system tray: [Only Windows Affected] Their was a edge case where the system tray icon would disappear after opening and closing the app a couple of times, We now no longer hide the system tray when opened on windows. This matches usual windows and other versions of NSO-RPC.

  3. Fix for Discord Client RPC not always updating.: This fixes NSO-RPC not always being able to connect to discord due to possible load time delays or if Discord is closed/restarted and relaunched without NSO-RPC reopening.

  4. Cleanup requirements.txt: Just small clean-up, nothing of note.

  5. Generate release checksums: We now generate sha256 hashes for the files built by Github Actions, This is mainly for people that'd have a use for it, such as fully scripting the install and wanting to check the hash to confirm the file is downloaded correctly.

  6. Major overhaul of build Scripts: I decided to redo the Linux & Windows build script for a couple of reasons.
    Create a client for Fedora #84 is one of them, the build script now supports Ubuntu, Arch Linux and Fedora.
    The script also attempts to detect the correct version of Qt running to install the python equivalent for us to use.

    I kept running into issues where I was building test copy's of NSO-RPC on Windows, to discover that I had built it without any Qt python modules installed. So I replaced the build script so it generates a temp python file to check if Qt is available then deletes the file afterwards. (This is very hacky but the only way I could find to make it consistent, I have also confirmed that VirusTotal considers this safe VirusTotal Link

  7. Fix bad layout loading on edgecases:
    TypeError: QStackedWidget parent unexpected type 'QMainWindow' #82
    This fixes an obscure bug where on some Systems, the original Qt5/Qt6 layout code was faulty and would fail for some people, reporting as using Qt6 however trying to run it with Qt5, as some users (mainly MacOS, have both modules by default and act slightly differently than you'd expect). Note this was originally reported by the issue, however another user experienced it and we were able to pinpoint the issue.

@HotaruBlaze
HotaruBlaze force-pushed the development branch 2 times, most recently from a76ab78 to 574c6a9 Compare June 27, 2023 22:28
@ABadGame

Copy link
Copy Markdown

Thanks for fixing this issue in this PR

@MCMi460

MCMi460 commented Jun 28, 2023

Copy link
Copy Markdown
Owner

10/10 PR. Thank you very much! 👏

@MCMi460
MCMi460 merged commit 574c6a9 into MCMi460:development Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants