mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Remove date macro on version for reproducible builds
cf https://reproducible-builds.org/
This commit is contained in:
		@@ -36,7 +36,7 @@ else
 | 
				
			|||||||
    if meson.source_root() == git_path
 | 
					    if meson.source_root() == git_path
 | 
				
			||||||
        git_commit_hash = run_command([git.path(), 'describe', '--always', '--tags']).stdout().strip()
 | 
					        git_commit_hash = run_command([git.path(), 'describe', '--always', '--tags']).stdout().strip()
 | 
				
			||||||
        git_branch = run_command([git.path(), 'rev-parse', '--abbrev-ref', 'HEAD']).stdout().strip()
 | 
					        git_branch = run_command([git.path(), 'rev-parse', '--abbrev-ref', 'HEAD']).stdout().strip()
 | 
				
			||||||
        version = '"@0@ (" __DATE__ ", branch \'@1@\')"'.format(git_commit_hash, git_branch)
 | 
					        version = '"@0@ (branch \'@1@\')"'.format(git_commit_hash, git_branch)
 | 
				
			||||||
        add_project_arguments('-DVERSION=@0@'.format(version), language: 'cpp')
 | 
					        add_project_arguments('-DVERSION=@0@'.format(version), language: 'cpp')
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        add_project_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'cpp')
 | 
					        add_project_arguments('-DVERSION="@0@"'.format(meson.project_version()), language: 'cpp')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user