< prev index next >

src/jdk.jpackage/linux/classes/jdk/jpackage/internal/LinuxAppImageBuilder.java

Print this page

        

*** 55,65 **** private static final String LIBRARY_NAME = "libapplauncher.so"; private final Path root; private final Path appDir; private final Path appModsDir; - private final String relativeModsDir; private final Path runtimeDir; private final Path binDir; private final Path mdir; private final Map<String, ? super Object> params; --- 55,64 ----
*** 87,97 **** Objects.requireNonNull(imageOutDir); this.root = imageOutDir.resolve(APP_NAME.fetchFrom(config)); this.appDir = root.resolve("app"); this.appModsDir = appDir.resolve("mods"); - this.relativeModsDir = "app/mods"; this.runtimeDir = root.resolve("runtime"); this.binDir = root.resolve("bin"); this.mdir = runtimeDir.resolve("lib"); this.params = new HashMap<>(); config.entrySet().stream().forEach(e -> params.put( --- 86,95 ----
*** 107,117 **** Objects.requireNonNull(imageOutDir); this.root = imageOutDir.resolve(appName); this.appDir = null; this.appModsDir = null; - this.relativeModsDir = null; this.runtimeDir = null; this.binDir = null; this.mdir = null; this.params = new HashMap<>(); } --- 105,114 ----
*** 151,165 **** public Path getAppModsDir() { return appModsDir; } @Override - public String getRelativeModsDir() { - return relativeModsDir; - } - - @Override public void prepareApplicationFiles() throws IOException { Map<String, ? super Object> originalParams = new HashMap<>(params); try { IOUtils.writableOutputDir(root); --- 148,157 ----
*** 204,215 **** } executableFile.toFile().setExecutable(true, false); executableFile.toFile().setWritable(true, true); ! writeCfgFile(params, root.resolve(getLauncherCfgName(params)).toFile(), ! "$APPDIR/runtime"); } private void copyIcon() throws IOException { File icon = ICON_PNG.fetchFrom(params); if (icon != null) { --- 196,206 ---- } executableFile.toFile().setExecutable(true, false); executableFile.toFile().setWritable(true, true); ! writeCfgFile(params, root.resolve(getLauncherCfgName(params)).toFile()); } private void copyIcon() throws IOException { File icon = ICON_PNG.fetchFrom(params); if (icon != null) {
< prev index next >