mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-28 03:11:17 +03:00
updated spec file
This commit is contained in:
parent
7d1d372112
commit
7d1900a25d
@ -24,7 +24,19 @@ import errno
|
|||||||
from glob import glob
|
from glob import glob
|
||||||
from getpass import getpass
|
from getpass import getpass
|
||||||
|
|
||||||
|
######################
|
||||||
|
# #
|
||||||
|
# USER CONFIGURATION #
|
||||||
|
# #
|
||||||
|
######################
|
||||||
|
|
||||||
NAME = "Yubico Authenticator"
|
NAME = "Yubico Authenticator"
|
||||||
|
PROJECT_PATH = "C:\\Users\\v\\Documents\\Git\\yubioath-desktop\\yubicoauthenticator"
|
||||||
|
ICON = "yubico.ico"
|
||||||
|
|
||||||
|
### END OF USER CONFIGURATION ###
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
WIN = sys.platform in ['win32', 'cygwin']
|
WIN = sys.platform in ['win32', 'cygwin']
|
||||||
OSX = sys.platform in ['darwin']
|
OSX = sys.platform in ['darwin']
|
||||||
@ -39,13 +51,13 @@ with open('__init__.py', 'r') as f:
|
|||||||
|
|
||||||
if WIN:
|
if WIN:
|
||||||
a = Analysis(['.\\ui_systray.py'],
|
a = Analysis(['.\\ui_systray.py'],
|
||||||
pathex=['C:\\Users\\v\\Documents\\Git\\yubioath-desktop\\yubicoauthenticator'],
|
pathex=[PROJECT_PATH],
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
||||||
hookspath=None,
|
hookspath=None,
|
||||||
runtime_hooks=None)
|
runtime_hooks=None)
|
||||||
|
|
||||||
if OSX:
|
if OSX:
|
||||||
a = Analysis(['.\ui_systray.py'],
|
a = Analysis(['ui_systray.py'],
|
||||||
pathex=['.'],
|
pathex=['.'],
|
||||||
hiddenimports=[],
|
hiddenimports=[],
|
||||||
hookspath=None,
|
hookspath=None,
|
||||||
@ -62,7 +74,7 @@ exe = EXE(pyz,
|
|||||||
upx=True,
|
upx=True,
|
||||||
console=False,
|
console=False,
|
||||||
append_pkg=not OSX,
|
append_pkg=not OSX,
|
||||||
icon='yubico.ico' )
|
icon=ICON )
|
||||||
|
|
||||||
coll = COLLECT(exe,
|
coll = COLLECT(exe,
|
||||||
a.binaries,
|
a.binaries,
|
||||||
@ -70,7 +82,7 @@ coll = COLLECT(exe,
|
|||||||
a.datas,
|
a.datas,
|
||||||
strip=None,
|
strip=None,
|
||||||
upx=True,
|
upx=True,
|
||||||
name='Yubico Authenticator')
|
name=NAME)
|
||||||
|
|
||||||
# Read version information on Windows.
|
# Read version information on Windows.
|
||||||
VERSION = None
|
VERSION = None
|
||||||
@ -146,11 +158,6 @@ if OSX:
|
|||||||
|
|
||||||
|
|
||||||
# fix graphics folder
|
# fix graphics folder
|
||||||
#import distutils.core
|
|
||||||
# copy subdirectory example
|
|
||||||
#fromDirectory = 'C:\\Users\\JohnDoe\\Desktop\\YubicoAuthenticator\\yubicoauthenticator\\graphics'
|
|
||||||
#toDirectory = 'C:\\Users\\JohnDoe\\Desktop\\YubicoAuthenticator\\yubicoauthenticator\\dist\\Yubico Authenticator\\'
|
|
||||||
#distutils.dir_util.copy_tree(fromDirectory, toDirectory)
|
|
||||||
import shutil
|
import shutil
|
||||||
shutil.copy2('yubioath-48.png', 'dist/Yubico Authenticator/yubioath-48.png')
|
shutil.copy2('yubioath-48.png', 'dist/Yubico Authenticator/yubioath-48.png')
|
||||||
shutil.copy2('yubico.ico', 'dist/Yubico Authenticator/yubico.ico')
|
shutil.copy2('yubico.ico', 'dist/Yubico Authenticator/yubico.ico')
|
||||||
@ -158,6 +165,12 @@ shutil.copy2('yubico.png', 'dist/Yubico Authenticator/yubico.png')
|
|||||||
shutil.copy2('yubico-logo81.png', 'dist/Yubico Authenticator/yubico-logo81.png')
|
shutil.copy2('yubico-logo81.png', 'dist/Yubico Authenticator/yubico-logo81.png')
|
||||||
|
|
||||||
|
|
||||||
|
#######################
|
||||||
|
# #
|
||||||
|
# SIGN THE EXECUTABLE #
|
||||||
|
# #
|
||||||
|
#######################
|
||||||
|
|
||||||
pfx_pass = "yubico"
|
pfx_pass = "yubico"
|
||||||
|
|
||||||
if WIN:
|
if WIN:
|
||||||
|
Loading…
Reference in New Issue
Block a user