Skip to content

Commit

Permalink
Updates the spec files and documentation.
Browse files Browse the repository at this point in the history
- Cleanup documentation about the spec files again.
- This should allow for compiling to all platform.
- The word here is should... lol.
- Only windows guys get the fancy icon thou.
  • Loading branch information
MechTechnology authored Oct 12, 2021
1 parent 8156d6d commit bcd0f12
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 11 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ The smart part of the name comes from the fact that it uses some simple pixel ca
1. Download the source code zip file of the latest release (Found in the releases section in this github)
2. Unzip the file to a suitable place on your device.
3. Install python edition suitable for your machine. (Python 3.7 is recommended)
4. Open a terminal and send the following command: pip install numpy pillow natsort
5. From the terminal, navigate to the directory where the source code was unzipped and send the following command: python SmartStitchGUI.py
4. Open a terminal and send the following command: ```pip install numpy pillow natsort```
5. From the terminal, navigate to the directory where the source code was unzipped and send the following command: ```python SmartStitchGUI.py```
6. Now the application will launch, and you can proceed with the Quick get started steps.

## Reporting Bugs [2.0+]:
Expand Down Expand Up @@ -191,13 +191,13 @@ python SmartStitchConsole.py -i "Review me" -H 7500 -t ".png" -b

## How to build/compile your own GUI Version?

### How to compile GUI package --Windows
1. install PyInstaller if you haven't yet with the following command: pip install pyinstaller
2. then to create a build do: pyinstaller SmartStitchGUI.spec
### How to compile GUI package (For Windows Users)
1. Open a terminal and send the following command: ```pip install pyinstaller```
2. From the terminal, navigate to the directory where the source code was unzipped and run: ```pyinstaller SmartStitchGUI.spec```

### How to compile a Single File GUI package --Windows
1. install PyInstaller if you haven't yet with the following command: pip install pyinstaller
2. then to create a build do: pyinstaller SmartStitchGUI_SingleFile.spec
### How to compile GUI package (For Mac & Linux Users)
1. install PyInstaller if you haven't yet with the following command: ```pip install pyinstaller```
2. From the terminal, navigate to the directory where the source code was unzipped and run: ```pyinstaller SmartStitchGUI_NoIcon.spec```

- The output compiled application will not need python installed to run, but will only run on the platform it was built/compiled on.

- Mac and Linux Compiling was not tested by me, so uh... good luck xD
4 changes: 2 additions & 2 deletions SmartStitchGUI.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ block_cipher = None
a = Analysis(['SmartStitchGUI.py'],
pathex=['.'],
binaries=[],
datas=[],
datas = [],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
Expand All @@ -29,7 +29,7 @@ exe = EXE(pyz,
upx=True,
console=False , icon='SmartStitchLogo.ico')
coll = COLLECT(exe,
a.binaries + [('SmartStitchLogo.ico', 'SmartStitchLogo.ico', 'DATA')],
a.binaries + [('SmartStitchLogo.png', 'SmartStitchLogo.png', 'DATA'), ('SmartStitchLogo.ico', 'SmartStitchLogo.ico', 'DATA')],
a.zipfiles,
a.datas,
strip=False,
Expand Down
38 changes: 38 additions & 0 deletions SmartStitchGUI_NoIcon.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(['SmartStitchGUI.py'],
pathex=['.'],
binaries=[],
datas = [],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='SmartStitchGUI',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False)
coll = COLLECT(exe,
a.binaries + [('SmartStitchLogo.png', 'SmartStitchLogo.png', 'DATA')],
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='SmartStitchGUI')

0 comments on commit bcd0f12

Please sign in to comment.