-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (37 loc) · 938 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# !/usr/bin/env python3
# -*- coding: utf-8 -*-
""" cx_Freeze setup script for bwEnc. """
# Python imports
import sys # System-specific parameters and functions
# cx_Freeze imports
from cx_Freeze import setup, Executable, build_exe
# Build options
buildOptions = dict(
create_shared_zip = False
)
# Platform specific
if sys.platform == 'win32':
exe = Executable(
appendScriptToExe = True,
appendScriptToLibrary = False,
base = "Win32GUI",
icon = "icon.ico",
script = "main.py",
targetDir = "build",
targetName = "bwEnc.exe"
)
else:
exe = Executable(
script = "main.py",
targetDir = "build",
targetName = "bwEnc"
)
# Setup
setup(
author = 'bulkware',
description = "An application to convert file encodings.",
name = "bwEnc",
version = "1.3.0",
options = dict(build_exe = buildOptions),
executables = [exe]
)