https://github.com/edvin/fxldemo-gradle
FXLauncher demo for Gradle
https://github.com/edvin/fxldemo-gradle
Last synced: 2 months ago
JSON representation
FXLauncher demo for Gradle
- Host: GitHub
- URL: https://github.com/edvin/fxldemo-gradle
- Owner: edvin
- License: apache-2.0
- Created: 2016-02-15T11:08:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T15:00:15.000Z (about 6 years ago)
- Last Synced: 2025-04-04T22:43:38.812Z (3 months ago)
- Language: Java
- Size: 68.4 KB
- Stars: 21
- Watchers: 5
- Forks: 17
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Gradle QuickStart Demo Application for FXLauncher
This example showcases how to configure [FXLauncher](https://github.com/edvin/fxlauncher) in your
Gradle based application to provide automatic updates optionally in combination with native installers.Please see [build.gradle](/build.gradle) for more information.
**Note**: Even though FXLauncher has a Gradle plugin, there is nothing Gradle specific about it, and these operations should be easy to perform in any build system.
There is also a [Maven version](https://github.com/edvin/fxldemo) of this project.## Operations
The Gradle plugin supports the following tasks:
- **copyAppDependencies**: Assembles the application into `build/fxlauncher`
- **generateApplicationManifest**: Generates app.xml into `build/fxlauncher`
- **embedApplicationManifest**: Copies app.xml into `fxlauncher.jar`
- **deployApp**: Transfers application to `deployTarget` via scp
- **generateNativeInstaller**: Generates native installerNormally you would only perform `deployApp` to update your application, as all the previous
tasks are dependencies on this one. To test your app locally in `build/fxlauncher` you
only need to run the `embedApplicationManifest` task.### Configuration
See [build.gradle](/build.gradle) for configuration options.
### Prebuilt installers
See http://fxldemo.tornado.no for a prebuilt version of this application, including native installers
for Windows, MacOSX and Linux.### Deploy to Amazon S3
The built in `deployApp` task will only deploy using scp. If you want to deploy to Amazon S3, you can include this task in your build. Make sure
you run the `embedApplicationManifest` first.```groovy
task deployS3(type: Exec) {
// You need to have installed AWS command line interface: https://aws.amazon.com/cli/
commandLine 'aws', 'configure', 'set', 'aws_access_key_id', 'your_access_key_id'
commandLine 'aws', 'configure', 'set', 'aws_secret_access_key', 'your_secret_access_key'
commandLine 'aws', 's3', 'cp', 'build/fxlauncher', 's3://', '--acl', 'public-read', '--recursive', '--region', 'us-west-1'
}
```