-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Compatibility with qt5 in control file in .deb package
This patch adds required packages (which is libqt5widgets5 in this case) for additional compatibility with Qt5. + updated version in control and repo link.
- Loading branch information
Showing
9 changed files
with
731 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,28 @@ | ||
#!/bin/bash | ||
|
||
debian_qt_ver="" | ||
if [ "$1" == "qt5" ] | ||
then | ||
debian_qt_ver="debian-qt5" | ||
else | ||
debian_qt_ver="debian-qt6" | ||
fi | ||
|
||
echo "Building for: $1" | ||
|
||
# Copy latest release build | ||
mkdir -p debian/usr/bin/ | ||
cp build/D1GraphicsTool debian/usr/bin/ | ||
mkdir -p debian/$debian_qt_ver/usr/bin/ | ||
cp build/D1GraphicsTool debian/$debian_qt_ver/usr/bin/ | ||
|
||
# Strip symbols | ||
strip -s debian/usr/bin/D1GraphicsTool | ||
strip -s debian/$debian_qt_ver/usr/bin/D1GraphicsTool | ||
|
||
# Copy short cut icon | ||
mkdir -p debian/opt/d1-graphics-tool/ | ||
cp resources/icon.svg debian/opt/d1-graphics-tool/ | ||
mkdir -p debian/$debian_qt_ver/opt/d1-graphics-tool/ | ||
cp resources/icon.svg debian/$debian_qt_ver/opt/d1-graphics-tool/ | ||
|
||
# Build .deb package | ||
dpkg-deb --build debian | ||
dpkg-deb --build debian/$debian_qt_ver | ||
|
||
# Rename package | ||
mv debian.deb d1-graphics-tool.deb | ||
mv debian/$debian_qt_ver.deb debian/d1-graphics-tool-$debian_qt_ver.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Package: d1-graphics-tool | ||
Version: 1.0.0 | ||
Architecture: amd64 | ||
Maintainer: Anders Jenbo <[email protected]> | ||
Installed-Size: 444 | ||
Depends: libqt5widgets5 (>= 5.15.0) | ||
Section: graphics | ||
Priority: optional | ||
Homepage: https://github.com/diasurgical/d1-graphics-tool | ||
Description: Diablo 1 Graphics Tool can open CEL/CL2 graphics files and display them with chosen color palette (PAL) and color translation (TRN) files. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Package: d1-graphics-tool | ||
Version: 0.5.0 | ||
Version: 1.0.0 | ||
Architecture: amd64 | ||
Maintainer: Anders Jenbo <[email protected]> | ||
Installed-Size: 444 | ||
Depends: libqt6widgets6 (>= 6.2.4), qt6-qpa-plugins (>= 6.2.4) | ||
Section: graphics | ||
Priority: optional | ||
Homepage: https://github.com/savagesteel/d1-graphics-tool | ||
Homepage: https://github.com/diasurgical/d1-graphics-tool | ||
Description: Diablo 1 Graphics Tool can open CEL/CL2 graphics files and display them with chosen color palette (PAL) and color translation (TRN) files. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
debian/debian-qt6/usr/share/applications/D1GraphicsTool.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Desktop Entry] | ||
Version=0.5.0 | ||
Type=Application | ||
Name=Diablo 1 Graphics Tool | ||
Comment=Work with Diablo 1 graphics files | ||
Keywords=Diablo;graphic; | ||
Exec=D1GraphicsTool | ||
Icon=/opt/d1-graphics-tool/icon.svg | ||
Terminal=false | ||
Categories=Graphics;2DGraphics;RasterGraphics; | ||
StartupNotify=true |