Commit Graph

194 Commits

Author SHA1 Message Date
Michael Bayne 949eb8d718 Some renaming and clarification. 2016-05-15 13:01:19 -07:00
Michael Bayne 04309d3bdb Minor tweaks. 2016-04-20 07:30:25 -07:00
Faisal Hameed ef9358023f Fixing squid:S1066 - Collapsible "if" statements should be merged. 2016-04-19 18:27:48 +05:00
Michael Bayne 42eac2d71d Support %ENV.NAME% substitutions.
These can appear anywhere %APPDIR% and %VERSION% substitutions occur (pretty
much everywhere in getdown.txt).

In this case the NAME is the name of an environment variable, and the value of
the environment variable is substituted into the text.
2016-02-10 12:27:00 -08:00
Michael Bayne 4fd707d54d Added support for "class = manifest".
This causes Getdown to run your app using java -jar code.jar instead of java
-classpath code.jar classname. See wiki docs for more info.
2016-02-10 12:02:23 -08:00
Michael Bayne 78f71839be Comment & whitespace tweaks. 2016-01-12 14:12:50 -08:00
Michael Bayne b8bffc2b9c Merge pull request #34 from noblemaster/master
Bugfix: for apps using -direct mode
2016-01-12 14:11:30 -08:00
Christoph Aschwanden df5e2e72d2 Bugfixes: will (a) prevent an app from closing in direct-mode & (b) force close the download window (doesn't go away if there is nothing to download). 2016-01-11 00:54:49 +09:00
Michael Bayne 47ee7c99bb Wasn't processing app args in invokeDirect.
Oh how I'd like to clean all that up, but sleeping dogs, etc.
2015-12-18 11:33:03 -08:00
Michael Bayne 6cb400ee2a Report useful bits to launcher.log when invoking direct. 2015-12-18 11:10:50 -08:00
Michael Bayne 408defd0d0 Must set the thread context classloader when invoking direct. 2015-12-18 11:06:30 -08:00
Stefan Endrullis 28cad72291 added support for https proxies 2015-12-16 13:27:55 +01:00
Michael Bayne 256b048fce Support app_id-prefixed jvmarg parameters.
This makes sense given that we already support app_id-prefixed apparg
parameters, and one might want to configure the JVM specially for different
apps from the same installation.

Note: unlike apparg, app_id-prefixed jvmargs are appended to un-prefixed
jvmargs rather than replacing them. I think this makes sense because you
probably want to specify standard JVM args and then maybe tweak a thing or two
for your other app. This is also backward compatible which is usually a good
thing. It does mean that it's harder to "undo" a jvmarg set for your "default"
app, in such cases you'd probably have to not have a default app and instead
identify all of your apps with app_ids.
2015-11-29 16:58:14 -08:00
Michael Bayne 197d3e6620 Factor out addAll(String[], List<String>). 2015-11-29 16:57:35 -08:00
Michael Bayne 1edc4e2b6f Some drive-by tidying while reviewing. 2015-10-06 13:49:00 -07:00
neher e8e4a151df Added option to hide progress text with ui.hide_progress_text 2015-10-06 21:18:41 +02:00
Michael Bayne 947e45ef05 Tidying. 2015-10-02 09:50:06 -07:00
Réda Housni Alaoui 8076999d68 #23 Digest computation on packed 200 jars should only consider jar content 2015-09-15 15:55:51 +02:00
Michael Bayne c38ddc2305 Some tidying and commenting. 2015-08-22 12:37:05 -07:00
Réda Housni Alaoui 1b900dc2d0 https://github.com/threerings/getdown/issues/14 Add support for pack200 2015-08-22 19:00:27 +02:00
Michael Bayne 7a10d9a786 A bit of tidying here and there. 2015-06-23 07:14:28 -07:00
Michael Bayne 3933fee89c We still need to close fout here. 2015-06-23 07:13:49 -07:00
Stephen Neal 1fa262cd49 Clean up; close streams, readers (potential memory leaks) 2015-06-23 13:47:27 +09:30
Stephen Neal ae26c43a31 Cleanup unused imports 2015-06-23 11:10:15 +09:30
Michael Bayne c9ccb4aee0 Some tidying.
We don't like tabs, we don't like spurious blank lines, we don't like butter,
we don't like cheese.
2015-06-01 17:23:40 -07:00
phildin 3c32a119e8 Added option to hide decorations with ui.hide_decorations 2015-04-09 17:50:57 +01:00
Michael Bayne 2225ae6e97 Parse and check the version of an unpacked JVM.
This relies on the existence of a 'release' file in the top-level of the
unpacked JVM. If no 'release' file exists (or it can't be read) then we fall
back to the old behavior which is to assume that an unpacked JVM meets the
app's version requirements.

This also assumes that the java_version_regex configured for the app is capable
of parsing the version string in the release file. The release file appears to
contain a string that matches the system property 'java.version', so if you are
doing version shenanigans and using 'java.runtime.version', you need to do one
of two things:

1. Make sure your regexp can handle missing bits and that the lack of said bits
doesn't hose your version checks. For example, if you need 1.8.0_42-b15 and
your version regexp turns that into 108004215, but the release file just
contains 1.8.0_42 which your version regexp turns into 108004200, then you're
going to have a problem. But if your minimum version is some previous patch
release (say 1.8.0_25-b32) and the custom JVM you ship is 1.8.0_42, then you'll
be OK because 108004200 > 108002532.

2. Create your own 'release' file in your custom packaged JVM (or modify the
existing one) which contains a line with the following syntax:

JAVA_VERSION="VVV"

where VVV is the full version string that your regexp expects. It will be
extracted and parsed with your regexp, and everything will be peachy.
2015-03-18 10:08:59 -07:00
Michael Bayne 8d0455a03c Emit some debug info when checking Java version. 2015-03-18 09:12:37 -07:00
Michael Bayne ee4c0016d8 Allow config of sysprop used to get Java version.
For example:

java_version_prop = java.runtime.version
java_version_regex = (\d+)\.(\d+)\.(\d+)(_\d+)?(-b\d+)?

Note: double backslashes are not needed in getdown.txt.
2015-02-16 10:51:39 -08:00
Michael Bayne 985f2baaa1 Prepare for more flexible Java version parsing.
This preserves existing functionality, but accomplishes it with a general
purpose method that can parse any Java version string, given a regular
expression that matches all the number parts (which have to be in most to least
significant order).
2015-02-16 10:45:08 -08:00
Michael Bayne 8e446d96e4 Whitespace tweaks. 2015-02-16 09:46:46 -08:00
Michael Bayne 382bb2cd5b Parse java_max_version down by java_min_version. 2015-02-16 08:34:54 -08:00
Michael Bayne 4c36b312e2 Fix some Javadoc errors. 2014-11-14 08:45:27 -08:00
Jamie Doornbos f682d7e513 Allow resources with spaces in the path.
This is in order to include a file output by unity that we have no control over.
2014-10-15 10:40:37 -07:00
Michael Bayne 9f40fadeff Better error reporting on no getdown.txt. 2014-07-07 07:52:02 -07:00
Michael Bayne df4eabbf09 Don't choke on proxy detection if allow_offline = true.
This unfortunately relies on _app.init() happening *inside* detect proxy in the
particular code path that results in failed proxy detection. I wish app.init
wasn't such a twisty maze of spaghetti, but that ship has long since sailed.
2014-04-09 07:15:47 -07:00
Michael Bayne 6134d3a967 Beans/frank. 2014-03-26 13:37:50 -07:00
Michael Bayne 5cb44526e8 Up-dates, point to LICENSE on github.com. 2014-03-10 08:25:59 -07:00
Michael Bayne b793b56a28 Reinit our UI more cleanly. 2014-02-11 11:32:53 -08:00
Michael Bayne f706ed216a Fix our bounds calculation when missing bg image. 2014-02-11 11:32:30 -08:00
Michael Bayne faece11e11 Allow specification of appbase via system property.
This allows one to bootstrap a Getdown install with no files at all. You don't
get a very sexy UI during the first install, but you can make something
non-horrible with a background color and a small window.
2014-02-11 11:13:13 -08:00
Michael Bayne c1d2946747 Provide a default background color.
Otherwise we get black text on a black background in catastrophic failure
scenarios.
2014-02-11 11:13:13 -08:00
Michael Bayne 25c4d7671c Support java_min_version as alias of java_version. 2013-12-04 11:26:42 -08:00
Michael Bayne fc817d5b1e Changed java_version_max to java_max_version.
Other tidying and consolidation.
2013-12-04 11:24:59 -08:00
Michael Bayne c098dba735 Merge pull request #1 from makkus/master
Added option to specify max Java version.
2013-12-04 11:15:31 -08:00
dajaksic e9e65e41dd changed condition 2013-10-17 11:10:10 +02:00
Markus Binsteiner 1172015198 Added option to specify max Java version.
Property name in getdown.txt is: java_version_max
2013-09-24 11:30:34 +12:00
Michael Bayne 050c14844e Support basic auth when downloading latest.txt.
Fixes issue 27.
2013-04-16 08:27:39 -07:00
Michael Bayne be56b50801 Strip \r as well as \n when "one-lining" auth blob. Fixes #28. 2013-04-16 08:22:21 -07:00
Michael Bayne e74c71aa6b Added support for configuring a connect timeout when downloading metafiles. 2013-04-10 13:24:23 -07:00