xquartz: Update Sparkle configuration to use SUPublicEDKey
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 1d90bef30c)
			
			
This commit is contained in:
		
							parent
							
								
									6465263be8
								
							
						
					
					
						commit
						96e7b55c5d
					
				| 
						 | 
				
			
			@ -31,8 +31,8 @@
 | 
			
		|||
#ifdef XQUARTZ_SPARKLE
 | 
			
		||||
	<key>SUEnableAutomaticChecks</key>
 | 
			
		||||
		<true/>
 | 
			
		||||
	<key>SUPublicDSAKeyFile</key>
 | 
			
		||||
		<string>sparkle.pem</string>
 | 
			
		||||
	<key>SUPublicEDKey</key>
 | 
			
		||||
		<string>XQUARTZ_SPARKLE_PUBLIC_EDKEY</string>
 | 
			
		||||
        <key>SUFeedURL</key>
 | 
			
		||||
                <string>XQUARTZ_SPARKLE_FEED_URL</string>
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -13,6 +13,7 @@ if build_sparkle
 | 
			
		|||
cpp_defs += [
 | 
			
		||||
    '-DXQUARTZ_SPARKLE',
 | 
			
		||||
    '-DXQUARTZ_SPARKLE_FEED_URL=@0@'.format(xquartz_sparkle_feed_url),
 | 
			
		||||
    '-DXQUARTZ_SPARKLE_PUBLIC_EDKEY=@0@'.format(xquartz_sparkle_public_edkey),
 | 
			
		||||
]
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,6 +4,7 @@ apple_applications_dir = get_option('apple-applications-dir')
 | 
			
		|||
apple_application_name = get_option('apple-application-name')
 | 
			
		||||
bundle_id_prefix = get_option('bundle-id-prefix')
 | 
			
		||||
xquartz_sparkle_feed_url = get_option('sparkle-feed-url')
 | 
			
		||||
xquartz_sparkle_public_edkey = get_option('sparkle-public-edkey')
 | 
			
		||||
 | 
			
		||||
bundle_version_string = meson.project_version() # CFBundleShortVersionString
 | 
			
		||||
bundle_version = release                        # CFBundleVersion
 | 
			
		||||
| 
						 | 
				
			
			@ -13,7 +14,7 @@ bundle_id_def = '-DBUNDLE_ID_PREFIX="@0@"'.format(bundle_id_prefix)
 | 
			
		|||
bundle_root = join_paths(apple_applications_dir, apple_application_name + '.app')
 | 
			
		||||
 | 
			
		||||
# using sparkle update framework?
 | 
			
		||||
build_sparkle = xquartz_sparkle_feed_url != ''
 | 
			
		||||
build_sparkle = xquartz_sparkle_feed_url != '' and xquartz_sparkle_public_edkey != ''
 | 
			
		||||
if build_sparkle
 | 
			
		||||
    sparkle = dependency('Sparkle', method: 'extraframework')
 | 
			
		||||
endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -118,6 +118,8 @@ option('bundle-id-prefix', type: 'string', value: 'org.x',
 | 
			
		|||
        description: 'RDNS prefix for bundle identifier')
 | 
			
		||||
option('sparkle-feed-url', type: 'string',
 | 
			
		||||
        description: 'Feed URL for autoupdating with the Sparkle Framework (default: disabled)')
 | 
			
		||||
option('sparkle-public-edkey', type: 'string',
 | 
			
		||||
        description: 'Public EdDSA key for verifying updates from the Sparkle feed (default: disabled)')
 | 
			
		||||
option('xpbproxy', type: 'boolean', value: false,
 | 
			
		||||
        description: 'Build a standalone X pasteboard proxy')
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue