-
Notifications
You must be signed in to change notification settings - Fork 450
Add Support for buildapp for Linux #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Calebh101
wants to merge
29
commits into
corpnewt:master
Choose a base branch
from
Calebh101:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I added a script called
buildapp-linux.pyinScriptsthat generates an executable for Linux users, similar tobuildapp-select.py, officially supporting Debian-based distros. The script basically generates a payload, a main script, and an installer script. The main script handles things like extracting itself, handling temporary files/directories, and managing data.buildapp-linuxalso compiles a generated C file usinggccthat extracts the main script from itself, then runs it. The installer script adds ProperTree to~/.local/binand creating a desktop entry.Even though it doesn't have
-selectin the title (mainly for consistency), the desktop entry specifies the executable as supportingtext/xmlandapplication/x-plist, which is associated with.plists in Linux, thus providing-selectcapabilities.I also added two other new files:
Scripts/linux-app.candScripts/icon.png.linux-app.cis the file containing the base source code for generating the executable, andicon.pngis a 256x256 image extracted out ofshortcut.icnsthat is used for the icon for the desktop entry. (I did this because Linux can't easily read.icnsfiles without third-party tools.) Please note, when you change the icon, I'd recommend also changingicon.png, as that's used as the application icon.I also attached a link the documentation I wrote for
buildapp-linux.pythat you can add manually to the end ofREADME.mdor add it as a separate in the repository. (Or you can write your own if you want to.) I made it with a similar in format as the section describingbuildapp-select.py's usage. The documentation I wrote can be reformatted or edited if you'd like. ProperTree-buildapp-linux-Usage.md.