|
37 | 37 | - name: Build Windows executable |
38 | 38 | continue-on-error: true |
39 | 39 | run: | |
40 | | - pyinstaller --onefile --noconsole --name telegram-multi-account-sender --icon=assets/icons/favicon.ico main.py |
| 40 | + pyinstaller --onefile --noconsole --name telegram-multi-account-sender --icon=assets/icons/favicon.ico --hidden-import=PyQt5 --hidden-import=PyQt5.QtCore --hidden-import=PyQt5.QtGui --hidden-import=PyQt5.QtWidgets --hidden-import=telethon --hidden-import=sqlmodel --hidden-import=pydantic main.py |
41 | 41 | |
42 | 42 | - name: Upload Windows artifacts |
43 | 43 | if: success() || failure() |
|
64 | 64 | - name: Install system dependencies |
65 | 65 | run: | |
66 | 66 | sudo apt-get update |
67 | | - sudo apt-get install -y python3-pyqt5 libxcb-xinerama0 libxcb-cursor0 || true |
| 67 | + sudo apt-get install -y python3-pyqt5 libxcb-xinerama0 libxcb-cursor0 libxcb-render0 libxcb-render-util0 libxcb-shape0 libxcb-randr0 libxcb-image0 libxcb-keysyms1 libxcb-icccm4 libxcb-xfixes0 libxcb-sync1 libxcb-xkb1 libxkbcommon0 libxkbcommon-x11-0 || true |
68 | 68 | |
69 | 69 | - name: Install Python dependencies |
70 | 70 | run: | |
|
77 | 77 | env: |
78 | 78 | QT_QPA_PLATFORM: offscreen |
79 | 79 | run: | |
80 | | - pyinstaller --onefile --name telegram-multi-account-sender main.py |
| 80 | + pyinstaller --onefile --name telegram-multi-account-sender --hidden-import=PyQt5 --hidden-import=PyQt5.QtCore --hidden-import=PyQt5.QtGui --hidden-import=PyQt5.QtWidgets --hidden-import=telethon --hidden-import=sqlmodel --hidden-import=pydantic main.py |
81 | 81 | |
82 | 82 | - name: Create .tar.gz |
83 | 83 | if: success() |
@@ -116,12 +116,18 @@ jobs: |
116 | 116 | - name: Build macOS application |
117 | 117 | continue-on-error: true |
118 | 118 | run: | |
119 | | - pyinstaller --onefile --name telegram-multi-account-sender main.py |
| 119 | + pyinstaller --windowed --name telegram-multi-account-sender --icon=assets/icons/favicon.ico main.py || pyinstaller --onefile --name telegram-multi-account-sender main.py |
120 | 120 | |
121 | 121 | - name: Create .dmg |
122 | 122 | if: success() |
123 | 123 | run: | |
124 | | - hdiutil create -srcfolder dist/telegram-multi-account-sender.app -volname "Telegram Multi-Account Message Sender" -fs HFS+ -format UDZO telegram-multi-account-sender-${{ github.ref_name || inputs.version }}-macOS.dmg || true |
| 124 | + if [ -d "dist/telegram-multi-account-sender.app" ]; then |
| 125 | + hdiutil create -srcfolder dist/telegram-multi-account-sender.app -volname "Telegram Multi-Account Message Sender" -fs HFS+ -format UDZO telegram-multi-account-sender-${{ github.ref_name || inputs.version }}-macOS.dmg || true |
| 126 | + elif [ -f "dist/telegram-multi-account-sender" ]; then |
| 127 | + mkdir -p dist/Telegram-Multi-Account-Sender.app/Contents/MacOS |
| 128 | + cp dist/telegram-multi-account-sender dist/Telegram-Multi-Account-Sender.app/Contents/MacOS/ |
| 129 | + hdiutil create -srcfolder dist/Telegram-Multi-Account-Sender.app -volname "Telegram Multi-Account Message Sender" -fs HFS+ -format UDZO telegram-multi-account-sender-${{ github.ref_name || inputs.version }}-macOS.dmg || true |
| 130 | + fi |
125 | 131 | |
126 | 132 | - name: Upload macOS artifacts |
127 | 133 | if: success() || failure() |
|
0 commit comments