public String asNameWithCurrentOperatingSystem() { return format( "%s-%s-%s", distributionCode, OperatingSystem.fetchCurrentOperationSystem().getWinePackage(), architecture.getNameForWinePackages()); }
/** * Construct from a short code string with the current operating system. * * @param shortCodeName the short code name (e.g. staging-x86) */ public WineDistribution(String shortCodeName) { this( OperatingSystem.fetchCurrentOperationSystem(), Architecture.fromWinePackageName(shortCodeName.split("-")[1]), shortCodeName.split("-")[0]); }