Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Added Linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
DedFishy committed Jun 29, 2023
1 parent 6c99698 commit bf315f3
Show file tree
Hide file tree
Showing 4 changed files with 694 additions and 6 deletions.
7 changes: 3 additions & 4 deletions ReCape.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import dns.resolver
import platform
import os
from PIL import Image, ImageTk, ImageDraw, ImageOps
from PIL import Image
import sys

try:
Expand Down Expand Up @@ -55,9 +55,8 @@ def __init__(self):
self.grid_columnconfigure(1, weight=1)

# Set the icon of the window
icon_path = os.path.join(os.path.dirname(__file__), "images", "icon_logo.ico")
if os.path.exists(icon_path):
self.iconbitmap(default=icon_path)
if os.name == "posix":
self.iconbitmap("@images/recape.xbm")

self._generate_icons()

Expand Down
2 changes: 1 addition & 1 deletion ReCape.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ from PyInstaller.utils.hooks import collect_all

datas = [('images/*', 'images/')]
binaries = []
hiddenimports = []
hiddenimports = ["PIL._tkinter_finder"]
tmp_ret = collect_all('customtkinter')
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]

Expand Down
5 changes: 4 additions & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
PyInstaller --onefile --noconsole --windowed --name ReCape --icon recape.ico --collect-all customtkinter --add-data "images/*;images/" ReCape.py
Windows:
PyInstaller --onefile --noconsole --windowed --name ReCape --icon recape.ico --collect-all customtkinter --add-data "images/*;images/" ReCape.py
Linux:
PyInstaller ReCape.spec
Loading

0 comments on commit bf315f3

Please sign in to comment.