Skip to content

Commit 01fe771

Browse files
teste 5$
1 parent a3318b9 commit 01fe771

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/build-linux-legacy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
run: |
4242
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
4343
pyinstaller --noconsole --name DocViewer --onefile \
44-
--icon="resources/icons_svg/doc_icon.ico" \
44+
--icon="DocViewerDesktop/resources/icons_svg/doc_icon.ico" \
4545
--add-data "DocViewerDesktop/ui/dark-high-v0.qss:ui" \
4646
--add-data "DocViewerDesktop/resources/icons_svg/*:resources/icons_svg" \
4747
--hidden-import="ui.ui_utils" \
@@ -57,7 +57,7 @@
5757
DocViewerDesktop/main.py
5858
else
5959
pyinstaller --noconsole --name DocViewer --onefile `
60-
--icon="resources/icons_svg/doc_icon.ico" `
60+
--icon="DocViewerDesktop/resources/icons_svg/doc_icon.ico" `
6161
--add-data "DocViewerDesktop/ui/dark-high-v0.qss;ui" `
6262
--add-data "DocViewerDesktop/resources/icons_svg/*;resources/icons_svg" `
6363
--hidden-import="ui.ui_utils" `
@@ -87,7 +87,7 @@
8787
mkdir -p package/usr/share/icons/hicolor/256x256/apps
8888
8989
cp dist/DocViewer package/usr/local/bin/docviewer
90-
cp resources/icons_svg/doc_icon.png package/usr/share/icons/hicolor/256x256/apps/docviewer.png
90+
cp DocViewerDesktop/resources/icons_svg/doc_icon.png package/usr/share/icons/hicolor/256x256/apps/docviewer.png
9191
9292
cat <<EOF > package/usr/share/applications/docviewer.desktop
9393
[Desktop Entry]

DocViewerDesktop/ui/ui_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def loadSvgIconColored(file_path, width=80, height=80, color=None):
5959
return pixmap
6060

6161
def loadSvgIcon(file_path, width=80, height=80):
62+
"""Transforma um arquivo SVG em QPixmap."""
6263
svg_renderer = QSvgRenderer(file_path)
6364
pixmap = QPixmap(width, height)
6465
pixmap.fill(Qt.transparent)

0 commit comments

Comments
 (0)