diff --git a/io.github.agistudio/linglong.yaml b/io.github.agistudio/linglong.yaml new file mode 100644 index 000000000..0f65a6f51 --- /dev/null +++ b/io.github.agistudio/linglong.yaml @@ -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 diff --git a/io.github.agistudio/patches/fix_install.patch b/io.github.agistudio/patches/fix_install.patch new file mode 100644 index 000000000..b2cca930b --- /dev/null +++ b/io.github.agistudio/patches/fix_install.patch @@ -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