Commits

Anonymous committed 94d24a4

bundleArguments for win and linux, with some cleanup.

Comments (0)

Files changed (1)

samples/FullyExpressed/build.gradle

+/*
+ * This file contans settings for every build setting a common build might want
+ * to set in a standard build.  Not every possible crazy setting, just the ones
+ * a well behaved build might want to set.
+ *
+ * For the bundleArguments section I only set values that are not already set
+ * by the convention or sniffed out from the other configurations in the
+ * application.
+ */
+
 apply from: 'javafx.plugin'
 apply plugin: 'idea'
 apply plugin: 'maven'
 }
 
 group = 'com.bitbucket.shemnon.javafxplugin.samples'
-version = '0.0.0'
+version = '8.1.0-sample'
 
 javafx {
 
             id = 'c533f663-1efd-489f-b910-4c7ec20c7fd0'
             category = 'JavaFX Demos'
             javaRuntime = 'C:/Program Files (x86)/Java/jdk1.8.0_20'
+
+            bundleArguments = [
+                // for EXE and MSI bundles
+                'win.menuGroup' : 'Gradle Samples',	 //If menuHint is set, then this is the menu group to install the application into.
+
+                // fir MSI bundles, they have stricter version numbering rules
+                'win.msi.productVersion' : '8.1.0'
+            ]
         }
 
         macosx {
             javaRuntime = '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/'
 
             bundleArguments = [
-                //for all apps
+                // for mac apps
                 'mac.category' : 'public.app-category.developer-tools',
                 'mac.CFBundleIdentifier' : 'com.shemnon.gradle-plugin.FullyExpressed',
                 'mac.CFBundleName' : 'Fully Expressed',
                 //'mac.signing-key-developer-id-app' : 'Developer ID Application: Danno Ferrin' // usually redundant with mac.signing-key-user-name
                 'mac.bundle-id-signing-prefix' : 'com.shemnon.gradle-plugin.FE.',
 
-                // for PKG apps
+                // for PKG bundles
                 //'mac.signing-key-developer-id-installer' : 'Developer ID Installer: Danno Ferrin', // usually redundant with mac.signing-key-user-name
 
-                // for Mac App Store Ready
+                // for Mac App Store Ready bundles
                 'mac.app-store-entitlements' : 'src/deploy/package/NetworkEntitlements.entitlements',
                 //'mac.signing-key-app' : '3rd Party Mac Developer Applicaiton: Danno Ferrin', // usually redundant with mac.signing-key-user-name
                 //'mac.signing-key-pkg' : '3rd Party Mac Developer Installer: Danno Ferrin', // usually redundant with mac.signing-key-user-name
             category = 'Development'
             // good luck finding a standard location for the JDK
             //javaRuntime = '/usr/lib/jvm/java-7-oracle'
+
+            bundleArguments = [
+                // for DEB bundles
+                'email' : 'support@example.com', // This is the email used for the deb maintainer field.
+            ]
         }
     }
 
         licenseFile = 'LICENSE' // click through license file for some bundlers
         userJvmOptions = [ '-Xmx' : '128m',  '-Xms' : '128m'] // A mechanism to allow programs to adjust JVM Options
         preferencesID = 'com.shemnon.fullyExpressed' // implementation detail for user JVM options
-
-        // These common options exist already in the Gradle conventions.  Presented in comments for completeness.
-        // appVersion = '0.0.0', // duplicate of version
-        // classPath = 'FullyExpressed-0.0.0.jar;jfxtras-labs-2.2-r4.jar'  // calculated from dependencies
-        // mainJar = 'FullyExpressed-0.0.0.jar' // calculated from build
-        // icon = 'javafx-icon.png', // duplicate of icon
-        // identifier = 'FullyExpressed', // duplicate of appId
-        // jvmOptions = ['-XX:+AggressiveOpts', '-XX:CompileThreshold=1'], // duplicate of jvmArgs
-        // jvmProperties = [ 'prism.disableRegionCaching':'true' ] // duplicate of systemProperties
-        // runtime = 'javaRuntime' // duplicate of javaRuntime
     }
 }