mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
Change download pattern for version 1.0.17
This commit is contained in:
parent
1d3db1135b
commit
07efadb815
@ -50,15 +50,15 @@ class Wat2Wasm {
|
||||
* if any error occur
|
||||
*/
|
||||
private void download( File target ) throws IOException {
|
||||
boolean is32 = "32".equals( System.getProperty( "sun.arch.data.model" ) );
|
||||
//boolean is32 = "32".equals( System.getProperty( "sun.arch.data.model" ) );
|
||||
String fileName;
|
||||
final String os = System.getProperty( "os.name", "" ).toLowerCase();
|
||||
if( os.contains( "windows" ) ) {
|
||||
fileName = is32 ? "win32.zip" : "win64.zip";
|
||||
fileName = "windows.tar.gz";
|
||||
} else if( os.contains( "mac" ) ) {
|
||||
fileName = "osx.tar.gz";
|
||||
fileName = "macos.tar.gz";
|
||||
} else if( os.contains( "linux" ) ) {
|
||||
fileName = "linux.tar.gz";
|
||||
fileName = "ubuntu.tar.gz";
|
||||
} else {
|
||||
throw new IllegalStateException( "Unknown OS: " + os );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user