
com.mle.appbundler.Distribution.scala Maven / Gradle / Ivy
The newest version!
package com.mle.appbundler
import java.nio.file.Path
import scala.xml.Node
/**
* @author Michael
*/
object Distribution extends XmlWriter {
def writeDistribution(conf: DistributionConf, dest: Path) = writePretty(xml(conf), dest)
/**
* Modified from the web, TODO add link.
*
* @param conf
* @return
*/
def xml(conf: DistributionConf): Node = {
val appID = conf.appIdentifier
val daemonName = s"$appID.daemon"
val displayName = conf.displayName
val pkgName = s"${conf.name}.pkg"
{displayName}
{appID}
{conf.additionalXml}
{pkgName}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy