build: Support 32 bit Windows installation (#116)
This commit is contained in:
+3
-1
@@ -11,7 +11,9 @@
|
|||||||
|
|
||||||
# Maven output dir
|
# Maven output dir
|
||||||
target/
|
target/
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.settings
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.swp
|
*.swp
|
||||||
.vscode
|
.vscode
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public class DriverJar extends Driver {
|
|||||||
private static String platformDir() {
|
private static String platformDir() {
|
||||||
String name = System.getProperty("os.name").toLowerCase();
|
String name = System.getProperty("os.name").toLowerCase();
|
||||||
if (name.contains("windows")) {
|
if (name.contains("windows")) {
|
||||||
return "win32_x64";
|
return System.getProperty("os.arch").equals("amd64") ? "win32_x64" : "win32";
|
||||||
}
|
}
|
||||||
if (name.contains("linux")) {
|
if (name.contains("linux")) {
|
||||||
return "linux";
|
return "linux";
|
||||||
@@ -69,7 +69,8 @@ public class DriverJar extends Driver {
|
|||||||
Files.copy(from, path);
|
Files.copy(from, path);
|
||||||
path.toFile().setExecutable(true);
|
path.toFile().setExecutable(true);
|
||||||
path.toFile().deleteOnExit();
|
path.toFile().deleteOnExit();
|
||||||
// System.out.println("extracting: " + from.toString() + " to " + path.toString());
|
// System.out.println("extracting: " + from.toString() + " to " +
|
||||||
|
// path.toString());
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ fi
|
|||||||
mkdir -p driver
|
mkdir -p driver
|
||||||
cd driver
|
cd driver
|
||||||
|
|
||||||
for PLATFORM in mac linux win32_x64
|
for PLATFORM in mac linux win32 win32_x64
|
||||||
do
|
do
|
||||||
FILE_NAME=$FILE_PREFIX-$PLATFORM.zip
|
FILE_NAME=$FILE_PREFIX-$PLATFORM.zip
|
||||||
if [[ -d $PLATFORM ]]; then
|
if [[ -d $PLATFORM ]]; then
|
||||||
|
|||||||
@@ -29,10 +29,13 @@ Linux)
|
|||||||
FILE_NAME=${FILE_PREFIX}-linux.zip
|
FILE_NAME=${FILE_PREFIX}-linux.zip
|
||||||
echo "Downloading driver for Linux"
|
echo "Downloading driver for Linux"
|
||||||
;;
|
;;
|
||||||
MINGW*)
|
MINGW32*)
|
||||||
FILE_NAME=${FILE_PREFIX}-win32_x64.zip
|
FILE_NAME=${FILE_PREFIX}-win32.zip
|
||||||
echo "Downloading driver for Windows"
|
echo "Downloading driver for Windows"
|
||||||
;;
|
;;
|
||||||
|
MINGW64*)
|
||||||
|
FILE_NAME=${FILE_PREFIX}-win32_x64.zip
|
||||||
|
echo "Downloading driver for Windows"
|
||||||
*)
|
*)
|
||||||
echo "Unknown platform '$(uname)'"
|
echo "Unknown platform '$(uname)'"
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user