Giter VIP home page Giter VIP logo

Comments (2)

diareuse avatar diareuse commented on May 27, 2024

⚠️ There seems to be a lot of things involved in getting just the Linux to build, I'm afraid none of those things are in docs and nobody ever tried to build it. So if any member reads this, I'd love to ask you to at least include this in the docs - if not straight up changing the plugin internals and adding better error messages and failsaves.


It seems that apt package fakeroot is required together with binutils to build linux images. Therefore for anybody reading this:

sudo apt install -y binutils fakeroot

If you're also building .Dmg, .Msi and .AppImage, update the targetFormats to the following:

if (System.getProperty("os.name").toLowerCase().contains("linux"))
    targetFormats(TargetFormat.AppImage)
else
    targetFormats(TargetFormat.Dmg, TargetFormat.Msi)

Otherwise builds will fail on macOS in the current state (#3814)


Update toolchain to at-least JDK21, as JDK17 seems to have broken jpackage for whatever reason.

kotlin {
    jvmToolchain {
        languageVersion.set(JavaLanguageVersion.of(21))
    }
}

If you're also building with proguard, JDK18 is the latest with support by default, so you need to update the proguard as well:

buildTypes.release.proguard {
    version.set("7.4.0") // at least 7.4 is required, check https://www.guardsquare.com/manual/releasenotes for newer versions
}

from compose-multiplatform.

Kpotko avatar Kpotko commented on May 27, 2024

Reproduced this issue with ubuntu 20.04 + openJdk 17 (also with coretto jdk 17)

With arch 6.2 + openJdk 17 "packageReleaseDistributionForCurrentOS" works as expected

from compose-multiplatform.

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.