mirror of
https://github.com/edisionnano/QDiskInfo.git
synced 2026-04-25 00:53:18 +03:00
Make the project able to install
This commit is contained in:
4
.github/workflows/build.yaml
vendored
4
.github/workflows/build.yaml
vendored
@@ -52,8 +52,8 @@ jobs:
|
|||||||
mkdir -p AppDir/usr/bin
|
mkdir -p AppDir/usr/bin
|
||||||
cp build/QDiskInfo AppDir/usr/bin/
|
cp build/QDiskInfo AppDir/usr/bin/
|
||||||
cp .github/scripts/smartctl AppDir/usr/bin/
|
cp .github/scripts/smartctl AppDir/usr/bin/
|
||||||
cp .github/scripts/QDiskInfo.desktop AppDir/
|
cp dist/QDiskInfo.desktop AppDir/
|
||||||
cp src/icon.svg AppDir/QDiskInfo.svg
|
cp dist/QDiskInfo.svg AppDir/QDiskInfo.svg
|
||||||
|
|
||||||
APPIMAGE_EXTRACT_AND_RUN=1 NO_STRIP=1 QMAKE=/usr/bin/qmake6 ARCH=x86_64 ./linuxdeploy-static-x86_64.AppImage --appdir=AppDir/ -d AppDir/QDiskInfo.desktop -i AppDir/QDiskInfo.svg -e AppDir/usr/bin/QDiskInfo --plugin qt
|
APPIMAGE_EXTRACT_AND_RUN=1 NO_STRIP=1 QMAKE=/usr/bin/qmake6 ARCH=x86_64 ./linuxdeploy-static-x86_64.AppImage --appdir=AppDir/ -d AppDir/QDiskInfo.desktop -i AppDir/QDiskInfo.svg -e AppDir/usr/bin/QDiskInfo --plugin qt
|
||||||
echo 'export PATH="$this_dir"/usr/bin:"$PATH"' >> AppDir/apprun-hooks/linuxdeploy-plugin-qt-hook.sh
|
echo 'export PATH="$this_dir"/usr/bin:"$PATH"' >> AppDir/apprun-hooks/linuxdeploy-plugin-qt-hook.sh
|
||||||
|
|||||||
@@ -57,6 +57,10 @@ install(TARGETS QDiskInfo
|
|||||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
)
|
)
|
||||||
|
install(FILES "dist/QDiskInfo.desktop"
|
||||||
|
DESTINATION "share/applications")
|
||||||
|
install(FILES "dist/QDiskInfo.svg"
|
||||||
|
DESTINATION "share/icons/hicolor/scalable/apps")
|
||||||
|
|
||||||
if(QT_VERSION_MAJOR EQUAL 6)
|
if(QT_VERSION_MAJOR EQUAL 6)
|
||||||
qt_finalize_executable(QDiskInfo)
|
qt_finalize_executable(QDiskInfo)
|
||||||
|
|||||||
22
README.md
22
README.md
@@ -2,3 +2,25 @@
|
|||||||
CrystalDiskInfo alternative for Linux
|
CrystalDiskInfo alternative for Linux
|
||||||

|

|
||||||
The icon is a modified version of the KDE Partition Manager logo which is available under GPL-3.0+
|
The icon is a modified version of the KDE Partition Manager logo which is available under GPL-3.0+
|
||||||
|
|
||||||
|
## Compiling and Installing
|
||||||
|
First you will need to clone the repository and cd inside
|
||||||
|
```sh
|
||||||
|
https://github.com/edisionnano/QDiskInfo.git && cd QDiskInfo
|
||||||
|
```
|
||||||
|
Then you must create a build directory and cd inside
|
||||||
|
```sh
|
||||||
|
mkdir build && cd build
|
||||||
|
```
|
||||||
|
After that use CMake to setup the project, Qt version can also be set to 5 (for example for Ubuntu)
|
||||||
|
```sh
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE:STRING=MinSizeRel -DQT_VERSION_MAJOR=6
|
||||||
|
```
|
||||||
|
And finally compile the project with all the threads
|
||||||
|
```sh
|
||||||
|
make -j$(nproc)
|
||||||
|
```
|
||||||
|
This will create a `QDiskInfo` binary on the build directory but you can also install it using
|
||||||
|
```sh
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
Type=Application
|
Type=Application
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Name=QDiskInfo
|
Name=QDiskInfo
|
||||||
|
GenericName=SMART Viwer
|
||||||
|
Comment=SMART data viewer
|
||||||
Icon=QDiskInfo
|
Icon=QDiskInfo
|
||||||
Exec=QDiskInfo
|
Exec=QDiskInfo
|
||||||
Terminal=false
|
Terminal=false
|
||||||
0
src/icon.svg → dist/QDiskInfo.svg
vendored
0
src/icon.svg → dist/QDiskInfo.svg
vendored
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@@ -1,10 +1,10 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/icons">
|
<qresource prefix="/icons">
|
||||||
<file>icon.svg</file>
|
<file alias="icon.svg">../dist/QDiskInfo.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/translations">
|
||||||
<file alias="translations/qdiskinfo_el_GR.qm">../translations/qdiskinfo_el_GR.qm</file>
|
<file alias="qdiskinfo_el_GR.qm">../translations/qdiskinfo_el_GR.qm</file>
|
||||||
<file alias="translations/qdiskinfo_es_ES.qm">../translations/qdiskinfo_es_ES.qm</file>
|
<file alias="qdiskinfo_es_ES.qm">../translations/qdiskinfo_es_ES.qm</file>
|
||||||
<file alias="translations/qdiskinfo_pt_BR.qm">../translations/qdiskinfo_pt_BR.qm</file>
|
<file alias="qdiskinfo_pt_BR.qm">../translations/qdiskinfo_pt_BR.qm</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
Reference in New Issue
Block a user