Commit Graph

62 Commits

Author SHA1 Message Date
Anon 4e1472e4ec Use spaces instead of tabs 2019-05-09 18:34:42 +02:00
Anon 1c4daa78f9 Fix bug on mac when regenerating classes.jsa when path has spaces 2019-05-09 18:32:07 +02:00
Michael Bayne 76a6401d82 Check that local JVM is not in use before attempting update. 2019-05-03 14:03:16 -07:00
Michael Bayne 18d449166c Merge pull request #206 from sergiorussia/feature/java_local_dir
enable custom java local dir instead of hardcoded "java_vm"
2019-05-03 13:34:32 -07:00
sergiorussia f7a5092116 review fixes 2019-05-01 00:18:47 +03:00
Michael Bayne 901682d5f7 timeout_verify -> verify_timeout. 2019-04-30 10:58:46 -07:00
Michael Bayne eb8a2da9d8 Merge branch 'master' into timeoutVerify 2019-04-30 10:55:10 -07:00
Michael Bayne 047e3972a0 Convert translation files from UTF-8 to (escaped) ISO-8859-1 during build.
This makes it *way* easier to view and edit the translation files and avoids
the danger of accidentally slipping UTF-8 encoded characters into existing
files during editing.
2019-04-30 10:08:40 -07:00
sergiorussia 557e615862 review fixes 2019-04-15 21:10:12 +03:00
sergiorussia e253db10be enable custom java local dir instead of hardcoded "java_vm" 2019-04-14 01:18:13 +03:00
Michael Bayne dcfd113dbf [maven-release-plugin] prepare for next development iteration 2019-04-10 11:45:13 -07:00
Michael Bayne a223f40549 [maven-release-plugin] prepare release getdown-1.8.3 2019-04-10 11:45:04 -07:00
Michael Bayne f2f418f5cf Mark depends as optional.
We bundle them into the artifact with Proguard, so they are not needed.
2019-04-10 11:28:08 -07:00
sergiorussia b3f029674f initial russian translation 2019-04-06 18:10:32 +03:00
gropp_volker 8e520e7a25 add config timeout_verify
- remove hardcoded 60 seconds timeout during verify, as with pack200
this may fail on slow systems
- introduce new config "timeout_verify" with 60 seconds default
- handle timeout with aborting the launch
2019-03-13 11:28:14 +01:00
Guenther Demetz 8b8d2395cc Avoid overlapping of progress-bar-dialog and proxy-input-panel
See https://imgur.com/a/NOR87hz
2019-03-04 15:03:26 +01:00
Michael Bayne f7586cf601 More formatting tweaks. 2019-02-25 17:58:48 -08:00
Michael Bayne 06aa668ef6 Formatting tweaks. 2019-02-25 17:46:55 -08:00
Michael Bayne b6b90ace0b Merge pull request #193 from myron0815/noUpdate
start GD w/o updating -> directly start app
2019-02-25 17:46:52 -08:00
Myron Boyle 37659985ec do not fail on lock file creation, when in silent=noupdate 2019-02-25 14:47:33 +01:00
Myron Boyle d032669037 handle close on ESC 2019-02-25 14:37:46 +01:00
Myron Boyle d24d12a6c4 add -Dsilent=noupdate, to just start the app w/o any updates 2019-02-25 14:33:51 +01:00
Michael Bayne 68341fedc2 Pre-fill known proxy info into ProxyPanel.
We no longer use the system properties, so we can't rely on the info having
been stuffed in there by some previous machinations.
2019-01-15 12:37:36 -08:00
Michael Bayne ae129fad6f Added support for proxy auth.
This also makes the use of a Proxy instance explicit in the Getdown code,
rather than trying to thread things through the proxy-related system
properties.

It introduces a ProxyAuth SPI which allows an app installation to save proxy
credentials in whatever way it deems fit. Otherwise the credentials are unsaved
and the user effectively has to enter them every time Getdown attempts to
access the internet.

This is obviously a terrible design, but there's no good (cross-platform) way
to securely store a username and password. So anyone using this feature is
likely going to need to provide an implementation of ProxyAuth that does
whatever auth storage they deem appropriate.

