以下都是我实际测试过运行的。如果依赖不全或者写错请自行查阅。
我是游戏爱好者。 欢迎大家加入龙芯家庭!
我使用的环境是aosc os
### 1.“chiaki-ng”ps4/ps5 主机串流到龙芯电脑的软件
项目地址:https://github.com/streetpea/chiaki-ng
运行依赖:"libplacebo curl qt-6 openssl miniupnpc python-protobuf"
构建依赖:"python-3 python-grpcio-tools"
编译方法:直接编译最新源码(如果是打包环境请启用-DCHIAKI_USE_SYSTEM_CURL:STRING=ON 最新的正式tags还没有合并cura的动态库修复,所以直接拉源码,源码修好了。)
### 2.“xstreamingdesktop” xbox主机(xss/xsx/xbox one/天蝎座等)
项目地址:https://github.com/Geocld/XStreamingDesktop
运行依赖:
构建依赖:nodejs (nodejs-22或者最新)
编译方法:很遗憾,electron不支持龙芯。这里使用@darkyzhou的存储库版本以支持编译。
请给源码打补丁
0001-fix-loongarch64-electron.patch 内容是:
From eef3de6bab1c5899345ffa5e475a56798ccddbf8 Mon Sep 17 00:00:00 2001
From: ouni666 <fangwenbin@vip.qq.com>
Date: Mon, 7 Jul 2025 14:55:29 +0800
Subject: [PATCH] fix loongarch64 electron
---
electron-builder.yml | 36 +-----------------------------------
package.json | 8 +++++---
2 files changed, 6 insertions(+), 38 deletions(-)
diff --git a/electron-builder.yml b/electron-builder.yml
index af9871d..fa02ad0 100644
--- a/electron-builder.yml
+++ b/electron-builder.yml
@@ -14,41 +14,7 @@ files:
publish:
- github
-
-# Mac OS configuration
-mac:
- category: public.app-category.games
- # icon: "src/app/assets/images/icon.icns"
- target:
- - target: dmg
- arch:
- - universal
-
-# Config for OSX dmg
-dmg:
- contents:
- - x: 130
- y: 220
- - x: 410
- y: 220
- type: "link"
- path: "/Applications"
-
-# Windows configuration
-win:
- # icon: "src/app/assets/images/icon.ico"
- target:
- - "zip"
- - "nsis"
-
-# Config for the windows installer
-nsis:
- oneClick: true
- perMachine: true
-
# Linux configuration
linux:
category: Game
- target:
- - "AppImage"
- - "deb"
\ No newline at end of file
+ target: "dir"
diff --git a/package.json b/package.json
index 51335bf..7efdb84 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"main": "app/background.js",
"scripts": {
"dev": "DEBUG=xstreaming:authenticationV2 nextron",
- "build": "nextron build",
+ "build": "nextron build --no-pack && electron-builder --dir",
"lint": "eslint . --ext .ts && eslint renderer/ --ext .tsx",
"lint:fix": "eslint . --ext .ts --fix && eslint renderer/ --ext .tsx --fix",
"postinstall": "electron-builder install-app-deps",
@@ -52,8 +52,10 @@
"@typescript-eslint/parser": "^8.6.0",
"autoprefixer": "^10.4.20",
"babel-loader": "^9.1.3",
- "electron": "33",
- "electron-builder": "^24.13.3",
+ "electron": "35.4.0",
+ "@darkyzhou-powered/electron-builder": "^25.1.8",
+ "@darkyzhou-powered/app-builder-lib": "^25.1.8",
+ "@darkyzhou-powered/builder-util": "^25.1.7",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.12",
--
2.50.0
然后执行命令
ELECTRON_MIRROR="https://github.com/darkyzhou/electron-loong64/releases/download/" electron_use_remote_checksums=1 yarn add electron@35.4.0
以及开始编译
ELECTRON_MIRROR="https://github.com/darkyzhou/electron-loong64/releases/download/" yarn build
最新的源码最后生成/dist/linux-loong64-unpacked目录下面的可执行文件后会报错。
这个没事,他在生成appimage和其他的安装包。我们直接使用已经生成好的文件就行
### 3.“vanilla” wiiu主机的pad替代方案。 直接接管无线网卡接收wiiu主机的pad画面。可以随意切换电视和pad的画面。
项目地址:https://github.com/vanilla-wiiu/vanilla
依赖:不太记得清了。 硬件需要usb无线网卡或者板载网卡支持。具体看项目页面,有兼容列表。
编译方法:直接编译就好。
### 4.“sunshine” pc串流到平板等等设备的最佳方案。延迟极低。玩过的懂得都懂。
安装方法: oma install sunshine
感谢安同社区的朋友们移植,我用平板触摸操控龙芯电脑很好用。
最后愿景:随着2k3000设备发布。希望可以做出一款很薄的平板。然后用拉伸手柄夹住他。应该是一台不错的游戏设备,特别是这么多串流软件支持龙芯后。