Modify

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#5675 closed enhancement (wontfix)

Menu option to 'check for updates'

Reported by: Acrosscanadatrails Owned by: team
Priority: normal Component: Core
Version: Keywords:
Cc:

Description

Hi,
I think it would be great if there was an option in JOSM to automatically check and download the latest version of the program, as well as have a 'full install' version where all of the available plugins were automatically included in the setup.
This way, each time you start JOSM it will be the latest version.

I know i have know idea how to do this myself, so it's just a 'wish list' item :)

Thanks,

Attachments (0)

Change History (11)

comment:1 Changed 2 years ago by stoecker

  • Component changed from Internal preset to Core
  • Owner changed from christeck to team

comment:2 follow-up: Changed 2 years ago by skyper

I wrote a bash script several month ago, and a cron job running it. It is somehow unfinished and maybe needs a bit of rework, but it is running without a problem. I might upload it these days.

At least on a Linux system, it is not that easy, if you have JOSM installed under /usr and not in the users directory (especially without sudo installed).

By the way, is there a possibility to get the JOSM revision from the .jar file without running java. (Java does not run without home dir).

Cheers skyper

comment:3 follow-up: Changed 2 years ago by stoecker

unzip -c dist/josm-custom.jar META-INF/MANIFEST.MF |grep Main-Version

comment:4 in reply to: ↑ 3 Changed 2 years ago by skyper

Replying to stoecker:

unzip -c dist/josm-custom.jar META-INF/MANIFEST.MF |grep Main-Version

No Main-Version in META-INF/MANIFEST.MF.

comment:5 follow-up: Changed 2 years ago by stoecker

Sorry works only for SVN version. Use unzip -c josm-latest.jar REVISION|grep "Last Changed Rev" for release version.

comment:6 in reply to: ↑ 5 Changed 2 years ago by skyper

Replying to stoecker:

Sorry works only for SVN version. Use unzip -c josm-latest.jar REVISION|grep "Last Changed Rev" for release version.

Thanks.

comment:7 in reply to: ↑ 2 Changed 2 years ago by skyper

Replying to skyper:

I wrote a bash script several month ago, and a cron job running it. It is somehow unfinished and maybe needs a bit of rework, but it is running without a problem. I might upload it these days.

I did some small adjustments and you can find it under:
http://wiki.openstreetmap.org/wiki/User:Skyper/JOSM_update_script

comment:8 follow-up: Changed 2 years ago by stoecker

You can remove the grep in the revision check, when you do the same with awk later on :-)

comment:9 in reply to: ↑ 8 Changed 2 years ago by skyper

Replying to stoecker:

You can remove the grep in the revision check, when you do the same with awk later on :-)

Thanks that was left from changing the check methode and I did copy some code twice - fixed.

comment:10 follow-up: Changed 2 years ago by stoecker

  • Resolution set to wontfix
  • Status changed from new to closed

I forgot to state this as wontfix: The installation procedures for the systems are very different. Under Linux usually you have RPM/DEB packages, for Windows the installer and so on. JOSM does not want to reinvent the wheel.

I can only suggest to use Linux (e.g. openSUSE) and then you get JOSM updates automatically whenever one is available :-)

comment:11 in reply to: ↑ 10 Changed 2 years ago by skyper

Replying to stoecker:

I can only suggest to use Linux (e.g. openSUSE) and then you get JOSM updates automatically whenever one is available

:-)

Thought Gentoo is the only distribution that is building from source.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.