Skip to content

Commit dfe3395

Browse files
author
lijiahao
committed
v1.9.2
1 parent 67666af commit dfe3395

File tree

11 files changed

+43
-9
lines changed

11 files changed

+43
-9
lines changed

app/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15832,7 +15832,7 @@ module.exports = path.URL;
1583215832
/***/ ((module) => {
1583315833

1583415834
"use strict";
15835-
module.exports = /*#__PURE__*/JSON.parse('{"private":true,"name":"xstreaming","description":"xstreaming","version":"1.9.2","author":"Geocld <lijiahao5372@gmail.com>","main":"app/background.js","scripts":{"dev":"DEBUG=xstreaming:authenticationV2 nextron","build":"nextron build","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","publish":"electron-builder -p onTag","flatpak-build":"nextron build --no-pack && electron-builder --dir"},"dependencies":{"@heroui/react":"^2.8.1","axios":"^1.7.7","compare-versions":"^6.1.0","debounce":"^2.1.1","debug":"^4.3.4","electron-serve":"^1.3.0","electron-store":"^8.0.1","express":"^4.18.3","express-http-proxy":"^2.0.0","express-ws":"^5.0.2","framer-motion":"^11.5.4","github-url-to-object":"^4.0.6","i18next":"23.14.0","ip-address":"^9.0.5","jose":"^5.1.0","moment":"^2.30.1","next-i18next":"^15.3.1","next-themes":"^0.3.0","node-hid":"^3.2.0","react-i18next":"^15.0.1","react-query":"^3.39.3","semver":"^7.6.3","three":"0.150.1","uplot":"^1.6.30","uuid-1345":"^1.0.2","xbox-webapi":"^1.4.1","xstreaming-player":"0.2.24","xvfb-maybe":"^0.2.1"},"devDependencies":{"@babel/core":"^7.24.4","@fortawesome/fontawesome-free":"^6.5.1","@next/eslint-plugin-next":"^14.2.2","@types/node":"^20.12.7","@types/react":"^18.2.47","@typescript-eslint/eslint-plugin":"^8.6.0","@typescript-eslint/parser":"^8.6.0","autoprefixer":"^10.4.20","babel-loader":"^9.1.3","electron":"37","electron-builder":"^24.13.3","eslint":"^8.57.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"^0.4.12","next":"^13.5.6","nextron":"^8.13.0","node-loader":"^2.0.0","postcss":"^8.4.45","react":"^18.1.0","react-dom":"^18.1.0","sass":"^1.78.0","tailwindcss":"^3.4.10","typescript":"^5.3.3"},"packageManager":"yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"}');
15835+
module.exports = /*#__PURE__*/JSON.parse('{"private":true,"name":"xstreaming","description":"xstreaming","version":"1.9.2","author":"Geocld <lijiahao5372@gmail.com>","main":"app/background.js","scripts":{"dev":"DEBUG=xstreaming:authenticationV2 nextron","build":"nextron build","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","publish":"electron-builder -p onTag","flatpak-build":"nextron build --no-pack && electron-builder --dir"},"dependencies":{"@heroui/react":"^2.8.1","axios":"^1.7.7","compare-versions":"^6.1.0","debounce":"^2.1.1","debug":"^4.3.4","electron-serve":"^1.3.0","electron-store":"^8.0.1","express":"^4.18.3","express-http-proxy":"^2.0.0","express-ws":"^5.0.2","framer-motion":"^11.5.4","github-url-to-object":"^4.0.6","i18next":"23.14.0","ip-address":"^9.0.5","jose":"^5.1.0","moment":"^2.30.1","next-i18next":"^15.3.1","next-themes":"^0.3.0","node-hid":"^3.2.0","react-i18next":"^15.0.1","react-query":"^3.39.3","semver":"^7.6.3","three":"0.150.1","uplot":"^1.6.30","uuid-1345":"^1.0.2","xbox-webapi":"^1.4.1","xstreaming-player":"0.2.25","xvfb-maybe":"^0.2.1"},"devDependencies":{"@babel/core":"^7.24.4","@fortawesome/fontawesome-free":"^6.5.1","@next/eslint-plugin-next":"^14.2.2","@types/node":"^20.12.7","@types/react":"^18.2.47","@typescript-eslint/eslint-plugin":"^8.6.0","@typescript-eslint/parser":"^8.6.0","autoprefixer":"^10.4.20","babel-loader":"^9.1.3","electron":"37","electron-builder":"^24.13.3","eslint":"^8.57.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-react-refresh":"^0.4.12","next":"^13.5.6","nextron":"^8.13.0","node-loader":"^2.0.0","postcss":"^8.4.45","react":"^18.1.0","react-dom":"^18.1.0","sass":"^1.78.0","tailwindcss":"^3.4.10","typescript":"^5.3.3"},"packageManager":"yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"}');
1583615836

1583715837
/***/ })
1583815838

