From 924218c1ed0cb331f99e90dfa9060c85c307f8cf Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 6 Mar 2014 11:49:05 +0100 Subject: [PATCH] updated spec file --- yubicoauthenticator/yubicoauthenticator.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/yubicoauthenticator/yubicoauthenticator.spec b/yubicoauthenticator/yubicoauthenticator.spec index f549b411..00b10e1b 100644 --- a/yubicoauthenticator/yubicoauthenticator.spec +++ b/yubicoauthenticator/yubicoauthenticator.spec @@ -24,6 +24,12 @@ import errno from glob import glob from getpass import getpass + +WIN = sys.platform in ['win32', 'cygwin'] +OSX = sys.platform in ['darwin'] + + + ###################### # # # USER CONFIGURATION # @@ -32,15 +38,16 @@ from getpass import getpass NAME = "Yubico Authenticator" PROJECT_PATH = "C:\\Users\\v\\Documents\\Git\\yubioath-desktop\\yubicoauthenticator" -ICON = "yubico.ico" - +#windows icon +if WIN: + ICON = "yubico.ico" +#osx icon +if OSX: + ICON = "yubioath-48.icns" ### END OF USER CONFIGURATION ### -WIN = sys.platform in ['win32', 'cygwin'] -OSX = sys.platform in ['darwin'] - #if WIN: # ICON = os.path.join('graphics\\graphics', 'yubico.ico')