Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

build: add app agistudio #1954

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions io.github.agistudio/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package:
id: io.github.agistudio
name: agistudio
version: 1.4.0.1
kind: app
description: |
Qt5 AGI Studio - Editor for Sierra AGI games.

runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/Deledrius/agistudio.git
commit: 8461595dccda1021ae7567c387d233b6fb087a1d
patch:
- patches/fix_install.patch

build:
kind: cmake
27 changes: 27 additions & 0 deletions io.github.agistudio/patches/fix_install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 567ae35..e38d2b1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -113,4 +113,8 @@ source_group("Source Files" FILES ${AGIStudio_SOURCES})

add_executable(AGIStudio WIN32 ${AGIStudio_HEADERS} ${AGIStudio_SOURCES} ${AGIStudio_RESOURCES})

-target_link_libraries(AGIStudio Qt5::Widgets Qt5::Multimedia)
\ No newline at end of file
+target_link_libraries(AGIStudio Qt5::Widgets Qt5::Multimedia)
+
+install(TARGETS AGIStudio DESTINATION bin/)
+install(FILES ../packaging/agistudio.desktop DESTINATION share/applications/)
+install(FILES ../packaging/qtagistudio.xpm DESTINATION share/icons/)
diff --git a/packaging/agistudio.desktop b/packaging/agistudio.desktop
index 5c31cb8..bbe83ab 100644
--- a/packaging/agistudio.desktop
+++ b/packaging/agistudio.desktop
@@ -1,6 +1,6 @@
[Desktop Entry]
Name=QT AGI Studio
-Exec=agistudio
+Exec=AGIStudio
Icon=qtagistudio
Type=Application
Terminal=false
Loading