From 36c030fa027402b18e2f77027d407b04a867b4fc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 12 Jan 2013 12:57:19 +1300 Subject: Release version 2.0 --- setup/windows/traccar.iss | 18 +++++----- setup/windows/traccar.sh | 18 ---------- setup/windows/windows.cfg | 88 +++++++++++++++++++++-------------------------- 3 files changed, 50 insertions(+), 74 deletions(-) delete mode 100755 setup/windows/traccar.sh (limited to 'setup/windows') diff --git a/setup/windows/traccar.iss b/setup/windows/traccar.iss index 54c93367c..dda8e175f 100644 --- a/setup/windows/traccar.iss +++ b/setup/windows/traccar.iss @@ -1,6 +1,6 @@ [Setup] AppName=Traccar -AppVersion=1.4 +AppVersion=2.0 DefaultDirName={pf}\Traccar AlwaysRestart=yes @@ -12,16 +12,17 @@ Name: "{app}\lib" Name: "{app}\logs" [Files] -Source: "wrapper\bin\wrapper-windows-x86-32.exe"; DestDir: "{app}\bin"; DestName: "wrapper.exe" -Source: "wrapper\src\bin\App.bat.in"; DestDir: "{app}\bin"; DestName: "Traccar.bat" -Source: "wrapper\src\bin\InstallApp-NT.bat.in"; DestDir: "{app}\bin"; DestName: "InstallTraccar-NT.bat" -Source: "wrapper\src\bin\UninstallApp-NT.bat.in"; DestDir: "{app}\bin"; DestName: "UninstallTraccar-NT.bat" -Source: "wrapper\lib\wrapper-windows-x86-32.dll"; DestDir: "{app}\lib"; DestName: "wrapper.dll" -Source: "wrapper\lib\wrapper.jar"; DestDir: "{app}\lib"; -Source: "wrapper\src\conf\wrapper.conf.in"; DestDir: "{app}\conf"; DestName: "wrapper.conf"; AfterInstall: ConfigureWrapper +Source: "..\wrapper\bin\wrapper-windows-x86-32.exe"; DestDir: "{app}\bin"; DestName: "wrapper.exe" +Source: "..\wrapper\src\bin\App.bat.in"; DestDir: "{app}\bin"; DestName: "Traccar.bat" +Source: "..\wrapper\src\bin\InstallApp-NT.bat.in"; DestDir: "{app}\bin"; DestName: "InstallTraccar-NT.bat" +Source: "..\wrapper\src\bin\UninstallApp-NT.bat.in"; DestDir: "{app}\bin"; DestName: "UninstallTraccar-NT.bat" +Source: "..\wrapper\lib\wrapper-windows-x86-32.dll"; DestDir: "{app}\lib"; DestName: "wrapper.dll" +Source: "..\wrapper\lib\wrapper.jar"; DestDir: "{app}\lib"; +Source: "..\wrapper\src\conf\wrapper.conf.in"; DestDir: "{app}\conf"; DestName: "wrapper.conf"; AfterInstall: ConfigureWrapper Source: "..\..\target\tracker-server.jar"; DestDir: "{app}" Source: "..\..\target\lib\*"; DestDir: "{app}\lib" +Source: "..\traccar-web.war"; DestDir: "{app}" Source: "windows.cfg"; DestDir: "{app}\conf"; AfterInstall: ConfigureApplication [Run] @@ -64,6 +65,7 @@ var begin LoadStringFromFile(ExpandConstant(CurrentFileName), S); StringChangeEx(S, '[DATABASE]', ExpandConstant('{app}\data\database'), true); + StringChangeEx(S, '[WAR]', ExpandConstant('{app}\traccar-web.war'), true); StringChangeEx(S, '[LOG]', ExpandConstant('{app}\logs\tracker-server.log'), true); SaveStringToFile(ExpandConstant(CurrentFileName), S, false); end; diff --git a/setup/windows/traccar.sh b/setup/windows/traccar.sh deleted file mode 100755 index e72a130f1..000000000 --- a/setup/windows/traccar.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -tar -xzf wrapper-delta-pack-*.tar.gz -mv wrapper-delta-pack-*/ wrapper/ - -innoextract isetup-*.exe - -wine app/ISCC.exe traccar.iss -mv Output/setup.exe . - -zip traccar-windows-32.zip setup.exe README.txt - -rm setup.exe -rm -rf Output -rm -rf wrapper -rm -rf app -rm -rf tmp - diff --git a/setup/windows/windows.cfg b/setup/windows/windows.cfg index 6e3a1a12f..e6b620b0c 100644 --- a/setup/windows/windows.cfg +++ b/setup/windows/windows.cfg @@ -6,6 +6,7 @@ org.h2.Driver + org.h2.jdbcx.JdbcDataSource jdbc:h2:[DATABASE] sa @@ -13,59 +14,17 @@ 300 - - - CREATE TABLE IF NOT EXISTS devices (id INT IDENTITY, imei VARCHAR(16)); - CREATE TABLE IF NOT EXISTS positions (device_id INT, time TIMESTAMP, valid BOOLEAN, latitude DOUBLE, longitude DOUBLE, speed DOUBLE, course DOUBLE, power DOUBLE); - - - id - Integer + id - Long imei - String <--> - SELECT id, imei + SELECT id, uniqueId as imei FROM devices; - imei - String - <--> - - INSERT INTO devices (imei) - VALUES (:imei); - - - - id - Integer - imei - String - <--> - - UPDATE devices - SET imei = :imei - WHERE id = :id; - - - - id - Integer - <--> - - DELETE FROM devices - WHERE id = :id; - - - - device_id - Integer - <--> - - SELECT * - FROM positions - WHERE device_id = :device_id - ORDER by time DESC; - - - - device_id - Integer + device_id - Long time - Date valid - Boolean latitude - Double @@ -76,13 +35,22 @@ extended_info - String (XML) <--> - INSERT INTO positions (device_id, time, valid, latitude, longitude, speed, course, power) - VALUES (:device_id, :time, :valid, :latitude, :longitude, :speed, :course, :power); + INSERT INTO positions (device_id, time, valid, latitude, longitude, altitude, speed, course, power) + VALUES (:device_id, :time, :valid, :latitude, :longitude, :altitude, :speed, :course, :power); + + + + device_id - Long + id - Long + <--> + + UPDATE devices SET latestPosition_id = :id WHERE id = :device_id; true 8082 + [WAR] true @@ -159,5 +127,29 @@ true 5017 - + + + true + 5018 + + + true + 5019 + + + true + 5020 + + + true + 5021 + + + true + 5022 + + + true + 5023 + -- cgit v1.2.3