Skip to content

Commit

Permalink
Bump to 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
briacp committed Apr 1, 2019
1 parent f7eba72 commit 69a2621
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [v1.0.4]

### Changed
- The project is always saved before exporting a package.
- Make sure the path in the zipped entries contains "/" instead of "\".


## [v1.0.3]

### Add
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,12 @@ protected Void doInBackground() throws Exception {

mainWindow.showStatusMessageRB("MW_STATUS_SAVING");

Core.executeExclusively(true, () -> {
Core.getProject().saveProject(true);
});

if (Boolean.parseBoolean(pluginProps.getProperty(PROPERTY_GENERATE_TARGET, "false"))) {
Core.executeExclusively(true, () -> {
Core.getProject().saveProject(true);
try {
Core.getProject().compileProject(".*");
} catch (Exception ex) {
Expand Down Expand Up @@ -496,13 +499,13 @@ private static final void addZipDir(final ZipOutputStream out, final Path root,
if (child.toFile().listFiles().length == 0) {
String emptyDirFile = entry.toString() + File.separatorChar + IGNORE_FILE;
Log.logDebug(LOGGER, "addZipDir\tempty\t[{0}]", emptyDirFile);
out.putNextEntry(new ZipEntry(emptyDirFile));
out.putNextEntry(new ZipEntry(emptyDirFile.replace("\\", "/")));
out.closeEntry();
}
addZipDir(out, entry, child, props, filter);
} else {
Log.logDebug(LOGGER, "addZipDir\tfile\t[{0}]", entry);
out.putNextEntry(new ZipEntry(entry.toString()));
out.putNextEntry(new ZipEntry(entry.toString().replace("\\", "/")));
Files.copy(child, out);
out.closeEntry();
}
Expand Down

0 comments on commit 69a2621

Please sign in to comment.