-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show GUI but not launch #6
Comments
There's no configuration for doing this in the code, but depending on what you're trying to accomplish, maybe some hackery can get you there. Is your intent to download code/resources that are presumably not yet downloaded and then just stop? |
The main reason is that I need to stop a service before getdown, and start
|
On Thu, Jun 5, 2014 at 11:37 AM, David Steinsland notifications@github.com
OK, then I think the approach I had in mind may be useful. You can pass system properties to the Getdown app which are passed through java -jar getdown.jar -Dapp.update-only=true appdir which will then pass -Dupdate-only=true to your app when it is run. Your That way, whatever is running Getdown will cause it to do its natural |
yeah, thank you. much simpler! on a side note.. is it possible to update |
On Fri, Jun 6, 2014 at 6:37 AM, David Steinsland notifications@github.com
You can update Getdown, but you have to jump through hoops, because as you What we do is to add: resource = getdown-new.jar to our apps, and then there's a helper class in Getdown called LaunchUtil
Getdown jar file over the If the upgrade fails for a variety of reasons, warnings are The way to use it is to put getdown.jar in your app's classpath, and then delete oldgd This three way shuffle is to avoid conflicts if Getdown is still running Also upgradeGetdown() does nothing if curgd and newgd are the same size |
Aha, so something like this then: ...
public static void main(...) {
com.threerings.getdown.util.LaunchUtil.upgradeGetdown(new File("getdown-old.jar"),
new File("getdown.jar"),
new File("getdown-new.jar"));
}
|
Exactly. |
Is it possible to show the GUI, but not launch the application?
In a worst-case scenario I guess I can import
getdown.jar
into my classpath, and extend theStatusPanel
to create my own GUI, but that sounds like a lot of work ...The text was updated successfully, but these errors were encountered: