if sys.platform == 'win32':
    exe = Executable(
        script='../main_trawl_backdeck.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='trawl_backdeck.exe',
        icon='../resources/ico/trawl2.ico')

# Prompt to nuke existing directory
deployed_path = r'build\exe.win64-3.6\trawl_backdeck'
if os.path.exists(deployed_path):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='Trawl Back Deck',
      version='1.0',
      author='FRAM Data',
      description='Trawl Back Deck',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc='trawl_backdeck',
                               folders_to_zip=[
                                   'trawl_backdeck/trawl_backdeck.exe',
                                   'trawl_backdeck/py',
                                   'trawl_backdeck/data/trawl_backdeck.db'
                               ])
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
exe = None
if sys.platform == 'win32':
    exe = Executable(
        script='../main_trawl_analyzer.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='trawl_analyzer.exe')

# Prompt to nuke existing directory
deployed_path = r'build\exe.win64-3.6\trawl_analyzer'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path, ignore_errors=True)
    print('Deleted ' + deployed_path)

setup(name='Trawl Analyzer',
      version='0.1',
      author='FRAM Data',
      description='Trawl Analyzer',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc='trawl_analyzer')
    )


# Prompt to nuke existing directory
deployed_path = 'exe.win32-3.6'
if os.path.exists(deployed_path):
    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
        shutil.rmtree(deployed_path)
        print('Deleted ' + deployed_path)

setup(
    name='Observer Back Deck Key Installer',
    version='0.1',
    author='FRAM Data',
    description='Observer Back Deck Key Installer',
    options={'build_exe': build_exe_options
             },
    executables=[exe],
)
# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path, filedesc='observer_keyinstaller')

# clean up
# Prompt to nuke existing directory
clean_paths = ['exe.win32-3.6']
if click.confirm('Cleaning up. Delete paths {0}? '.format(clean_paths), default=True):
    for path in clean_paths:
        if os.path.exists(deployed_path):
            shutil.rmtree(deployed_path)
            print('Deleted ' + deployed_path)
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
exe = None
if sys.platform == 'win32':
    exe = Executable(
        script='../main_hookandline_fpc.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='HookLogger.exe',
        icon='../resources/ico/hooklogger.ico')

# Prompt to nuke existing directory
deployed_path = r'build\exe.win64-3.6\HookLogger'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='Hook & Line FPC',
      version='1.10',
      author='FRAM Data',
      description='Hook & Line FPC',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc='HookLogger')
Example #5
0
if sys.platform == 'win32':
    exe = Executable(
        script='../main_trawl_backdeck.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='trawl_backdeck.exe',
        #      compress=True,
        #      copyDependentFiles=True,
        #      appendScriptToExe=False,
        #      appendScriptToLibrary=False,
        icon='../resources/ico/trawl2.ico')

# Prompt to nuke existing directory
deployed_path = r'build\exe.win64-3.6\trawl_backdeck'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='Trawl Back Deck',
      version='1.0',
      author='FRAM Data',
      description='Trawl Back Deck',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc='trawl_backdeck')
        #      copyDependentFiles=True,
        #      appendScriptToExe=False,
        #      appendScriptToLibrary=False,
        icon='../resources/ico/trawl2.ico')

# Prompt to nuke existing directory
deployed_path = 'build\exe.win64-3.6\CutterStation'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='Cutter Station',
      version='0.1',
      author='FRAM Data',
      description='Survey Backdeck',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(
    base_folder=deployed_path,
    filedesc='CutterStation',
    folders_to_zip=[
        'CutterStation/CutterStation.exe', 'CutterStation/py',
        'CutterStation/qml',
        'CutterStation/resources/sounds/weighbaskets_donuts.wav',
        'CutterStation/resources/sounds/fishsampling_shotgun.wav',
        'CutterStation/resources/sounds/cutterstation_nextfish.wav'
    ])
if sys.platform == 'win32':
    exe = Executable(
        script='../main_survey_backdeck.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='CutterStation.exe',
        #      compress=True,
        #      copyDependentFiles=True,
        #      appendScriptToExe=False,
        #      appendScriptToLibrary=False,
        icon='../resources/ico/trawl2.ico')

# Prompt to nuke existing directory
deployed_path = 'build\exe.win64-3.6\CutterStation'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='Cutter Station',
      version='0.1',
      author='FRAM Data',
      description='Survey Backdeck',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc='CutterStation')
Example #8
0
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
exe = None
if sys.platform == 'win32':
    exe = Executable(
        script='../main_hookandline_hookmatrix.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='HookMatrix.exe',
        icon='../resources/ico/hooklogger.ico')

# Prompt to nuke existing directory
deployed_path = 'build\exe.win64-3.6\HookMatrix'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='Hook & Line HookMatrix',
      version='1.0',
      author='FRAM Data',
      description='Hook & Line HookMatrix',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc='hookandline_hookmatrix')
