mirror of https://gitlab.com/baco/winsysinfo.git
Add setup scripts with building instructions
This commit is contained in:
parent
efea2b5161
commit
2a916b5b4b
|
@ -0,0 +1,25 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Run the build process by running the command 'python setup.py build'
|
||||
#
|
||||
# If everything works well you should find a subdirectory in the build
|
||||
# subdirectory that contains the files needed to run the script without Python
|
||||
|
||||
from cx_Freeze import setup, Executable
|
||||
|
||||
build_exe_options = {
|
||||
'create_shared_zip': False,
|
||||
'include_msvcr': True # skip error msvcr100.dll missing
|
||||
}
|
||||
|
||||
executables = [
|
||||
Executable('SystemInformation.py',
|
||||
appendScriptToExe=True)
|
||||
]
|
||||
|
||||
setup(name='SysInfo',
|
||||
version='0.1',
|
||||
description='Windows system information gatherer',
|
||||
options={'build_exe': build_exe_options},
|
||||
executables=executables
|
||||
)
|
|
@ -0,0 +1,12 @@
|
|||
from distutils.core import setup
|
||||
import py2exe
|
||||
import sys
|
||||
import os
|
||||
|
||||
sys.argv.append('py2exe')
|
||||
|
||||
setup(
|
||||
options={'py2exe': {'bundle_files': 1, 'compressed': True}},
|
||||
windows=[{'script': 'SystemInformation.py'}],
|
||||
zipfile=None,
|
||||
)
|
Loading…
Reference in New Issue