Skip to content

Add/Fix Linux Support#28

Open
PostScriptReal wants to merge 3 commits intohlorenzi:masterfrom
PostScriptReal:master
Open

Add/Fix Linux Support#28
PostScriptReal wants to merge 3 commits intohlorenzi:masterfrom
PostScriptReal:master

Conversation

@PostScriptReal
Copy link

Pretty self-explanatory, this PR makes a few minor changes that fixes issues when the program is run on Linux. This includes changing the controls so all actions that use the Alt key use Shift instead, since on my distro (Linux Mint 22) Alt-clicking and Alt-dragging moves the window instead of creating and connecting points. I assume this works the same on other distros.

My fork also makes changes to package.json so bulding can be done using either dist-win or dist-unix (dist has been deprecated in favour of this), dist-win is the old behaviour of dist where electron is forced to build Windows executables and dist-unix is a new command that builds for the operating system you are running on. The highest resolution image in icon.ico has also been saved as a separate png file for Linux targets.

If this PR is ever approved and merged, keep in mind I updated the readme so you may either want to replace it with the original or edit the new one so it's consistent with this repository, that includes removing "(Fork for Linux)" from the title, changing the Releases section hyperlink back to what it originally was and removing the "Changes made in this fork" section. You can optionally remove the Building Executables section if you'd like, idc either way.

Edited package.json so it is no longer forcing Electron to build a Windows Executable. Also changed controls so anything that requires pressing the alt key will now require pressing the Shift key. This is because Linux (maybe only Ubuntu and derivatives?) uses alt and clicking and dragging to move the window around. All control hints for actions using the Alt key have been updated to reflect this change.
Grabbed the highest res image from icon.ico in 'build/' and made it a separate .png image so electron won't throw errors trying to grab the .ico file for the Windows Version.
Edited package.json to provide a command for making Windows executables (on non-Windows platforms) and executables for non-Windows platforms. Updated Readme to reflect the changes made in this fork.
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.

1 participant