app/preload.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flatpak/io.github.Geocld.XStreamingDesktop.metainfo.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@
3434
</screenshot>
3535
</screenshots>
3636
<releases>
37-
<release version="1.9.2" date="2025-11-10">
37+
<release version="1.9.2" date="2025-11-17">
3838
<description>
3939
<ul>
4040
<li>Changes:</li>
4141
<li>Controllers mix input.</li>
4242
<li>FSR sharpness option for stream screen.</li>
43+
<li>Add India region to xCloud.</li>
44+
<li>Support persistent storage for signaling server</li>
4345
</ul>
4446
</description>
4547
</release>

renderer/common/settings.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,8 @@ const getSettingsMetas = (t) => {
388388
{value: '210.131.113.123', label: t('Japan')},
389389
{value: '168.126.63.1', label: t('Korea')},
390390
{value: '4.2.2.2', label: t('United States')},
391+
{value: '104.211.224.146', label: t('South India')},
392+
{value: '104.211.96.159', label: t('Central India')},
391393
],
392394
},
393395
{

renderer/components/SettingItem.tsx

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,32 @@ const SettingItem = (props) => {
3838
item.name === "signaling_cloud" ? "getXcloudToken" : "getXhomeToken";
3939
Ipc.send("xCloud", method).then((data) => {
4040
if (data) {
41-
const regions: {name: string, isDefault: boolean}[] = data.offeringSettings.regions;
42-
item.data = regions.map((region) => {
43-
if (region.isDefault) {
44-
setDefaultValue(region.name);
45-
}
41+
const regions: {name: string, isDefault: boolean}[] = data.offeringSettings.regions;
42+
43+
item.data = regions.map(region => {
4644
return {
4745
value: region.name,
4846
label: t(region.name.toLowerCase(), {defaultValue: region.name})
4947
};
5048
});
49+
50+
51+
const storeRegion = localStorage.getItem(item.name) || '';
52+
let finalRegion = '';
53+
regions.forEach(region => {
54+
if (region.name === storeRegion) {
55+
finalRegion = region.name;
56+
}
57+
});
58+
59+
if (!finalRegion) {
60+
regions.forEach(region => {
61+
if (region.isDefault) {
62+
finalRegion = region.name;
63+
}
64+
});
65+
}
66+
setDefaultValue(finalRegion);
5167
} else {
5268
item.data = [];
5369
}
@@ -65,7 +81,9 @@ const SettingItem = (props) => {
6581
key === "signaling_cloud"
6682
? "setXcloudTokenDefault"
6783
: "setXhomeTokenDefault";
84+
6885
Ipc.send("xCloud", method, value);
86+
localStorage.setItem(key, value)
6987
} else if (key === 'theme') {
7088
localStorage.setItem('theme', value)
7189
props.onRestartWarn && props.onRestartWarn()

renderer/pages/[locale]/settings.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ function Settings() {
201201
localStorage.removeItem(LOCAL_ORG_TITLES);
202202
localStorage.removeItem(LOCAL_RECENT_TITLES);
203203
localStorage.removeItem(LOCAL_CONSOLES);
204+
localStorage.removeItem('signaling_cloud');
205+
localStorage.removeItem('signaling_home');
204206
};
205207

206208
const handleExit = () => {

renderer/public/locales/en/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
"Japan": "Japan",
6969
"Korea": "Korea",
7070
"United States": "United States",
71+
"South India": "South India",
72+
"Central India": "Central India",
7173
"Auto": "Auto",
7274
"Custom": "Custom",
7375
"Save": "Save",

renderer/public/locales/jp/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
"Japan": "Japan",
6969
"Korea": "Korea",
7070
"United States": "United States",
71+
"South India": "South India",
72+
"Central India": "Central India",
7173
"Auto": "Auto",
7274
"Custom": "Custom",
7375
"Save": "Save",

renderer/public/locales/pt/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
"Japan": "Japão",
8484
"Korea": "Coreia do Sul",
8585
"United States": "Estados Unidos",
86+
"South India": "South India",
87+
"Central India": "Central India",
8688
"westus2": "Oeste dos Estados Unidos 2",
8789
"westus": "Oeste dos Estados Unidos",
8890
"eastus2": "Leste dos Estados Unidos 2",

renderer/public/locales/zh/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"Ipv6": "Ipv6",
5858
"Prioritize using IPv6 connection": "优先使用Ipv6连接",
5959
"Signal server": "信令服务器",
60-
"The signaling server is a server for stream negotiation. If the host cannot connect, please try modifying this option": "信令服务器用于串流开始握手阶段,如出现无法连接主机/云游戏的情况,请尝试修改此选项(该选项关闭APP后将重置)",
60+
"The signaling server is a server for stream negotiation. If the host cannot connect, please try modifying this option": "信令服务器用于串流开始握手阶段,如出现无法连接主机/云游戏的情况,请尝试修改此选项",
6161
"Set region": "地区设置",
6262
"Changing the region allows you to use XGPU services without a proxy": "修改地区可以免代理使用XGPU服务",
6363
"Default": "默认",
@@ -67,6 +67,8 @@
6767
"Japan": "日本",
6868
"Korea": "韩国",
6969
"United States": "美国",
70+
"South India": "印度南部",
71+
"Central India": "印度中部",
7072
"Auto": "自动",
7173
"Custom": "自定义",
7274
"Save": "保存",

0 commit comments

Comments
 (0)