Skip to content

Commit

Permalink
Don't replace vars in files for other OS
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoffland committed Feb 14, 2024
1 parent 070c633 commit 652c05f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,10 @@ Clean(tar, ['dist.txt'])

if 'package' in COMMAND_LINE_TARGETS:
# Resolve variables in ``.in`` files and directories
env.ReplaceVariablesInFiles('install', 'build')
if env['PLATFORM'] == 'win32': paths = ['win']
elif env['PLATFORM'] == 'darwin': paths = ['osx']
else: paths = ['lin', 'debian', 'rpm']
for p in paths: env.ReplaceVariablesInFiles('install/' + p, 'build/install')

# Code sign key password
path = os.environ.get('CODE_SIGN_KEY_PASS_FILE')
Expand Down Expand Up @@ -151,7 +154,8 @@ if 'package' in COMMAND_LINE_TARGETS:
vendor = env['PACKAGE_ORG'],
url = env['PACKAGE_HOMEPAGE'],
license = 'LICENSE',
bug_url = 'https://github.com/FoldingAtHome/fah-client-bastet',
bug_url =
'https://github.com/FoldingAtHome/fah-client-bastet',
summary = 'Folding@home Client',
description = package_info.get('description'),
icons = ['images/fahlogo.png'],
Expand All @@ -161,8 +165,9 @@ if 'package' in COMMAND_LINE_TARGETS:
desktop_menu = ['build/install/lin/fah-client.desktop'],
changelog = 'CHANGELOG.md',
systemd = ['build/install/lin/fah-client.service'],
misc = [['build/install/lin/fah-client.pkla',
'var/lib/polkit-1/localauthority/10-vendor.d/fah-client.pkla']],
misc = [
['build/install/lin/fah-client.pkla',
'var/lib/polkit-1/localauthority/10-vendor.d/fah-client.pkla']],

nsi = 'build/install/win/fah-client.nsi',
timestamp_url = 'http://timestamp.comodoca.com/authenticode',
Expand Down

0 comments on commit 652c05f

Please sign in to comment.