-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
114 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
""" | ||
Class to keep track of connected devices | ||
""" | ||
|
||
import time | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,84 @@ | ||
import sys | ||
from cx_Freeze import setup, Executable | ||
|
||
setup( | ||
name='Common Clipboard', | ||
author='cmdvmd', | ||
version='0.1-alpha', | ||
options={ | ||
'build_exe': { | ||
'packages': [ | ||
'setuptools', | ||
'requests', | ||
'time', | ||
'win32clipboard', | ||
'socket', | ||
'threading', | ||
'enum', | ||
'infi.systray', | ||
'io', | ||
'plyer' | ||
], | ||
'include_files': [ | ||
'static' | ||
] | ||
} | ||
}, | ||
executables=[ | ||
Executable( | ||
script='common_clipboard.py', | ||
icon='icon.ico', | ||
shortcut_name='Common Clipboard', | ||
shortcut_dir='StartMenuFolder', | ||
base='Win32GUI' | ||
) | ||
] | ||
) | ||
|
||
def generate_shortcut_table(shortcuts): | ||
table = [] | ||
for location in shortcuts: | ||
table.append(( | ||
f'{location}Shortcut', | ||
f'{location}Folder', | ||
'Common Clipboard', | ||
'TARGETDIR', | ||
'[TARGETDIR]common_clipboard.exe', | ||
None, | ||
None, | ||
None, | ||
None, | ||
None, | ||
None, | ||
'TARGETDIR' | ||
)) | ||
return table | ||
|
||
|
||
if __name__ == '__main__': | ||
setup( | ||
name='common_clipboard', | ||
description='Common Clipboard', | ||
author='cmdvmd', | ||
version='1.0b0', | ||
options={ | ||
'build_exe': { | ||
'packages': [ | ||
'setuptools', | ||
'requests', | ||
'time', | ||
'win32clipboard', | ||
'sys', | ||
'pickle', | ||
'socket', | ||
'threading', | ||
'multiprocessing', | ||
'enum', | ||
'pystray', | ||
'PIL', | ||
'io', | ||
'flask', | ||
'tkinter' | ||
], | ||
'excludes': [ | ||
'_distutils_hack', | ||
'asyncio' | ||
'concurrent', | ||
'distutils', | ||
'lib2to3', | ||
'pkg_resources', | ||
'pydoc_data', | ||
'test', | ||
'unittest', | ||
'xml', | ||
'xmlrpc', | ||
], | ||
'include_files': [ | ||
'systray_icon.ico' | ||
], | ||
'optimize': 2 | ||
}, | ||
'bdist_msi': { | ||
'data': { | ||
'Shortcut': generate_shortcut_table(['Desktop', 'StartMenu', 'Startup']) | ||
} | ||
} | ||
}, | ||
executables=[ | ||
Executable( | ||
script='common_clipboard.py', | ||
icon='../static/icon.ico', | ||
copyright='Copyright (c) cmdvmd 2023', | ||
base='Win32GUI' if sys.platform == 'win32' else None, | ||
shortcut_name='Common Clipboard', | ||
shortcut_dir='' | ||
) | ||
] | ||
) |
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes