Giter Club home page Giter Club logo

Comments (10)

TheAssassin avatar TheAssassin commented on June 18, 2024 1

You were almost there, it seems.

First of all, I ran git fetch --all && git rebase origin/master to update the branch.

Then, I noticed you didn't include the architecture fix snippet we use elsewhere. Since we build RPMs on a Debian system, we need to inform CPack about the right architecture. It doesn't seem very straightforward, but it seems that if that architecture is set to an invalid or empty value, a source package will be built.

# allow building RPM packages on non-RPM systems
if(DEFINED ENV{ARCH})
    set(CPACK_RPM_PACKAGE_ARCHITECTURE $ENV{ARCH})
    if(CPACK_RPM_PACKAGE_ARCHITECTURE MATCHES "i686")
        set(CPACK_RPM_PACKAGE_ARCHITECTURE "i386")
    elseif(CPACK_RPM_PACKAGE_ARCHITECTURE MATCHES "amd64")
        set(CPACK_RPM_PACKAGE_ARCHITECTURE "x86_64")
    endif()
endif()

Then, I moved the include(CPack) at the end of both cmake/cpack_{rpms,debs}.cmake files into the main CMake file (below the two include()s), as CPack doesn't like to be included more than once (there's a warning in the output, we had the same issue in AppImageLauncher).

If you want to, I can force-push to your branch.

from appimaged.

TheAssassin avatar TheAssassin commented on June 18, 2024

Not entirely sure what you're doing on that other branch, but it's clearly not a fork of the master branch. It still contains a submodule on AppImageKit?!

from appimaged.

probonopd avatar probonopd commented on June 18, 2024

If you want to, I can force-push to your branch.

Yes, please do. Does it upload a rpm?

from appimaged.

probonopd avatar probonopd commented on June 18, 2024

Thanks @TheAssassin, however we are still getting an error:

https://travis-ci.org/AppImage/appimaged/jobs/453558440#L3743

Travis CI still shows "green", even tough upload.sh was not successful.

from appimaged.

TheAssassin avatar TheAssassin commented on June 18, 2024

Travis CI still shows "green", even tough upload.sh was not successful.

That's the issue with Travis CI. It's always been behaving like that. Real CI servers have different states for this.

from appimaged.

probonopd avatar probonopd commented on June 18, 2024

Easy fix: Don't put stuff into after_success but put it in script.

from appimaged.

TheAssassin avatar TheAssassin commented on June 18, 2024

Travis should simply introduce a "yellow" state...

from appimaged.

probonopd avatar probonopd commented on June 18, 2024

True; wanna write a feature request?

from appimaged.

TheAssassin avatar TheAssassin commented on June 18, 2024

No, I'd rather switch to a real CI system that provides some real features...

from appimaged.

TheAssassin avatar TheAssassin commented on June 18, 2024

Closed by #27.

from appimaged.

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.