Skip to content
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

Question: Create build script to make installation easier? #66

Open
plibither8 opened this issue Oct 28, 2018 · 3 comments
Open

Question: Create build script to make installation easier? #66

plibither8 opened this issue Oct 28, 2018 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@plibither8
Copy link
Owner

Currently, users have to follow 6 steps to install and run 2048. Though these are small and can be done quickly, it would be much more convenient if we have a bash script that does this for us.

The bash script will do the following:

  1. Clone the repository in the home folder.
  2. mkdir build, cd build to create the build directory.
  3. cmake .. and make to create the final, executable program.

These are the 3 main steps that the script will follow. After this, we should add the 2048 program to the PATH so that users can access the game from anywhere in their terminal.

Either adding to the PATH permanently or adding an alias to the game in their .bashrc or .zshrc files.

With the bash script we can also now handle OS specific actions, as adding to the PATH will be quite different in all the three major OSs.

@plibither8 plibither8 added enhancement New feature or request question Further information is requested help wanted Extra attention is needed labels Oct 28, 2018
@cawvyoct
Copy link
Collaborator

Humm, normally I only "run" programs listed in the releases section of a github project.

@plibither8
Copy link
Owner Author

One possibility is a statically-compiled program and then release it via the release section.

Wouldn't there have to be a different compiled binary for each OS, platform and system architecture? If yes, then it's a bit too much of work IMO

@scivision
Copy link
Contributor

scivision commented Jan 6, 2019

This is handled by adding "install" section to CMake / Meson scripts.
Install is added in #91

Separately, if one wishes to distribute executables for multiple platforms in a GitHub Release, this can be easily done via Travis-CI deploy: statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants