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

Commit

Permalink
build: add app aqueduct
Browse files Browse the repository at this point in the history
新增应用aqueduct,跨平台的 3D 资产管理器
  • Loading branch information
Clown405 authored and kamiyadm committed Jan 1, 2024
1 parent 2c26c1d commit 0143959
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
27 changes: 27 additions & 0 deletions io.github.aqueduct/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package:
id: io.github.aqueduct
name: aqueduct
version: 0.1.1
kind: app
description: |
Aqueduct crossplatform desktop app.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/edgeflow3d/aqueduct.git
commit: 09a73c7912f0e924bb5cd27db132c450354cec2e
patch: patches/fix_001.patch

build:
kind: cmake
manual :
configure: |
cd source
cmake -B ${build_dir} ${conf_args} ${extra_args}
18 changes: 18 additions & 0 deletions io.github.aqueduct/patches/fix_001.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- ../source/CMakeLists.txt 2023-12-27 19:54:05.406566000 +0800
+++ ../source/CMakeLists.txt 2023-12-27 19:58:58.850494000 +0800
@@ -48,3 +48,15 @@
)

target_link_libraries(${PROJECT_NAME} PUBLIC ${QT5_LIBS})
+set(DESKTOP_FILE_CONTENT "
+[Desktop Entry]
+Type=Application
+Name=Aqueduct
+Exec=Aqueduct
+Icon=aqueduct_logo_256
+Categories=Utility;
+")
+file(WRITE ${CMAKE_BINARY_DIR}/Aqueduct.desktop "${DESKTOP_FILE_CONTENT}")
+install(PROGRAMS ${CMAKE_BINARY_DIR}/Aqueduct.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
+install(PROGRAMS ${build_dir}/source/appimage/aqueduct_logo_256.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons)
+install(TARGETS Aqueduct DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

0 comments on commit 0143959

Please sign in to comment.