valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 109 forks source link

OSX compiler.jar broken? #401

Open kkazuo opened 7 years ago

kkazuo commented 7 years ago

OSX (MD5: e73ee6b531f7a53690bf57837cd0f5c5) haste-compiler.tar's compiler.jar has broken?

with --opt-minify option:

Error: Invalid or corrupt jarfile

my java -version is:

java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)

valderman commented 7 years ago

If the JAR is corrupt, then it should probably be for all systems. Will look into it; if nothing else, the JAR should probably have an MD5 check or something, to make sure it doesn't become corrupted during transit or something.

kkazuo commented 7 years ago

OSX distribution tar.bz2 md5 is OK. here is my console output:

$ md5 ~/Downloads/haste-compiler-0.5.5.1_ghc-7.10.3-darwin.tar.bz2 
MD5 (/Users/kaz/Downloads/haste-compiler-0.5.5.1_ghc-7.10.3-darwin.tar.bz2) = e73ee6b531f7a53690bf57837cd0f5c5
$ tar xf ~/Downloads/haste-compiler-0.5.5.1_ghc-7.10.3-darwin.tar.bz2
$ md5 haste-compiler/x86_64-darwin-haste-0.5.5.1-ghc-7.10.3/compiler.jar 
MD5 (haste-compiler/x86_64-darwin-haste-0.5.5.1-ghc-7.10.3/compiler.jar) = 9745c2b8b873eaa8c1c582262cd1d240
$ java -jar haste-compiler/x86_64-darwin-haste-0.5.5.1-ghc-7.10.3/compiler.jar 
Error: Invalid or corrupt jarfile haste-compiler/x86_64-darwin-haste-0.5.5.1-ghc-7.10.3/compiler.jar
kkazuo commented 7 years ago

I tried the linux version haste's compiler.jar.

$ md5 haste-compiler/x86_64-linux-haste-0.5.5.1-ghc-7.10.3/compiler.jar 
MD5 (haste-compiler/x86_64-linux-haste-0.5.5.1-ghc-7.10.3/compiler.jar) = 6db9233c6413855b3f466ce0d7da4248
$ java -jar haste-compiler/x86_64-linux-haste-0.5.5.1-ghc-7.10.3/compiler.jar 
The compiler is waiting for input via stdin.

probably, that works.