Adapted from PR from @ThomasG-AI, thanks!
2019-01-15 12:27:05 -08:00
Michael Bayne dc768515d5 Add changelog entry, wrap long line. 2019-01-04 10:53:33 -08:00
vsolanki 7d65b2f6a3 Https proxy 2018-12-20 09:58:46 -05:00
Michael Bayne 5d1bdbfb3f Install in the loop we already have.
Also don't create a valid marker file. Patch files are deleted immediately
after use.
2018-12-17 11:25:35 -08:00
Michael Bayne faa9d2422e No need for a separate method. 2018-12-17 11:22:53 -08:00
Leandro Quiroga 8a00ff60d8 true arg passed to install() 2018-12-14 16:35:43 -03:00
Leandro Quiroga 28b779f0f8 Fix issue #176
install(Resources) method created and called from update() method, below calling download().
2018-12-14 16:22:39 -03:00
Michael Bayne 9402d7c900 Update copyright headers. 2018-12-06 11:55:49 -08:00
Michael Bayne 9f2071f152 Minor reorg & fix all "config UI when getdown.txt" changes issues. 2018-12-01 20:00:03 -08:00
Michael Bayne f4679b4a36 Merge pull request #172 from vatsal22/Predownloads
Use presource=[resource] to "predownload" resource
2018-11-30 14:49:56 -08:00
vsolanki cca7749dc8 Use presource=[resource] to "predownload" resource
-these will be downloaded before a UI is displayed, allowing them to be
loaded on first launch
2018-11-30 15:40:51 -05:00
Michael Bayne 78fdc9031e Small formatting tweaks. 2018-11-30 11:36:10 -08:00
Guenther Demetz a072718d4e Checking Java version only after getdown.txt has been re-fetched.
Typical use case is a security patch, were a new java patch 
(java_windows.jar) is put on server side and java_min_version updated
accordingly in getdown.txt

Currently the new virtual machine will be downloaded only after 
a second getdown launch. This pull request fixes this.
2018-11-29 09:34:44 +01:00
Michael Bayne ac876a36ef [maven-release-plugin] prepare for next development iteration 2018-11-27 13:35:37 -08:00
Michael Bayne 7f8add0322 [maven-release-plugin] prepare release getdown-1.8.2 2018-11-27 13:35:31 -08:00
Michael Bayne 555d28a80a [maven-release-plugin] prepare for next development iteration 2018-11-26 14:33:07 -08:00
Michael Bayne 2523ba285b [maven-release-plugin] prepare release getdown-1.8.1 2018-11-26 14:32:57 -08:00
Michael Bayne d7ec1baa60 Avoid using UI if we're in a headless JVM.
Closes #131.
2018-11-26 13:28:51 -08:00
Michael Bayne e0d119d87b A bunch of cleanup of the concurrent downloads PR.
- Max concurrent downloads is controlled by a config in getdown.txt:
  max_concurrent_downloads. It defaults to two.

- A bunch of thread-safety problems were fixed.

- While in there, I revamped the downloader to be less crufty from years of
  ad-hoc requirements accretion.

- I disabled the Channel.transferFrom based download change because it prevents
  fine-grained feedback (and abort checking) from taking place, and it doesn't
  handle failure cases. Maybe we'll clean it up and re-enable it in the future.
2018-11-26 11:25:37 -08:00
Michael Bayne d4884d5388 [maven-release-plugin] prepare for next development iteration 2018-10-19 09:50:39 -07:00
Michael Bayne 9edca56628 [maven-release-plugin] prepare release getdown-1.8.0 2018-10-19 09:50:29 -07:00
Michael Bayne 883954c3e5 Consolidate & enhance "environment config" handling.
The new code is more careful about how it obtains config info, and issues
warnings when sources of info conflict. It does not abort in such circumstances
as Getdown's prime directive is to do the best it can to get the app updated
and launched. But the warnings will hopefully allow accidental conflicts to be
detected and avoided before being deployed to customers.

We also now allow bootstrap.properties to provide an appid; that matches what
was possible via system properties and command line arguments. We also avoid
"communicating" environment configuration through the Java system properties
mechanism. We now read from sysprops but do not write back to them.

Lastly, this includes some name tidying (like appdir -> appDir and
getAppdir -> getAppDir).
2018-09-17 13:44:14 -07:00
gropp_volker 38427cbc1e load bootstrap.properties from resource bundle 2018-09-17 17:36:14 +02:00
Michael Bayne 2f0eae9753 Excise additional samskivert code. 2018-09-14 14:48:58 -07:00
Michael Bayne 24a23637a7 Avoid samskivert StringUtil import.
I thought I excised all of these except the Swing stuff, but apparently not.
I will finish that job.
2018-09-14 14:38:22 -07:00
Michael Bayne 64ce5c2e1c Merge pull request #136 from sdgx/patch-notes-url-command-injection
Avoid possible command injection (patch notes URL)
2018-09-14 14:35:45 -07:00
Michael Bayne 694457da53 Merge pull request #137 from sdgx/remove-legacy-main
Remove legacy Getdown.main( ) method
2018-09-14 14:34:41 -07:00