-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cx_freeze instead of pyinstaller for executable
- Loading branch information
Showing
9 changed files
with
39 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
build/ | ||
build/BigPictureTV |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,13 +6,11 @@ This Python project automates switching between a monitor and a TV when launchin | |
|
||
 | ||
|
||
⚠️ Exe built with pyinstaller. Windows defender may flag it. Either add an exception or do not use it. ⚠️ | ||
|
||
## Download | ||
|
||
Head to [release](https://github.com/Odizinne/BigPictureTV/releases) section and grab the latest one. | ||
|
||
if you're feeling adventurous you can download the latest main build [here](https://raw.githubusercontent.com/Odizinne/BigPictureTV/main/dist/BigPictureTV.exe)<br/> | ||
if you're feeling adventurous you can download the latest main build [here](https://raw.githubusercontent.com/Odizinne/BigPictureTV/main/build/BigPictureTV.zip)<br/> | ||
Main build is updated often, but may contain bugs. | ||
## Requirements | ||
|
||
|
@@ -24,19 +22,17 @@ Main build is updated often, but may contain bugs. | |
- PyQt5 (Ui) | ||
- winshell (Startup shortcut manipulation) | ||
- pygetwindow (Big Picture window detection) | ||
- pyinstaller (Standalone exe creation) | ||
- cx_freeze (Standalone exe creation) | ||
|
||
`pip install pyqt5 winshell pygetwindow pyinstaller` | ||
`pip install pyqt5 winshell pygetwindow cx_freeze` | ||
|
||
## Build | ||
|
||
Make sure you installed required dependencies.<br/> | ||
|
||
- Clone this repository `git clone [email protected]:Odizinne/BigPictureTV.git`.<br/> | ||
- Move inside the directory `cd BigPictureTV`.<br/> | ||
- Build the executable `pyinstaller BigPictureTV.spec`. | ||
|
||
Since we're building with `console=False`, windows defender may not like it. You'll need to authorize the file. | ||
- Build the executable `python setup_cxfreeze.py build`. | ||
|
||
## Todo | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from cx_Freeze import setup, Executable | ||
|
||
setup( | ||
name='BigPictureTV', | ||
version='1.0', | ||
description='BigPictureTV application', | ||
executables=[ | ||
Executable('src/BigPictureTV.py', base='Win32GUI', icon='src/icons/steamos-logo.ico', target_name='BigPictureTV') | ||
], | ||
options={ | ||
'build_exe': { | ||
'include_files': [ | ||
('src/ui/design.ui', 'ui/design.ui'), | ||
('src/ui/help.ui', 'ui/help.ui'), | ||
('src/ui/style.qss', 'ui/style.qss'), | ||
('src/icons/steamos-logo.png', 'icons/steamos-logo.png') | ||
], | ||
'excludes': [], | ||
'optimize': 0, | ||
'build_exe': 'build/BigPictureTV', | ||
} | ||
} | ||
) |
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
Binary file not shown.
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