Giter Site home page Giter Site logo

Comments (6)

newpavlov avatar newpavlov commented on May 23, 2024 3

Yes, it's understandable when the rpm crate accepts scripts as strings, since they get included into package header. But for a utility like cargo-generate-rpm it makes more sense to read those scripts from provided files.

from cargo-generate-rpm.

jtk18 avatar jtk18 commented on May 23, 2024

You can specify a path like this:

post_install_script = "/path/to/script.sh \"$@\""

Make sure the script is +x

from cargo-generate-rpm.

newpavlov avatar newpavlov commented on May 23, 2024

Does it mean that the script has to be included into the package as an asset? Then it will not work for pre install scripts.

from cargo-generate-rpm.

jtk18 avatar jtk18 commented on May 23, 2024

That's how I've done it. I haven't used pre-install or post-uninstall scripts with cargo-generate-rpm or cargo-deb, so you're likely right that the ones in cargo-generate-rpm won't work w/ them.

from cargo-generate-rpm.

jtk18 avatar jtk18 commented on May 23, 2024

This is provided to cargo-generate-rpm via https://github.com/rpm-rs/rpm/blob/master/src/rpm/builder.rs

from cargo-generate-rpm.

jtk18 avatar jtk18 commented on May 23, 2024

Submitted #93 to attempt to resolve this.

from cargo-generate-rpm.

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.