Skip to content

Commit fc75c43

Browse files
committed
organized files, changed @TK50P link to his website, fixed imports for
linux
1 parent 021c5eb commit fc75c43

5 files changed

Lines changed: 32 additions & 20 deletions

File tree

.github/workflows/building.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,24 @@ jobs:
3737
with:
3838
python-version: ${{ env.pythonVersion }}
3939

40-
- name: Install Qt dependencies (Linux)
40+
- name: Install Qt system dependencies (Linux)
4141
if: runner.os == 'Linux'
4242
run: |
4343
sudo apt update
4444
sudo apt install -y python3-pip python3-venv xvfb libxcb-cursor0 libxcb-xinerama0 libxkbcommon-x11-0
45-
46-
- name: Install Python dependencies (Linux/MacOS)
47-
if: runner.os != 'Windows'
48-
run: |
49-
python -m pip install --upgrade pip
50-
pip install -r requirements.txt
5145
52-
- name: Install Python dependencies (Windows)
53-
if: runner.os == 'Windows'
46+
- name: Install Python dependencies (Windows/MacOS)
47+
if: runner.os != "Linux"
5448
run: |
5549
python -m pip install --upgrade pip
56-
pip install -r requirements.txt
57-
50+
pip install -r python/requirements.txt
51+
52+
- name: Install Python dependencies (Linux)
53+
if: runner.os == 'Linux'
54+
run: pip install -r python/requirements-linux.txt
55+
5856
- name: Compile with PyInstaller
59-
run: pyinstaller WhatsAnApp.spec
57+
run: pyinstaller python/WhatsAnApp.spec
6058

6159
- name: Rename Build (Windows)
6260
if: runner.os == 'Windows'

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ venv/bin/pip install -r requirements.txt
5555
venv/bin/python main.py
5656
```
5757
<details>
58-
<summary>Screenshot Preview (By [Daveberry](https://daveberry.netlify.app/))</summary>
58+
<summary>Screenshot Preview (By Daveberry)</summary>
5959
<img src="readme/Linux (Daveberry).png"/>
6060
</details>
6161

@@ -74,7 +74,7 @@ venv\Scripts\python main.py
7474
<p>No one yet. Maybe you could help?</p>
7575
</details>
7676

77-
In MacOS, here are the steps: (Confirmed by [@TK50P](https://github.com/tk50p))
77+
In MacOS, here are the steps: (Confirmed by [@TK50P](https://www.tk50piscool.kro.kr/))
7878
```bash
7979
git clone https://github.com/daveberrys/WhatsAnApp/
8080
cd WhatsAnApp

WhatsAnApp.spec renamed to python/WhatsAnApp.spec

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,27 @@ if sys.platform == "win32":
1111
else:
1212
icon_file = "assets/WhatsAnApp.png"
1313

14+
if sys.platform == "linux":
15+
hidimports = [
16+
'pywebview',
17+
'flask',
18+
'qtpy',
19+
'PyQT5',
20+
'PyQT5.QtWebEngineWidgets'
21+
]
22+
else:
23+
hidimports = [
24+
'pywebview',
25+
'flask'
26+
]
27+
1428
a = Analysis(
1529
['main.py'],
1630
pathex=[],
1731
binaries=binaries_wv,
1832
datas=[('assets', 'assets')] + datas_wv,
1933
hiddenimports=[
20-
'pywebview',
21-
'flask',
22-
'qtpy',
23-
'PyQt5',
24-
'PyQt5.QtWebEngineWidgets'
34+
hidimports
2535
] + hiddenimports_wv,
2636
hookspath=[],
2737
hooksconfig={},
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
flask
22
pywebview
3-
PyQt5
43
pyinstaller
4+
PyQT5
55
PyQtWebEngine
6+
qtpy

python/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
flask
2+
pywebview
3+
pyinstaller

0 commit comments

Comments
 (0)