Example #9
0
# cx_freeze build script
# Written with cx-Freeze==4.3.4

# Outputs by default to build\exe.win32-3.4\
# Note: will NOT delete anything in that directory
# Modify path_platforms as required

# Usage:
# build_trawl_analyzer.py build

from buildzipper import buildzipper

# Prompt to nuke existing directory
deployed_path = r'build\exe.win64-3.6\trawl_analyzer'

# Zip up our creation
buildzipper.create_zip_archive(
    base_folder=deployed_path,
    filedesc='trawl_analyzer',
    folders_to_zip=['trawl_analyzer/trawl_analyzer.exe', 'trawl_analyzer/py'])
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
exe = None
if sys.platform == 'win32':
    exe = Executable(
        script='../main_hookandline_hookmatrix.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='HookMatrix.exe',
        icon='../resources/ico/hookmatrix.ico')

# Prompt to nuke existing directory
deployed_path = 'build\exe.win64-3.6\HookMatrix'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='Hook & Line HookMatrix',
      version='1.0',
      author='FRAM Data',
      description='Hook & Line HookMatrix',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc=f'HookMatrix_{version}')
Example #11
0
    setup(
        name='Observer Back Deck TEST',
        version='1.0',
        author='FRAM Data',
        description='Observer Back Deck',
        options={
            'build_exe': build_exe_options_ifqadmin,
            'bdist_msi': bdist_msi_options,
            'install_exe': install_exe_options,
        },
        executables=[exe],
    )

    # Zip up our creation
    buildzipper.create_zip_archive(
        base_folder=deployed_path,
        filedesc=f'OPTECS_FG_IFQADMIN{custom_build_suffix}',
        version=optecs_version)

if BUILD_IFQDEV_VERSION:
    if BUILD_IFQADMIN_VERSION:
        print(
            f'Sleeping for {file_lock_delay_secs} seconds (release file locks)'
        )
        sleep(file_lock_delay_secs)
    setup(
        name='Observer Back Deck DEV',
        version='1.0',
        author='FRAM Data',
        description='Observer Back Deck',
        options={
            'build_exe': build_exe_options_ifqdev,
if sys.platform == 'win32':
    exe = Executable(
        script='../main_hookandline_hookmatrix.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='HookMatrix.exe',
        icon='../resources/ico/hooklogger.ico')

# Prompt to nuke existing directory
deployed_path = 'build\exe.win64-3.6\HookMatrix'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='HookMatrix',
      version='1.0',
      author='FRAM Data',
      description='Hook & Line HookMatrix',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc='HookMatrix',
                               folders_to_zip=[
                                   'HookMatrix/HookMatrix.exe',
                                   'HookMatrix/py', 'HookMatrix/qml'
                               ])
Example #13
0
    exe = Executable(
        script='../main_hookandline_fpc.py',
        initScript=None,
        # base='Console',  # useful for debugging
        base='Win32GUI',  # use this to hide console output (releases)
        targetName='HookLogger.exe',
        icon='../resources/ico/hooklogger.ico')

# Prompt to nuke existing directory
deployed_path = 'build\exe.win64-3.6\HookLogger'
if os.path.exists(deployed_path):
    #    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
    shutil.rmtree(deployed_path)
    print('Deleted ' + deployed_path)

setup(name='Hook & Line FPC',
      version='1.10',
      author='FRAM Data',
      description='Hook & Line FPC',
      options={'build_exe': build_exe_options},
      executables=[exe])

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path,
                               filedesc='HookLogger',
                               folders_to_zip=[
                                   'HookLogger/HookLogger.exe',
                                   'HookLogger/lib/library.zip',
                                   'HookLogger/py', 'HookLogger/qml'
                               ])
Example #14
0
      script='../main_ashop.py',
      initScript=None,
      # base='Console',  # useful for debugging
      base='Win32GUI',  # use this to hide console output (releases)
      targetName='productus.exe',
#      compress=True,
#      copyDependentFiles=True,
#      appendScriptToExe=False,
#      appendScriptToLibrary=False,
      icon='../resources/ico/trawl2.ico'
    )

# Prompt to nuke existing directory
deployed_path = 'build\exe.win64-3.6\ashop'
if os.path.exists(deployed_path):
    if click.confirm('Path ' + deployed_path + ' exists. Delete?', default=True):
        shutil.rmtree(deployed_path)
        print('Deleted ' + deployed_path)

setup(  
      name='ASHOP Productus',
      version='0.1',
      author='FRAM Data',
      description='ASHOP Productus',
      options={'build_exe': build_exe_options},
      executables=[exe]
)

# Zip up our creation
buildzipper.create_zip_archive(base_folder=deployed_path, filedesc='ashop')