This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
74 additions
and
0 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
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 |
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,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 | ||
|