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

Commit

Permalink
build: add EmuDiscer
Browse files Browse the repository at this point in the history
     EmuDiscer recognizes which system the game is made for, and lauches the right emulator.

Log: add software name--EmuDiscer
  • Loading branch information
wjyrich committed May 25, 2024
1 parent e7f01b2 commit 25c28c1
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
20 changes: 20 additions & 0 deletions io.github.EmuDiscer/linglong.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package:
id: io.github.EmuDiscer
name: EmuDiscer
version: 1.1.0
kind: app
description: |
EmuDiscer recognizes which system the game is made for, and lauches the right emulator.
runtime:
id: org.deepin.Runtime
version: 23.0.0

source:
kind: git
url: https://github.com/LMauricius/EmuDiscer.git
commit: 02af5b8b0d07caa7d4e1b969f9962a5951ca075a
patch: patches/0001-install.patch

build:
kind: qmake
59 changes: 59 additions & 0 deletions io.github.EmuDiscer/patches/0001-install.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
From 9aedec24aa5b3fda1268b3280660ca0c264b322a Mon Sep 17 00:00:00 2001
From: wjyrich <[email protected]>
Date: Sat, 25 May 2024 16:31:30 +0800
Subject: [PATCH] install

---
EmuDiscer.pro | 11 ++++++++++-
LMauricius.EmuDiscer.desktop | 14 +++++++-------
2 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/EmuDiscer.pro b/EmuDiscer.pro
index ebc31c9..a9b693e 100644
--- a/EmuDiscer.pro
+++ b/EmuDiscer.pro
@@ -59,10 +59,19 @@ DEFINES += EMUDISCER_APP_VERSION=\\\"$$VERSION\\\"

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
-else: unix:!android: target.path = /opt/$${TARGET}/bin
+else: unix:!android: #target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
resources.qrc

DISTFILES +=
+
+
+target.path = $$PREFIX/bin
+desktop.files = LMauricius.EmuDiscer.desktop
+desktop.path = $$PREFIX/share/applications/
+icons.path = $$PREFIX/share/icons/hicolor/scalable/apps
+icons.files = EmuDiscer.svg
+
+INSTALLS += target desktop icons
diff --git a/LMauricius.EmuDiscer.desktop b/LMauricius.EmuDiscer.desktop
index 2c9f46e..e41d1ca 100644
--- a/LMauricius.EmuDiscer.desktop
+++ b/LMauricius.EmuDiscer.desktop
@@ -1,9 +1,9 @@
[Desktop Entry]
-Categories = Game;
-Comment = A program for running emulators when a disc is inserted.
-Exec = EmuDiscer --open-settings
-Icon = EmuDiscer
-Name = EmuDiscer
-Terminal = false
-Type = Application
+Categories=Game;
+Comment=A program for running emulators when a disc is inserted.
+Exec=EmuDiscer
+Icon=EmuDiscer
+Name=EmuDiscer
+Terminal=false
+Type=Application

--
2.33.1

0 comments on commit 25c28c1

Please sign in to comment.