-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scripts and related files for creating AppImage with linuxdeplo…
…yqt+added linuxdeployqt
- Loading branch information
Showing
12 changed files
with
480 additions
and
354 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
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,13 +1,13 @@ | ||
# Process Dependency Monitor | ||
Comfortable cross-platform process dependency monitor with GUI based on Qt. Useful for the process of deploying your applications and controlling process dependencies | ||
|
||
During development a template was used: [TemplateQtWidgets](https://github.com/3dproger/TemplateQtWidgets) | ||
|
||
<p align="center"> | ||
<br> | ||
<img src="misc/screenshot2.png"> | ||
<br> | ||
<br> | ||
<img src="misc/screenshot1.png"> | ||
</p> | ||
|
||
# Process Dependency Monitor | ||
Comfortable cross-platform process dependency monitor with GUI based on Qt. Useful for the process of deploying your applications and controlling process dependencies | ||
|
||
During development a template was used: [TemplateQtWidgets](https://github.com/3dproger/TemplateQtWidgets) | ||
|
||
<p align="center"> | ||
<br> | ||
<img src="misc/screenshot2.png"> | ||
<br> | ||
<br> | ||
<img src="misc/screenshot1.png"> | ||
</p> | ||
|
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,2 @@ | ||
Возможно потребуется добавить путь к qmake в переенную PATH: | ||
export PATH="${PATH}:${HOME}/Qt/5.12.6/gcc_64/bin" |
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,13 @@ | ||
[Desktop Entry] | ||
Name=Process Dependency Monitor | ||
GenericName=Retrieving information about loaded process dependencies | ||
GenericName[ru]=Получение информации о загруженных зависимостях процесса | ||
Comment=Сross-platform program with GUI for obtaining information about loaded process dependencies | ||
Comment[ru]=Кроссплатформенная программа с графическим пользовательским интерфейсом для получения информации о загруженных зависимостей процессов | ||
Exec=procdepmonitor %F | ||
Icon=procdepmonitor | ||
Terminal=false | ||
Type=Application | ||
Categories=Development; | ||
Keywords=Dependence;Deployment;Deploy;Assembly;Compilation;Process;Monitor;Monitoring;Software;Development;Programming; | ||
Keywords[ru]=Зависимость;Развёртывание;Сборка;Компиляция;Процесс;Монитор;Мониторинг;Программа;Разработка;Программирование; |
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,105 @@ | ||
#!/bin/bash | ||
|
||
#Версия программы | ||
export VERSION="1.1.1" | ||
|
||
#Указываем архитектуру | ||
export ARCH="x86_64" | ||
|
||
#Путь к qmake | ||
QMakeExecutable="${HOME}/Qt/5.12.6/gcc_64/bin/qmake" | ||
|
||
echo "Version: \"$VERSION\"" | ||
AppName="procdepmonitor" | ||
AppDir="../amd64/appdir" | ||
IconsDir="icons" | ||
|
||
TargetBinaryDir="$AppDir/usr/bin" | ||
TargetBinary="$TargetBinaryDir/$AppName" | ||
DesktopFile="app.desktop" | ||
DesktopFileTargetDir="$AppDir/usr/share/applications" | ||
DesktopFileTarget="$DesktopFileTargetDir/$AppName.desktop" | ||
#ResCommonDir="../../deploy/desktop/RelatedFiles/common" | ||
#ResCommonUnixDir="../../deploy/desktop/RelatedFiles/unix/x86_64" | ||
LibTargetDir="$AppDir/usr/lib" | ||
|
||
#Проверяем наличие qmake | ||
if [ ! -f "$QMakeExecutable" ]; then | ||
echo "Error: \"${QMakeExecutable}\" not found. Can not continue." | ||
exit 1 | ||
fi | ||
|
||
#Проверяем наличие папки с программой | ||
if [ ! -d "$AppDir" ]; then | ||
echo "Error: \"${AppDir}\" not found. Can not continue." | ||
exit 1 | ||
fi | ||
|
||
#ToDo: возможно стиот добавить скрипт для очистки старых файлов | ||
|
||
#Копируем из папки common | ||
#if [ -d "$ResCommonDir" ]; then | ||
# cp -rf "$ResCommonDir/." "$TargetBinaryDir/" | ||
#else | ||
# echo "Warning: \"${ResCommonDir}\" not found!" | ||
#fi | ||
|
||
#Копируем из обще папки для всех систем | ||
#if [ -d "$ResCommonDir" ]; then | ||
# cp -rf "$ResCommonDir/." "$TargetBinaryDir/" | ||
#else | ||
# echo "Warning: \"${ResCommonDir}\" not found!" | ||
#fi | ||
|
||
#Копируем из общей папки для unix | ||
#if [ -d "$ResCommonUnixDir" ]; then | ||
# cp -rf "$ResCommonUnixDir/." "$TargetBinaryDir/" | ||
#else | ||
# echo "Warning: \"${ResCommonUnixDir}\" not found!" | ||
#fi | ||
|
||
#Удаляем старую иконку | ||
if [ -f "$AppDir/$AppName.png" ]; then | ||
rm "$AppDir/$AppName.png" | ||
fi | ||
|
||
#Копируем иконки | ||
if [ ! -d "$IconsDir" ]; then | ||
echo "Warning: \"${IconsDir}\" not found!" | ||
fi | ||
|
||
mkdir -p "$AppDir/usr/share" | ||
|
||
cp -rf "$IconsDir" "$AppDir/usr/share" | ||
|
||
#Удаляем старую ненужную ссылку AppRun | ||
if [ -L "$AppDir/AppRun" ]; then | ||
rm "$AppDir/AppRun" | ||
fi | ||
|
||
#Удаляем старый ненужный *.desktop файл | ||
if [ -f "$AppDir/$AppName.desktop" ]; then | ||
rm "$AppDir/$AppName.desktop" | ||
fi | ||
|
||
#Копируем *.desktop | ||
if [ -f "$DesktopFile" ]; then | ||
mkdir -p "$DesktopFileTargetDir" | ||
cp -f "$DesktopFile" "$DesktopFileTargetDir/$AppName.desktop" | ||
else | ||
echo "Warning: \"${DesktopFile}\" not found!" | ||
fi | ||
|
||
#Копируем SSL библиотеки | ||
#mkdir -p "$LibTargetDir" | ||
#cp -f "OpenSSLLibs/libcrypto.so.1.1" "$LibTargetDir" | ||
#cp -f "OpenSSLLibs/libssl.so.1.1" "$LibTargetDir" | ||
|
||
#Проверяем наличие исполнительного файла | ||
if [ ! -f "$TargetBinary" ]; then | ||
echo "Error: \"${TargetBinary}\" not found. Can not continue." | ||
exit 1 | ||
fi | ||
|
||
#Запускаем сборщик linuxdeployqt | ||
./linuxdeployqt-6-x86_64.AppImage "$DesktopFileTarget" -always-overwrite -appimage -extra-plugins=imageformats/libqsvg.so -qmake="$QMakeExecutable" |
Binary file added
BIN
+1.02 KB
deploy/unix/linuxdeployqt/icons/hicolor/128x128/apps/procdepmonitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.76 KB
deploy/unix/linuxdeployqt/icons/hicolor/256x256/apps/procdepmonitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+612 Bytes
deploy/unix/linuxdeployqt/icons/hicolor/64x64/apps/procdepmonitor.png
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.
Oops, something went wrong.