{"id":20239173,"url":"https://github.com/edvin/fxlauncher-gradle-plugin","last_synced_at":"2025-04-10T19:40:29.781Z","repository":{"id":57738193,"uuid":"61643055","full_name":"edvin/fxlauncher-gradle-plugin","owner":"edvin","description":"Gradle plugin for FXLauncher","archived":false,"fork":false,"pushed_at":"2019-06-24T09:28:56.000Z","size":117,"stargazers_count":19,"open_issues_count":13,"forks_count":20,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T22:43:38.822Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edvin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-21T14:58:34.000Z","updated_at":"2024-08-15T06:05:04.000Z","dependencies_parsed_at":"2022-08-24T11:40:15.572Z","dependency_job_id":null,"html_url":"https://github.com/edvin/fxlauncher-gradle-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvin%2Ffxlauncher-gradle-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvin%2Ffxlauncher-gradle-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvin%2Ffxlauncher-gradle-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edvin%2Ffxlauncher-gradle-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edvin","download_url":"https://codeload.github.com/edvin/fxlauncher-gradle-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281419,"owners_count":21077423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T08:37:48.574Z","updated_at":"2025-04-10T19:40:29.744Z","avatar_url":"https://github.com/edvin.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FXLauncher Gradle Plugin\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/no.tornado/fxlauncher-gradle-plugin/badge.svg)](https://search.maven.org/#search|ga|1|no.tornado.fxlauncher-gradle-plugin)\n[![Apache License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n\nSee usage example in the [fxldemo-gradle demo project](https://github.com/edvin/fxldemo-gradle)\n\nThe plugin supports the following tasks:\n\n- **copyAppDependencies**: Assembles the application into `build/fxlauncher`\n- **generateApplicationManifest**: Generates app.xml into `build/fxlauncher`\n- **embedApplicationManifest**: Copies app.xml into `fxlauncher.jar`\n- **deployApp**: Transfers application to `deployTarget` via scp\n- **generateNativeInstaller**: Generates a native installer\n\nConfiguration example:\n\n```groovy\nbuildscript {\n    repositories {\n        mavenCentral()\n    }\n    dependencies {\n        classpath 'no.tornado:fxlauncher-gradle-plugin:1.0.21'\n    }\n}\n\napply plugin: 'no.tornado.fxlauncher'\n\nfxlauncher {\n    applicationVendor 'My Company'\n    applicationUrl 'http://host/path'\n    applicationMainClass 'com.example.Application'\n    deployTarget 'username@hostname:path'\n}\n```\n\n**Please note that the `deployApp` task requires the scp binary to be present in your path, and that you have installed the corresponding target host key locally and the public key on the target**\n\nThe `deployTarget` option also accepts deploying to local file system paths, for example: `C:/some/path`.\n\nOptionally include `scpOptions = [\"-v\"]` to enable verbose output from scp if you run into trouble.\n\n## What's new file\n\nSupply `whatsNew https://whatsnew/url` to include an HTML link that will be shown to the user after update.\n\n## Optional parameters\n\nIf you need to further customize the parameters to `javapackager` you can supply the `javapackagerOptions` parameter, which takes a `List\u003cString\u003e`. Consult\nthe [JavaPackager docs](https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javapackager.html) for more information about possible parameters.\n\nUse `javapackerNativeParam` to supply arguments to `javapackager -native` flag such as `msi` or `dep` in order to generate native installer packages instead of MSI.\n\n### User interface customization\nYou can change how the FXLauncher's user interface looks when it's updating the app.\n\n#### Update Text\n##### Actual Text\nTo change the default \"Updating...\" text, add something like `updateText 'Updating CoolApp...'` to the fxlauncher \nsection of your build.gradle file.\n\n##### Text Style\nTo style the update text, add something like `updateLabelStyle '-fx-underline: true;'` to the fxlauncher section of \nyour build.gradle file. You can use any valid CSS rule that applies to a Labeled. Here's [the list for Labeled][Labeled CSS], \nbut don't forget about the rules for its parents, [Control][Control CSS], [Region][Region CSS], [Parent][Parent CSS], \nand [Node][Node CSS].\n\n#### Progress Bar\nTo style the progress bar, add something like `progressBarStyle '-fx-accent: lime;'` to the fxlauncher section of \nyour build.gradle file. (Hint: `-fx-accent` happens to be the rule that controls the progress bar's color. See java's \nmodena.css as well as this [StackOverflow question][StackOverflow Question About Bar Color])\n\n#### Text and Bar Wrapper\nThere's a VBox around everything. To style it, add something like `-fx-spacing: 20;`to the fxlauncher section of your \nbuild.gradle file. You can use any valid CSS rule that applies to a VBox. Here's the [list for VBox][VBox CSS], but \ndon't forget about the rules for its parents, [Pane][Pane CSS], [Region][Region CSS], [Parent][Parent CSS], and \n[Node][Node CSS].\n\n[StackOverflow Question About Bar Color]: https://stackoverflow.com/questions/13357077/javafx-progressbar-how-to-change-bar-color/13372086#13372086\n\n[Labeled CSS]: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html#labeled\n[Control CSS]: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html#control\n[VBox CSS]: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html#vbox\n[Pane CSS]: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html#pane\n[Region CSS]: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html#region\n[Parent CSS]: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html#parent\n[Node CSS]: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html#node\n\n### Keep update screen until primary stage is shown, even if update is completed\n\n```groovy\nlingeringUpdateScreen true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedvin%2Ffxlauncher-gradle-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedvin%2Ffxlauncher-gradle-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedvin%2Ffxlauncher-gradle-plugin/lists"}