GithubHelp home page GithubHelp logo

Comments (9)

simonharrer avatar simonharrer commented on August 25, 2024

Makes sense. Interested in helping out? The GitHub Actions build the packages and would need to be changed for that so they include the LICENSE in the targz files.

from mob.

draptik avatar draptik commented on August 25, 2024

Sorry, I'm not that firm with Github Actions yet.
F.ex. I am not sure if I have to setup things like Secrets etc to get something like this up and running in my fork...

from mob.

draptik avatar draptik commented on August 25, 2024

Maybe it's sufficient to replace L35 in https://github.com/draptik/mob/blob/master/.github/workflows/release.yaml?

Before:

file: "*{.tar.gz,_checksum.txt}"

After:

file: "*{.tar.gz,_checksum.txt,LICENSE}"

Completely untested, just guessing ;-)

from mob.

simonharrer avatar simonharrer commented on August 25, 2024

Not sure. Maybe the GitHub Action plugin that’s being used should be looked at.

from mob.

simonharrer avatar simonharrer commented on August 25, 2024

I had a look, the https://github.com/remotemobprogramming/mob/blob/master/.github/build is responsible for creating the .tar.gz file. As far as I understand it, you want to have the LICENSE file inside the .tar.gz file, right? If so, one would need modify this shell script at .github/build to add it.

from mob.

draptik avatar draptik commented on August 25, 2024

Thanks for finding the correct location to change!
I'll create a pull request.

from mob.

simonharrer avatar simonharrer commented on August 25, 2024

Not sure, however, what the install procedure now will do at https://github.com/remotemobprogramming/mob/blob/master/install.sh#L111 with the additional file available. In the worst case scenario, we would add a license file to /usr/local/bin/. We should make sure this won't happen. Can you have a look at how we can prevent that?

from mob.

draptik avatar draptik commented on August 25, 2024

The install.sh script already does everything correctly:

curl -sSL "$url" | tar xz -C "$target" "$(determine_mob_binary)" && chmod +x "$target"/mob

The part curl ... | tar xz -C "$target" "$(determine_mob_binary)" only extracts the binary, so other files (i.e. LICENSE) are not extracted to the target location.

I verified with the following test:

mkdir -p ~/tmp/mob-test/target
curl -sSL https://github.com/remotemobprogramming/mob/archive/v1.1.0.tar.gz | tar xz -C ~/tmp/mob-test/target/ mob-1.1.0/README.md

The above command will only extract the README.md file.

from mob.

simonharrer avatar simonharrer commented on August 25, 2024

Thanks for verifying that! I'll close the ticket as it's done.

Thanks again for making this feature happen.

from mob.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.