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

build: add app anilibria #2158

Closed
wants to merge 1 commit into from
Closed
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
29 changes: 29 additions & 0 deletions io.github.anilibria-winmaclinux/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package:
id: io.github.anilibria-winmaclinux
name: anilibria-winmaclinux
version: 1.2.16
kind: app
description: |
AniLibria.Qt cross platform desktop client.
runtime:
id: org.deepin.Runtime
version: 23.0.0


source:
kind: git
url: https://github.com/anilibria/anilibria-winmaclinux.git
commit: 7f7eb8e9f57514d8370ca07c0533d1e2da505de1
patch:
- patches/0001-fix-path.patch
- patches/0001-fix-desktop-path.patch
build:
kind: qmake
manual :
configure: |
cd src
qmake -makefile ${conf_args} ${extra_args}
build: |
make ${jobs}
install: |
make ${jobs} DESTDIR=${dest_dir} install
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From a2d30205bd86e35b3169a228832563d6e60f62fd Mon Sep 17 00:00:00 2001
From: van <[email protected]>
Date: Thu, 9 May 2024 11:52:48 +0800
Subject: [PATCH] fix-desktop-path

---
data/anilibria.desktop | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/anilibria.desktop b/data/anilibria.desktop
index 6610605..7c918d3 100644
--- a/data/anilibria.desktop
+++ b/data/anilibria.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=AniLibria
Comment=AniLibria desktop client
-Exec=/opt/AniLibria/bin/AniLibria
+Exec=AniLibria
Icon=anilibria
Type=Application
Terminal=false
--
2.33.1

25 changes: 25 additions & 0 deletions io.github.anilibria-winmaclinux/patches/0001-fix-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 4fab5db2281e5d488dc8d25af47899a969014f3c Mon Sep 17 00:00:00 2001
From: van <[email protected]>
Date: Thu, 9 May 2024 11:57:37 +0800
Subject: [PATCH] fix-path

---
src/AniLibria.pro | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/AniLibria.pro b/src/AniLibria.pro
index 4ab99ec..35a63f5 100644
--- a/src/AniLibria.pro
+++ b/src/AniLibria.pro
@@ -276,7 +276,7 @@ QML_DESIGNER_IMPORT_PATH =
# Default rules for deployment.
!flatpak{
qnx: target.path = /tmp/$${TARGET}/bin
- else: unix:!android: target.path = /opt/$${TARGET}/bin
+ else: unix:!android: target.path = $$PREFIX/bin
}else{
target.path = $$PREFIX/bin
}
--
2.33.1

Loading