Skip to content

Commit 26dd752

Browse files
committed
Removed build - Linux
1 parent 94514ca commit 26dd752

File tree

2 files changed

+0
-72
lines changed

2 files changed

+0
-72
lines changed

.github/workflows/build_and_release.yml

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ jobs:
7979
include:
8080
- os: windows-latest
8181
TARGET: windows
82-
- os: ubuntu-latest
83-
TARGET: linux
8482
- os: macos-latest
8583
TARGET: macos
8684

@@ -109,69 +107,7 @@ jobs:
109107
pyinstaller --name "KnowEmail" --onefile --windowed --icon "favicon.ico" --add-data "src;src" --add-data "lib;lib" main.py
110108
mv dist/KnowEmail.exe dist/KnowEmail-${{ needs.create-tag.outputs.new_tag }}-windows.exe
111109
112-
# --- Linux Build ---
113-
- name: Build Linux
114-
if: matrix.os == 'ubuntu-latest'
115-
run: |
116-
# Use colon for separator on Linux
117-
pyinstaller --name "KnowEmail" --onefile --windowed --icon "favicon.ico" --add-data "src:src" --add-data "lib:lib" main.py
118-
119-
- name: Package Linux (AppImage & Deb)
120-
if: matrix.os == 'ubuntu-latest'
121-
run: |
122-
TAG_NAME="${{ needs.create-tag.outputs.new_tag }}"
123-
# Remove 'v' for deb version
124-
VERSION_NUM=${TAG_NAME#v}
125-
126-
# Create AppDir structure for AppImage and Deb
127-
mkdir -p AppDir/usr/bin
128-
mkdir -p AppDir/usr/share/applications
129-
mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
130-
131-
# Copy binary
132-
cp dist/KnowEmail AppDir/usr/bin/knowemail
133-
chmod +x AppDir/usr/bin/knowemail
134-
135-
# Copy icon
136-
cp favicon.ico AppDir/knowemail.png
137-
cp favicon.ico AppDir/usr/share/icons/hicolor/256x256/apps/knowemail.png
138-
139-
# Create Desktop file
140-
cat > AppDir/usr/share/applications/knowemail.desktop <<EOF
141-
[Desktop Entry]
142-
Type=Application
143-
Name=KnowEmail
144-
Exec=knowemail
145-
Icon=knowemail
146-
Categories=Utility;
147-
EOF
148-
149-
# Copy desktop file to root of AppDir for AppImage
150-
cp AppDir/usr/share/applications/knowemail.desktop AppDir/knowemail.desktop
151-
cp AppDir/knowemail.png AppDir/.DirIcon
152110
153-
# --- AppImage ---
154-
wget -q https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
155-
chmod +x linuxdeploy-x86_64.AppImage
156-
157-
# Run linuxdeploy
158-
./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
159-
160-
# Move and Rename AppImage
161-
mv KnowEmail-*.AppImage dist/KnowEmail-${TAG_NAME}-linux.AppImage
162-
163-
# --- Deb ---
164-
# Install fpm
165-
sudo apt-get update
166-
sudo apt-get install -y ruby ruby-dev rubygems build-essential
167-
sudo gem install --no-document fpm
168-
169-
fpm -s dir -t deb \
170-
-n knowemail \
171-
-v ${VERSION_NUM} \
172-
-p dist/KnowEmail-${TAG_NAME}-linux.deb \
173-
--prefix / \
174-
-C AppDir
175111
176112
# --- macOS Build ---
177113
- name: Build macOS
@@ -205,7 +141,5 @@ jobs:
205141
tag_name: ${{ needs.create-tag.outputs.new_tag }}
206142
files: |
207143
dist/KnowEmail-*-windows.exe
208-
dist/KnowEmail-*-linux.AppImage
209-
dist/KnowEmail-*-linux.deb
210144
dist/KnowEmail-*-macos.dmg
211145
dist/KnowEmail-*-macos.app.zip

main.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
import sys
2-
import os
3-
4-
# Force XCB on Linux to prevent crashes on Wayland or missing plugin issues
5-
if sys.platform.startswith('linux'):
6-
os.environ['QT_QPA_PLATFORM'] = 'xcb'
7-
82
from src.gui import EmailValidatorApp
93
from PyQt5 import QtWidgets, QtCore
104
from PyQt5.QtWidgets import *

0 commit comments

Comments
 (0)