Generate an installer just for Ubuntu

Turbovix8 years ago

Hello Tananaev, need to know which files are not required to generate an installer for Ubuntu just because I do not need Windows or OSX, as well as be able to change the script.
I use #ubuntu 16.04LTS on my PC.

check_requirement "ls ../../ext-6.0.1" "Missing ../../ext-6.0.1 (https://www.sencha.com/legal/GPL/)"
check_requirement "ls wrapper-delta-pack-*.tar.gz" "Missing wrapper-delta-pack-*.tar.gz (http://wrapper.tanukisoftware.com/doc/english/download.jsp)"
check_requirement "ls wrapper-windows-x86-64-*.zip" "Missing wrapper-windows-x86-64-*.zip (http://www.krenger.ch/blog/tag/java-service-wrapper/)"
check_requirement "ls innosetup-*.exe" "Missing isetup-*.exe (http://www.jrsoftware.org/isdl.php)"
check_requirement "which sencha" "Missing sencha cmd package (https://www.sencha.com/products/extjs/cmd-download/)"
check_requirement "which wine" "Missing wine package"
check_requirement "which innoextract" "Missing innoextract package"
check_requirement "which makeself" "Missing makeself package"

Thank you!

Anton Tananaev8 years ago

Why do you need an installer?

Turbovix8 years ago

Hello Tananaev, thanks for the feedback!
I made some modifications [SUNTECH] protocol file to work with the ST-340 model, basically the command return formatCommand (command, "SA200CMD; {% s}; 02; Enable1 \ r", Command.KEY_UNIQUE_ID); to ST300CMD and would need subustituir the 'SuntechProtocolEncoder.java' file not found an easier way to do this.
But I could already generate the installer. The question seia basically to clean the scritp and leave it to my need, ie not perciso to generate packages for other OS.

NOTE :. The confusion occurred because I did not know if some dependencies was to be installed on my OS (Ubuntu) or were necessary to create the installer for Windows. I did not want to have WINE installed on my OS.

Thank you!

Anton Tananaev8 years ago

I would recommend to just take a new JAR file and replace it on already installed Traccar. Building installer is very complicated and I wouldn't recommend it unless you know what you are doing.

fonnie8 years ago

sorry to highjack this tread, but is this also true for Windows?

So clean install of version 3.6, replace the traccer-server.jar file with the one that is compiled by netbeans?

I image I would have to recreate the database and change the configfile?

best regards

Fonnie

Anton Tananaev8 years ago

There might be some minor changes required to config file, but it should work without updating database.

fonnie8 years ago

I'm using the standard database, no SQL. but with netbeans it is located in my documents\Traccar\target

just copy it to c:\ProgramFiles (x86)\Traccar ?

my database is not that important, only testdata, no problem if I need to recreate one

best regards

Fonnie

fonnie8 years ago

Anton,

this is working like a charme, I'm very very impressed.

btw MEGASTEK MT-90x and MT-60X are both working (they use a simailar but not exactly the same protocol) your changes to the megastekprotocol are working

Best regards

Fonnie

Anton Tananaev8 years ago

Thanks for feedback. I will update the supported devices page.

Turbovix8 years ago

Dear Tnanaev, I need a help with the code below. I'm trying to make the protocol work with the module Suntech ST-340, I noticed that the command beginning with [SA200CMD] does not work with this múdulo, or have to start [ST300CMD] for most of the commands.
I decided to try to implement the code below, but it has some errors, I can not solve.

...

When I run the program in #Netbeans he does not complete and says:

src/org/traccar/protocol/SuntechProtocolDecoder.java: [45] (regexp) RegexpSingleline: Line has trailing spaces.

Can you help me, or show the way?

I thank your attention!

Anton Tananaev8 years ago

Please try to format your comment in a readable way next time. I would recommend to use "pre" tag for code fragments.

As for the problem, it's exactly what the message says. You have trailing white spaces on the 45th line. You should remove them.

Turbovix8 years ago

Thank you very much!

Actually the problem was void after the code, interesting Netbenas not show it before.

As the design / code formatting / issues will take care to follow the guidelines.

Thanks again!

Anton Tananaev8 years ago

"void after the code" = "trailing spaces"

I have added style check recently. It wasn't there before.

Hello good morning I have the same problem that you Turbovix could you guide me in how you solved it? I try to modify the SuntechProtocolEncoder.java file to change [SA200CMD] to [ST300CMD]. thank you