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

Commit

Permalink
build: add Sanmill
Browse files Browse the repository at this point in the history
    Sanmill is an open-source,  program with CUI, Flutter GUI and Qt GUI,sharing and freely distributing the code, tools and data needed to deliver this mill game.

Log: add software name--Sanmill
  • Loading branch information
wjyrich authored and kamiyadm committed Mar 27, 2024
1 parent 18b0aea commit 966e523
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
28 changes: 28 additions & 0 deletions io.github.Sanmill/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package:
id: io.github.Sanmill
name: Sanmill
version: 4.0.3
kind: app
description: |
Sanmill is an open-source, program with CUI, Flutter GUI and Qt GUI,sharing and freely distributing the code, tools and data needed to deliver this mill game.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/calcitem/Sanmill.git
commit: d738866cb62c491d3aaedaafd02f5c7bb5165335
patch: patches/0001-install.patch

build:
kind: cmake
manual:
configure: |
cd src/ui/qt
cmake -B ${build_dir} ${conf_args} ${extra_args}
build: |
cmake --build ${build_dir} -- ${jobs}
install: |
env DESTDIR=${dest_dir} cmake --build ${build_dir} --target install
46 changes: 46 additions & 0 deletions io.github.Sanmill/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
From c5528c8afbde4289411699b9d0bd2af789583928 Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Wed, 27 Mar 2024 11:44:02 +0800
Subject: [PATCH] install

---
src/ui/flutter_app/debian/gui/mill.desktop | 4 ++--
src/ui/qt/CMakeLists.txt | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/ui/flutter_app/debian/gui/mill.desktop b/src/ui/flutter_app/debian/gui/mill.desktop
index 38181eb..430e977 100644
--- a/src/ui/flutter_app/debian/gui/mill.desktop
+++ b/src/ui/flutter_app/debian/gui/mill.desktop
@@ -3,8 +3,8 @@ Version=4.0.3
Encoding=UTF-8
Name=Mill
Comment=A Mill Game which supports many rule variants.
-Exec=mill
+Exec=mill-pro
Terminal=false
Type=Application
Categories=Game;BoardGame;
-Icon=mill.png
+Icon=mill
\ No newline at end of file
diff --git a/src/ui/qt/CMakeLists.txt b/src/ui/qt/CMakeLists.txt
index 7bef90c..1a50f48 100644
--- a/src/ui/qt/CMakeLists.txt
+++ b/src/ui/qt/CMakeLists.txt
@@ -55,3 +55,12 @@ target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Gui Qt5::Multimedia Qt5::Wi

set_target_properties(${PROJECT_NAME} PROPERTIES AUTOMOC ON AUTOUIC ON AUTORCC ON)

+install(TARGETS ${PROJECT_NAME}
+ DESTINATION bin)
+
+install(FILES ../flutter_app/debian/gui/mill.png
+ DESTINATION share/icons)
+
+
+install(FILES ../flutter_app/debian/gui/mill.desktop
+ DESTINATION share/applications)
--
2.33.1

0 comments on commit 966e523

Please sign in to comment.