Skip to content

Commit

Permalink
Fix Windows insaller problem caused by datamaps bower plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalinin committed Oct 18, 2017
1 parent 9f99655 commit 8440884
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ src/main/resources/solcJ-all
sampleDB*

access.info

.java-version
10 changes: 10 additions & 0 deletions desktop.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,22 @@ task desktop() {
commandLine "jar", "xf", "harmony.ether.camp.jar"
}

// workaround for Windows installer
// after "jar xf" has been executed, filenames started with "nul" become appended by '%' under the Windows
// i.e. nul.json => nul%.json, nul.topo.json => nul%.topo.json
// that '%' symbol causes an installation problem: files can't be extracted
// remove whole src/ folder containing problem files
task cleanUpDatamaps(type: Delete) {
delete "./build/libs/BOOT-INF/classes/static/bower_components/datamaps/src/"
}

task createInstaller(type: Exec) {
workingDir "."
commandLine "install4jc", "--license", license, "EthereumHarmony.install4j", "-r", (versionNameValue + '.' + buildNumber)
}

unpackJar.execute();
cleanUpDatamaps.execute();
createInstaller.execute();

// rename to proper pattern
Expand Down

0 comments on commit 8440884

Please sign in to comment.