Exemplo n.º 1
0
 public String asNameWithCurrentOperatingSystem() {
   return format(
       "%s-%s-%s",
       distributionCode,
       OperatingSystem.fetchCurrentOperationSystem().getWinePackage(),
       architecture.getNameForWinePackages());
 }
Exemplo n.º 2
0
 /**
  * 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]);
 }